20.07.2012, 18:55
Is that possible to add 3 minutes login time to a player if he kills someone? If possible can you reply for the script.
EDIT: I am using timer to get score every 30 minutes. It means 30 minutes of playing = 1 Score. or Basically player can only gain score using this timer.
EDIT: Example player Log in time is 0 Hours| 5 minutes | 0 seconds.
If player kill someone. He will gain 3 minutes, and his login time will be
0 Hours | 8 minutes | 0 seconds.
Something like this.
EDIT: I am using timer to get score every 30 minutes. It means 30 minutes of playing = 1 Score. or Basically player can only gain score using this timer.
Код:
forward scoretimer(); public scoretimer() { for(new i; i<MAX_PLAYERS; i++) { if(!IsPlayerConnected(i)) continue; seconds[i] ++; if(seconds[i] == 1800) { SetPlayerScore(i, GetPlayerScore(i) + 1); seconds[i] = 0; } } return 1; }
If player kill someone. He will gain 3 minutes, and his login time will be
0 Hours | 8 minutes | 0 seconds.
Something like this.