if kills > 15 bla bla
#8

No need for timer, or OnPlayerUpdate etc. Easiest solutions are usually the best.

Have fun.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    // I would also add this, so the score is spree, not the total kills:
    // SetPlayerScore(playerid, 0)
    if( killerid != INVALID_PLAYER_ID )
    {
        SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);
        if( GetPlayerScore(killerid) == 15 )
        //OR the following, to give armor to player for each kill, when 15 kills are reached
        // if( GetPlayerScore(killerid) >= 15 )
        {
            SetPlayerArmour(killerid,GetPlayerArmour(killerid) + 10);
            // OR!
            SetPlayerArmour(killerid, 100);
        }
    }
    return 1;
}
Reply


Messages In This Thread
if kills > 15 bla bla - by Face9000 - 20.12.2010, 12:06
Re: if kills > 15 bla bla - by blackwave - 20.12.2010, 12:08
Re: if kills > 15 bla bla - by Face9000 - 20.12.2010, 12:11
Re: if kills > 15 bla bla - by blackwave - 20.12.2010, 12:17
Re: if kills > 15 bla bla - by Face9000 - 20.12.2010, 12:28
Re: if kills > 15 bla bla - by blackwave - 20.12.2010, 12:48
Re: if kills > 15 bla bla - by Face9000 - 20.12.2010, 12:55
Re: if kills > 15 bla bla - by TheXIII - 20.12.2010, 13:53

Forum Jump:


Users browsing this thread: 8 Guest(s)