Quote:
Originally Posted by FalconX
Do you want something like:
pawn Код:
new szTimeTicks = 0, n_bTimerID; // at top n_bTimerID = SetTimer( "ScoreTimer", 1000, true ); // in gamemode init
forward ScoreTimer( ); // at top
public ScoreTimer( ) // anywhere you want { szTimeTicks++; // counting ticks every second switch( szTimeTicks ) // switching it { case 3600: // checking if the time ticks are 1 hour { szTimeTicks = 0; // resetting the time ticks to 0 for( new f = 0; f < MAX_PLAYERS; f++ ) // looping the players { if( IsPlayerConnected( f ) ) { SetPlayerScore( f, GetPlayerScore( f ) + 1 ); // give the score! } } } } }
|
Thanks for the reply falcon!
I'am using Luxadmin and it has Time Login: Do you think it will have a conflict with the filstriptscript?
Also, if player leave, and he/she connects again does the timer will continue?
And last Do you think it is better than one that i post?
Sorry for the qesutions, Just want to know and to prevent lag in the server