need help with a command to play audio url
#4

pawn Код:
CMD:radio(playerid,params[])
{
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"You need to be in a vehicle to play the radio!");
            else
            PlayAudioStreamForPlayer(playerid,"http://dl.dropbox.com/u/33255359/COPS.mp3");
            return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER && newstate == PLAYER_STATE_ONFOOT)
    {
            StopAudioStreamForPlayer(playerid);
     }
return 1;
}
Reply


Messages In This Thread
need help with a command to play audio url - by stlane - 05.12.2012, 02:34
Re: need help with a command to play audio url - by cosbraa - 05.12.2012, 03:42
Re: need help with a command to play audio url - by maramizo - 05.12.2012, 03:55
Re: need help with a command to play audio url - by RajatPawar - 05.12.2012, 06:14

Forum Jump:


Users browsing this thread: 2 Guest(s)