[FilterScript] [FS] Simple anti-vehicle v2
#1

[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
Reply
#2

Nice.
Reply
#3

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;
}
Reply
#4

thx for tip, I'll change



edit:

updated, see first post
Reply
#5

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
Reply
#6

useful
Reply
#7

thanks kinetic, v2 is updated see first post

edit:

also thanks for the feedback
Reply
#8

very nice
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)