Not kicking me from the vehicle
#1

Hello,

Im trying to make the script kick the player if they enter a taxi,
But it lets me drive them?

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER) {
    if(GetVehicleModel(playerid) == 420) {
      if(PlayerInfo[playerid][pJob] == 1) {
        SendClientMessage(playerid, COLOR_WHITE, "* Hint: To go on duty type /fare *");
      }
      else {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, COLOR_GREY, "* You do not have the keys to this vehicle *");
      }
    }
  }
  return 1;
}
Reply
#2

GetVehicleModel uses vehicleid , not playerid
Reply
#3

LOL i forgot about that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)