Radio Help[rep] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Radio Help[rep] (
/showthread.php?tid=331484)
Radio Help[rep] -
Dan_Barocu - 04.04.2012
i want so if im on bike and i crash into wall and im on ground i want auotmaticly radio to stop.i hope you understand!
PHP код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(GetPlayerState==PLAYER_STATE_DRIVER)
StopAudioStreamForPlayer(playerid);
}
Re: Radio Help[rep] -
Ironboy - 04.04.2012
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
Re: Radio Help[rep] -
Toreno - 04.04.2012
Try this;
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_ONFOOT)
{
StopAudioStreamForPlayer(playerid);
}
return 1;
}
Re: Radio Help[rep] -
Dan_Barocu - 04.04.2012
Toreno thx fixed this how i wanted. :X thanks REP
OFF:come on skype please!