09.12.2013, 10:51
Inside OnPlayerChangeState
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) != 481)
{
// ure code
}
}
return 1;
}