Escaping from the vehicle
#4

pawn Код:
public OnPlayerKeyStateChange(playerid, newatate, oldstate)
{
     if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_PASSENGER)
     {
          if(PlayerInfo[playerid][Cuffed] == 1) PutPlayerInVehicle(playerid, vehicleid, 2);
     }
     return 1;
}
Change PlayerInfo[playerid][Cuffed] with the variable you use to detect if the player is cuffed.

Edit: Too late...
Reply


Messages In This Thread
Escaping from the vehicle - by Lusan - 23.08.2013, 11:25
Re: Escaping from the vehicle - by RajatPawar - 23.08.2013, 11:56
Re: Escaping from the vehicle - by Lusan - 23.08.2013, 11:58
Re: Escaping from the vehicle - by Dragonsaurus - 23.08.2013, 12:00
Re: Escaping from the vehicle - by Lusan - 23.08.2013, 12:05
Re: Escaping from the vehicle - by Dragonsaurus - 23.08.2013, 12:07
Re: Escaping from the vehicle - by Lusan - 23.08.2013, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)