22.11.2012, 18:31
Or you can use what you did with a for loop.
pawn Код:
public OnGameModeInit( )
{
SetTimer( "musicstall", 1000, false );
return 1;
}
forward musicstall( );
public musicstall( )
{
for( new p = 0; p < MAX_PLAYERS; p++ )
{
if( IsPlayerConnected( p ) && !IsPlayerNPC( p ) && IsPlayerInRangeOfPoint( p, 5.0,1478.8761, -1666.3502, 14.5532 ) )
{
PlayAudioStreamForPlayer( p, "http://lackofstyle.com/mp3s/bing_lookalotlikexmas.mp3" );
}
}
return 1;
}