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

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID) {
        seconds[killerid] += 180;
    }
    // rest of your code
    return 1;
}
also in the timer change it to
Код:
if(seconds[i] >= 1800)
because if a player is 10 seconds away from gaining score and kills someone, no score for them.
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: 2 Guest(s)