Listen to Radio without a vehicle?
#1

I can only enter a vehicle to listen radio, Can i change it to without a car?
What i want is type /music then the Radio will be playing

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	// play an internet radio stream when they are in a vehicle
	if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
	{
		PlayAudioStreamForPlayer(playerid, "http://www.di.fm/mp3/eurodance.pls");
	}
	// stop the internet stream
	else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
	{
	    StopAudioStreamForPlayer(playerid);
	}
	return 0;
}
Reply


Messages In This Thread
Listen to Radio without a vehicle? - by pandaeyez - 31.10.2011, 01:36
Re: Listen to Radio without a vehicle? - by Norn - 31.10.2011, 01:38
Re: Listen to Radio without a vehicle? - by pandaeyez - 31.10.2011, 02:18

Forum Jump:


Users browsing this thread: 2 Guest(s)