01.11.2014, 01:47
Assim acho que ficarнa melhor
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(NaCorrida[playerid] == true)
{
if((oldstate == PLAYER_STATE_ONFOOT || oldstate == PLAYER_STATE_DRIVER) && newstate == PLAYER_STATE_PASSENGER)
{
PutPlayerInVehicle(playerid, CriarVehCorrida[playerid], 0);
}
}
return 1;
}

