[FilterScript] Anti-RapidFire, Anti-Car Warp. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti-RapidFire, Anti-Car Warp. (
/showthread.php?tid=548473)
Anti-RapidFire, Anti-Car Warp. -
MohanedZzZ - 30.11.2014
-Filterscipt contains: Anti-RapidFire, Anti-Car Warp.
Weapon ID 28 - Micro SMG/Uzi
Weapon ID 32 - Tec9
Weapon ID 38 - Minigun
=> Micro SMG/Uzi + Tec9 + Minigun = Disabled.
I have disabled the following weapons: Uzi - Tec9 - Minigun.
Because they normally shoot fast. For example, uzi shoots 15 bullets in 2 seconds
Since they don't work in Rapidfire too, so this is why they've been disabled.
For the other weapons, they successfully work.
When a player uses Rapidfire on the other weapons except those up ^^^ he/she
will immediatly be (kicked).
Do not forget to change 'Kick' function to your gamemode's.
To see the code of the Rapidfire thing, go to OnPlayerWeaponShot.
--
Anti Car warping system
When the player try to enter three vehicles in 3 seconds the system will detect him and he will immediatly will be kicked (You can change it to Ban instead of Kick samething goes to Rapid fire system..
Pastebin: http://pastebin.com/g57skTUB - Updated, Weapon none damages bug fixed.
Mediafire: Laggy
Anti Rapid fire system credits goes to http://forum.sa-mp.com/showthread.ph...eatures on it.
..
Re: Anti-RapidFire, Anti-Car Warp. -
BiKode - 30.11.2014
Good Work!
Re: Anti-RapidFire, Anti-Car Warp. -
MohanedZzZ - 30.11.2014
Quote:
Originally Posted by BiKode
Good Work!
|
Thanks.
Re: Anti-RapidFire, Anti-Car Warp. -
n0minal - 30.11.2014
It can be optimized a lot...
Logical:
Код:
IsPlayerInAnyVehicle(playerid) || newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER
If player is in any vehicle, why check if he's a passenger or a driver? Good job anyways.
Re: Anti-RapidFire, Anti-Car Warp. -
M0HAMMAD - 30.11.2014
nice job.
Re: Anti-RapidFire, Anti-Car Warp. -
MohanedZzZ - 30.11.2014
Quote:
Originally Posted by n0minal
It can be optimized a lot...
Logical:
Код:
IsPlayerInAnyVehicle(playerid) || newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER
If player is in any vehicle, why check if he's a passenger or a driver? Good job anyways.
|
Because in some hacks if a normal player driving and the hacker warped to him he will be a passenger not a driver.
Re: Anti-RapidFire, Anti-Car Warp. -
Skully82 - 30.11.2014
Simple&Awesome Good job
+REP
((3ash ya zmeel))
AW: Anti-RapidFire, Anti-Car Warp. -
Flori - 30.11.2014
Well done.
Re: Anti-RapidFire, Anti-Car Warp. -
MohanedZzZ - 12.12.2014
Updated, bugs fixed.
Re: Anti-RapidFire, Anti-Car Warp. -
MohanedZzZ - 17.12.2014
Код:
Changelogs:
*Improvements in the Vehicles Hack system.
*Updated the Player Kick system.
* Fixed the none damage for weapons "UZI,TEC"