AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   count kills / per 5 sec (https://forums.alliedmods.net/showthread.php?t=196487)

avril-lavigne 09-21-2012 19:28

count kills / per 5 sec
 
I want to ban players who make 3-5 kills in 4-5 secs on servers with respawn.
how to count time...
can I use public client_death to make count++ and get_gametime ?

quark 09-22-2012 06:23

Re: count kills / per 5 sec
 
That's not correct, it can be lucky... Or skill :D or cheats :(

bibu 09-22-2012 08:13

Re: count kills / per 5 sec
 
Have a look in the unapproved section.

nikhilgupta345 09-22-2012 15:44

Re: count kills / per 5 sec
 
The way I would go about it is that every time a player makes a kill, add 1 to his kill counter. At the same time, set a task for 5 seconds called removeKill() or something like that and in it, subtract one from his kill counter.

When he kills somebody, if his kill counter is 3 or 4 or w/e, he's made that many kills within 5 seconds.


All times are GMT -4. The time now is 08:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.