PDA

View Full Version : ULTRA URGENT AUDIO THINGY


NinjaChicken
31/12/2011, 04:06 AM
ok ive done some beach mapping for new years now i want someone to possibly make me a FS so when i type /song((or whatever cmd is)) is players a audio url please help meeeeeee

Ballu Miaa
31/12/2011, 04:08 AM
Get an FS then from the Filterscript sections! Those will be custom. Or post the URL u want to be played? n will it be for all the player's? or only for the playerid?

NinjaChicken
31/12/2011, 04:50 AM
i need it for all players withing an area automatically starts i cant find any

Ballu Miaa
31/12/2011, 05:13 AM
U mean when a Player is ON XYZ coordinates! It will auto Play's the URL for all the players?? Or only for the player who is on the XYZ Coordinate?
What URL u want to be played?

NinjaChicken
31/12/2011, 07:22 AM
i know where to add the url and co ords i just need base CMD

Ballu Miaa
31/12/2011, 09:08 AM
U mean when a Player is ON XYZ coordinates! It will auto Play's the URL for all the players?? Or only for the player who is on the XYZ Coordinate?


Answer the Question please so that i can give you the cmd?

PS

Your using strcmp right?

Ash.
31/12/2011, 09:22 AM
CMD:play(playerid, params[])
{
#pragma unused params
if(!IsPlayerInRangeOfPoint(playerid, 25.0, X, Y, Z)) return SendClientMessage(playerid, COLOUR_RED, "You are not near the beach.");
PlayAudioStreamForPlayer(playerid, YOUR_STREAM_URL);
return 1;
}

Please read the wiki and other tutorials about command processing, especially if you have trouble doing things like that. They are the very basics and you should really go to know at least the basics if you're (planning on) running a server.