How do I add armour to a player?
#1

public OnPlayerDeath(playerid,killerid,reason)
{
SetPlayerArmour(killerid,15);
SendClientMessage(killerid, COLOR_MexicanColor, "Nice shot!");
return 1;
}

current script is this. I know that it will set their armour to 15 even if it's above 15. How do I make it so that it actually gives them 15 armour for every kill?
Reply
#2

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    new Float:armour;
    GetPlayerArmour(killerid, armour);
    SetPlayerArmour(killerid, armour + 15.0);
    SendClientMessage(killerid, COLOR_MexicanColor, "Nice shot!");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)