22.07.2011, 10:58
Simple Method:
And for Register/Login system, you can take a look at the scripting tutorials section.
GL.
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 ); }
}
}
GL.