Get score, armour and health after kill.
#4

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new score;
    score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+10); //change 10 to whatever you like
    new armour;
    armour = GetPlayerArmour(playerid);
    SetPlayerArmour(killerid, armour+10);
    SetPlayerHealth(killerid, 100);
    return 1;
}
Reply


Messages In This Thread
Get score, armour and health after kill. - by Subwoofer - 03.06.2012, 12:37
Re: Get score, armour and health after kill. - by Sandiel - 03.06.2012, 13:06
Re: Get score, armour and health after kill. - by Subwoofer - 03.06.2012, 13:13
Re: Get score, armour and health after kill. - by BleverCastard - 03.06.2012, 13:16
Re: Get score, armour and health after kill. - by Subwoofer - 03.06.2012, 13:17
Re: Get score, armour and health after kill. - by Sandiel - 03.06.2012, 13:23
Re: Get score, armour and health after kill. - by Subwoofer - 03.06.2012, 13:27
Re: Get score, armour and health after kill. - by Sandiel - 03.06.2012, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)