05.01.2012, 16:15
This should work, it's not tested though so no guarentees
- Shoulen
pawn Код:
forward ExpTimer(); // Forward the timer callback
public ExpTimer() { // The timer callback
for(new i = 0; i < MAX_PLAYERS; i++) { // Loop
if(IsPlayerConnected(playerid)) {
GivePlayerExp(killerid, 3, "+1 EXP"); // Every connected player receives 1 EXP
}
}
}
public OnGameModeInit() {
SetTimer("ExpTimer", 180000, true); // Repeating timer set when the server starts up
}

