Adding 3 minutes time to a player if he kills someone
#1

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.

Код:
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;
}
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.
Reply


Messages In This Thread
Adding 3 minutes Login time to a player if he kills someone - by kbalor - 20.07.2012, 18:55
Re: Adding 3 minutes time to a player if he kills someone - by Kindred - 20.07.2012, 18:58
Re: Adding 3 minutes time to a player if he kills someone - by ReneG - 20.07.2012, 19:22
Re: Adding 3 minutes time to a player if he kills someone - by kbalor - 20.07.2012, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)