09.01.2012, 00:43
PlayAudioStreamForPlayer - how to include a person who has just come?
PlayerAudioStreamForPlayer(playerid,link);
StopAudioStreamForPlayer(playerid);
New name[MAX_PLAYER_NAME];
if(strcmp,name,"Dima",true,10)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerPos(name,X,Y,Z);
if(IsPlayerInRangeOfPoint(i, 10, X,Y,Z))
{
PlayerAudiostream...
}
}
return 1;
}
Oh under onplayerupdate ( i think this will work)
pawn Код:
|