18.08.2014, 05:47
Hey guys i'm trying to make a song sistem but i'm having some problems,i want to play a song on my car but i want to play for everyone who is next to me like a car sound you know,but how i can make the sound still on the car coordinates? i need to make the music play together with the car...i tried to make this command but he only gets 1 coordinate and play the song there...
pawn Код:
if(strcmp(cmd, "/testesong", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
new Float:songx, Float:songy, Float:songz;
GetVehiclePos(currentveh, songx, songy, songz);
new carid = currentveh;
PlayAudioStreamForPlayer(i, "http://dc677.4shared.com/img/5007482591/6bd05747/dlink__2Fdownload_2FMu3VbE0vba_3Ftsid_3D20140818-034743-893bc92_26lgfp_3D1000_26dsid_3D6yh6k5.1f90f5deb1506f39a7c17a25a7b41710_26sbsr_3D9a428b511a77d6cb2fb3ff76834e7eb624d31b18f84a1c9d/preview.mp3",carid,carid,carid,20,1);
}
}
return 1;
}


