02.07.2014, 07:55
como hago para que un piloto pulse F de piloto y no le deje salir del auto.ї
public OnPlayerStateChange(playerid, newstate, oldstate){
new vehicleid = GetPlayerVehicleID(playerid);
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT){
if(GetVehicleModel(vehicleid) == MODELO_VEHICULO){
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid);
}
}
return true;
}