Description:
As the title says, this is an anti car spammer which will automatically re-spawn the cars spammed and give you control over the player who was suspected of the spam and provides the number of cars which were spammed.
=-=-=-=-=-=-=-=-=-=-=-=-=-
Mechanism:
This is very simple, it uses OnVehicleStreamIn and counts the number of vehicles a player streams in, if its over the rational number (which causes spam) it will re-spawn the cars and call the public function related to it.
=-=-=-=-=-=-=-=-=-=-=-=-=-
Usage:
One callback:
Whereas playerid is the player who is suspected of using cheats to spam cars, number is the number of vehicles which were streamed in.
You also NEED to make sure that you don't let players stream in over 100 vehicles (default value) which you can control through:
You can put that ON TOP of your script BEFORE the include to control the number of cars allowed for a player to stream in at a time and write your own number, its 100 by default.
=-=-=-=-=-=-=-=-=-=-=-=-=-
Downloads:
Github: LINK
Pastebin: LINK
Attached: LINK
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Change.Log:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Comments:
This does not always mean the player called in the public function is a cheater, if you spam create cars in one place and let the player stream in over the default value (100) of cars he will call the callback and re-spawn the cars, so if you do, you need to use the #define i mentioned before, Enjoy it.
--
As the title says, this is an anti car spammer which will automatically re-spawn the cars spammed and give you control over the player who was suspected of the spam and provides the number of cars which were spammed.
=-=-=-=-=-=-=-=-=-=-=-=-=-
Mechanism:
This is very simple, it uses OnVehicleStreamIn and counts the number of vehicles a player streams in, if its over the rational number (which causes spam) it will re-spawn the cars and call the public function related to it.
=-=-=-=-=-=-=-=-=-=-=-=-=-
Usage:
One callback:
PHP Code:
OnPlayerSpamCars(playerid, number);
You also NEED to make sure that you don't let players stream in over 100 vehicles (default value) which you can control through:
PHP Code:
#define ACS_MAX_STREAMIN [number]
=-=-=-=-=-=-=-=-=-=-=-=-=-
Downloads:
Github: LINK
Pastebin: LINK
Attached: LINK
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Change.Log:
Code:
None so far.
Comments:
This does not always mean the player called in the public function is a cheater, if you spam create cars in one place and let the player stream in over the default value (100) of cars he will call the callback and re-spawn the cars, so if you do, you need to use the #define i mentioned before, Enjoy it.
--