SA-MP Forums Archive
ULTRA URGENT AUDIO THINGY - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ULTRA URGENT AUDIO THINGY (/showthread.php?tid=307583)



ULTRA URGENT AUDIO THINGY - NinjaChicken - 31.12.2011

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


Re: ULTRA URGENT AUDIO THINGY - Ballu Miaa - 31.12.2011

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?


Re: ULTRA URGENT AUDIO THINGY - NinjaChicken - 31.12.2011

i need it for all players withing an area automatically starts i cant find any


Re: ULTRA URGENT AUDIO THINGY - Ballu Miaa - 31.12.2011

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?


Re: ULTRA URGENT AUDIO THINGY - NinjaChicken - 31.12.2011

i know where to add the url and co ords i just need base CMD


Re: ULTRA URGENT AUDIO THINGY - Ballu Miaa - 31.12.2011

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
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?


Re: ULTRA URGENT AUDIO THINGY - Ash. - 31.12.2011

pawn Код:
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.