radio in the car and passenger -
iRealSAMP - 29.01.2012
I have a problem, I created a script for radio in the car and made for those who have premium account and so on .. I did go roads can give only the leading radio
but I do not know how you pasageru yes / radiocar X to get (audio streamer) and passengers! to defend and passengers, so if the driver sets / X radiocar listen to music, listening to him to listen and passengers how to do this? Please help me much
Re: radio in the car and passenger -
mineralo - 29.01.2012
pawn Код:
if (strcmp("/radio", cmdtext, true, 15) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
blbbala
return 1;
}
else
{
SendClientMessage(playerid,c_r,"( ! ) You must be inside the vehicle!");
}
return 1;
}
Re: radio in the car and passenger -
iRealSAMP - 29.01.2012
and put Playaudiostreamer link blabla etc. .. and will receive all of the car!?
Re: radio in the car and passenger -
lamarr007 - 29.01.2012
You mean all players in driver car ?
Re: radio in the car and passenger -
iRealSAMP - 29.01.2012
So I did the script that can act only driver with the command / radiocar
Yes? Well, if the driver works with the command / radiocar as I did that is to start radio / radiocar top left appears to Steamer linku Audio. etc. must appear as
But I want to defend him alone! I atujnci when exercising command / radiocar to receive all the link above, all of the car! all radio listening in the car after the driver turn on the radio / radiocar
Re: radio in the car and passenger -
iRealSAMP - 29.01.2012
Look, when acting in that order
Код:
if(strcmp(x_nr,"clubstation",true) == 0)
{
PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~CLUB STATION - ~r~www.star-gaming.ro", 4000, 5);
return 1;
}
I look like me in game
http://postimage.org/image/dmbbu7qht/
But I want to show me not only me, but my passengers are in the car! How can I do that?: (A server is not serious but it is a server script shares with other so
means that there can be, how can I?
Re: radio in the car and passenger -
mineralo - 30.01.2012
try this
pawn Код:
if(strcmp(x_nr,"clubstation",true) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~CLUB STATION - ~r~www.star-gaming.ro", 4000, 5);
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, "http://asculta.radio-conect.net:8000/listen.pls", X, Y, Z, Distance, 1);
return 1;
}
it will play for all who around you, and in inside of vehicle too, for only who in vehicle it will need some varabiale etc for make like how you want
Re: radio in the car and passenger -
iRealSAMP - 30.01.2012
Nustiu if I understand but I added that I have given you instead of the other code and I called a friend to test server, and I gave the car to drive F and my friend was on G passenger, and gave the command how am I / radiocar clubstation! Phase and is heard not only my passenger, and then stopped radio!
Did you even understand what I mean, I said in the most sympathetic way
I want that when you give / radiocar clubstation and me to defend my audioStream and apsagerilor, SA ASCCULTAM ALL DEAODATA
Now you understand
Thanks
Re: radio in the car and passenger -
iRealSAMP - 31.01.2012
help?
Re: radio in the car and passenger -
milanosie - 31.01.2012
pawn Код:
new vehid = GetPlayerVehicleID(playerid);
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, vehid))
{
then use StreamAudio for player
but instead of playerid use i