02.06.2012, 21:52
Hey guys,
I made a few commands so players could listen to a radio station in a vehicle.
Example:
But what I need help with is when a player leaves a vehicle and enters the vehicle again, I want it to play the station they were listening to before they left the vehicle. I have no idea how to do it.
Thanks again
I made a few commands so players could listen to a radio station in a vehicle.
Example:
Код:
if(strcmp(cmdtext, "/setstation1", true))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You need to be in a vehicle to listen to the radio.");
PlayAudioStreamForPlayer(playerid, "http://72.233.84.175:80");
SendClientMessage(playerid,0xFFFFFFFF,"You are now listening to DUBSTEP.FM");
}
if(strcmp(cmdtext, "/setstation2", true))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You need to be in a vehicle to listen to the radio.");
PlayAudioStreamForPlayer(playerid, "http://scfire-mtc-aa04.stream.aol.com:80/stream/1030");
SendClientMessage(playerid,0xFFFFFFFF,"You are now listening to RADIOUP.COM - THE HITLIST.");
}
Thanks again

