31.10.2011, 01:36
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
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; }