Teen Programmers Unite  
 

 

Return to forum top

restricting weapons use in a counter strike plugin

Posted by lynette [send private reply] at March 11, 2002, 11:01:23 AM

i tryed for 4 hours to write the source code that will only allow certain weapons for a plugin. i want to restrict the weapons so only the knife and a few others can be used. if you have any info please help!!!!!!!!

Posted by gian [send private reply] at March 11, 2002, 09:26:24 PM

I believe that it is map-specific to do that... have a look at the map "ka_construct" (a knife-only arena)

Posted by lynette [send private reply] at March 13, 2002, 09:58:40 PM

hey, thanks for the help. i had a feeling that was the case. the plugin is and admin mod. we can change players into chickens. at first they could not use any weapons. we changed it so in the event that the button was pushed is outcome was set to 0 so we changed it to 1 so the swich would be on and all weapons could be used.

my friend thought there might be some way to specify the use of certain weapons but i pretty much thought that was map specific too. it was mostly experimental having just figured out how to recompile it.

if you have any other suggestions or thoughts please let me know. THANKS FOR YOUR HELP!!!!


Posted by CodeRed [send private reply] at March 14, 2002, 02:00:20 PM

Hey lynette, you got a counter strike CD key I could LEGALLY PURCHASE [-gian]?

Posted by CodeRed [send private reply] at March 14, 2002, 02:20:08 PM

I legally purchased Half Life gian but the key doesn't work in CS.

Posted by RedX [send private reply] at March 14, 2002, 02:31:18 PM

What <whatever name you prefere to describe a very dump person> is still using serial codes? If someone has the basic required intelligence to copy a CD, I'm sure we can assume he/she would be intelligent enough to write that number on that CD (or write it in a readme.txt).

A system to prevent copying without annoying the user. Anybody an idea?

RedX

Posted by gian [send private reply] at March 15, 2002, 10:35:32 PM

I know... opensource equivalents! If you can get something better for free, then nobody will *want* to copy your product!

Posted by Linux_Penguin [send private reply] at March 21, 2002, 11:17:19 PM

Nowadays if you want to play over the internet and that serial # is already registerd you can't play. Or if the actual owner is on you can't play... may as well get a cd key generator.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.