20.11.2011, 00:52
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
PlayAudioStreamForPlayer(playerid, Radio[GetPlayerVehicleID(playerid)]);
else if(newstate == PLAYER_STATE_ONFOOT)
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, 0x50AF6CAA, "Rбdio desligado automaticamente!");
}
return 1;
}