[FilterScript] [FS] Simple anti-vehicle v2 - 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] [FS] Simple anti-vehicle v2 (
/showthread.php?tid=68749)
[FS] Simple anti-vehicle v2 -
mascii - 13.03.2009
[FS] Simple anti-vehicle v2
Credits: myself and
Kinetic
Description: disables the use of vehicles for all players or an individual player
Commands:
Individual player: /antiv [playerid]
All players: /antiv on /antiv off
(all commands require the use of rcon)
Instructions: copy from pastebin, save and complie, add to filterscripts line
Download:
http://pastebin.com/f72808a47 v2
http://pastebin.com/f742a011 v1
please leave comments
Re: [FS] Simple anti-vehicle -
_TeRmiNaToR_ - 13.03.2009
Nice.
Re: [FS] Simple anti-vehicle -
ICECOLDKILLAK8 - 13.03.2009
You gonna have a lot of problems with this lol, Change
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (antiv == 0)
{
RemovePlayerFromVehicle(playerid);
}
return 1;
}
to
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate = PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER)
{
if (antiv == 0)
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
Re: [FS] Simple anti-vehicle -
mascii - 13.03.2009
thx for tip, I'll change
edit:
updated, see first post
Re: [FS] Simple anti-vehicle -
Kinetic - 22.03.2009
I dont know if you wanted anything expanded on this, but I added you in the ability to disable vehicles for each individual player.
/antiv [playerid] will disable vehicle use for one player.(must be rcon admin to use the command)
Theres your link
-
http://pastebin.com/f72808a47
Re: [FS] Simple anti-vehicle v2 -
Basss - 22.03.2009
useful
Re: [FS] Simple anti-vehicle v2 -
mascii - 22.03.2009
thanks kinetic, v2 is updated
see first post
edit:
also thanks for the feedback
Re: [FS] Simple anti-vehicle v2 -
Danny_Costelo - 22.03.2009
very nice