07.04.2012, 07:47
Just stop the stream and play sound 1068 then a few seconds later play 1069, this re-activates the radio while driving a vehicle (tested)
with this just make a command to call "ResetAllPlayersRadio();" or put it in a stopaudiostream function.
Hope this helps
pawn Код:
}
forward ResetAllPlayersRadio();
public ResetAllPlayersRadio()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayerPlaySound(i, 1068, 0.0, 0.0, 0.0);
SetTimerEx("EnablePlayerRadio",2000,false,"i",i);
}
}
return 1;
}
forward EnablePlayerRadio(playerid);
public EnablePlayerRadio(playerid)
{
if(IsPlayerConnected(playerid))
{
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
}
return 1;
}
Hope this helps