19.02.2014, 15:59
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
if (GetPlayerVehicleID(playerid) == masina)
{
// player entered that vehicle..
}
}
return 1;
}
pawn Код:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
pawn Код:
if (IsPlayerInVehicle(playerid, masina))
{
// player is in that vehicle..
}