24.06.2012, 08:38
Well, make it like they can't do the command if thet are not in range of the object, and when they do the command, and it succeeds, then use the coords of the object and usepos = 1 of the playaudiostreamforplayer function, then set the range e.t.c
Something like this:
Something like this:
pawn Код:
CMD:stereoon(playerid,params[])
{
if(/*check if he is in rnage of object here*/)
{
PlayAudioStreamForPlayer(playerid,URL[],X,Y,Z,15.0,1);
}
return 1;
}