Score problem
#2

Simple Method:
pawn Код:
//On Top of your script
new OneScoreTimer;

//In OnGameModeInit
OneScoreTimer = SetTimerEx( "GiveAllScore", 1000*60, true, "i", 1 );

//In OnGameModeExit or whenever you want to stop this timer:
KillTimer(OneScoreTimer);

//At the end of your script:
forward GiveAllScore( score );
public GiveAllScore( score )
{
    for ( new i=0; i<MAX_PLAYERS; i++ )
    {
        if ( IsPlayerConnected(i) ) { SetPlayerScore( i, GetPlayerScore(i) + score ); }
    }
}
And for Register/Login system, you can take a look at the scripting tutorials section.
GL.
Reply


Messages In This Thread
Score problem - by tbedy - 22.07.2011, 10:44
Re: Score problem - by iPLEOMAX - 22.07.2011, 10:58
Re: Score problem - by tbedy - 22.07.2011, 11:04
Re: Score problem - by iPLEOMAX - 22.07.2011, 11:09
Re: Score problem - by MadeMan - 22.07.2011, 11:10
Re: Score problem - by tbedy - 22.07.2011, 11:11
Re: Score problem - by iPLEOMAX - 22.07.2011, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)