07.07.2007, 05:43
Simple script to kick players who "excessively" driveby, teamkill, helikill, spawnkill, ping, and spam.
Used on Novocaine server (not currently). The number of infractions and time frame for each protection are configurable via defines as well as enabling and disabling each protection individually.
It works fine on linux. I heard a rumor about GetTickCount() not working correctly on Windows...
Brief explanation of settings:
UPDATE (7/9/07): Added ping kicker.
UPDATE (7/7/07): Setting the *_MAX_KILLS and *_TIMELIMIT to 1 will kick the player on the first infraction.
Download (Pastebin): http://pastebin.ca/611136
Download (pwn): http://gta.hamm3r.net/scripts/playerprotections.pwn
Download (amx): http://gta.hamm3r.net/scripts/playerprotections.amx
HAMM3R
Edit: You may want to fix the bug that causes car kills to appear as helikills. Just check if the killer's vehicle is not a heli and change the reason to 49.
Used on Novocaine server (not currently). The number of infractions and time frame for each protection are configurable via defines as well as enabling and disabling each protection individually.
It works fine on linux. I heard a rumor about GetTickCount() not working correctly on Windows...
Brief explanation of settings:
Code:
#define DRIVEBY_PROTECTION 1 // Driveby protection is enabled. 1 = on, 0 = off #define DRIVEBY_MAX_KILLS 5 // The number of driveby kills a user must accumulate within the time limit (DRIVEBY_TIMELIMIT) #define DRIVEBY_TIMELIMIT 600 // The number of seconds during which the MAX_KILLS quota must be reached for a kick to be triggered
UPDATE (7/7/07): Setting the *_MAX_KILLS and *_TIMELIMIT to 1 will kick the player on the first infraction.
Download (Pastebin): http://pastebin.ca/611136
Download (pwn): http://gta.hamm3r.net/scripts/playerprotections.pwn
Download (amx): http://gta.hamm3r.net/scripts/playerprotections.amx
HAMM3R
Edit: You may want to fix the bug that causes car kills to appear as helikills. Just check if the killer's vehicle is not a heli and change the reason to 49.