13.05.2013, 08:52
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_ONFOOT && oldstate == PLAYER_DRIVER)
// Stop the radio
else if(newstate == PLAYER_DRIVER && oldstate == PLAYER_ONFOOT)
// Start it
return 1;
}