Not working, timer
#7

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;
}
Reply


Messages In This Thread
Not working, timer - by KingyKings - 22.11.2012, 15:22
Re: Not working, timer - by Virus. - 22.11.2012, 15:27
Re: Not working, timer - by ViniBorn - 22.11.2012, 15:34
Re: Not working, timer - by KingyKings - 22.11.2012, 16:15
Re: Not working, timer - by KingyKings - 22.11.2012, 17:08
AW: Not working, timer - by Skimmer - 22.11.2012, 18:22
Re: Not working, timer - by Konstantinos - 22.11.2012, 18:31
Re: Not working, timer - by KingyKings - 22.11.2012, 18:46
Re: Not working, timer - by Konstantinos - 22.11.2012, 18:53
Re: Not working, timer - by KingyKings - 22.11.2012, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)