SetPlayerArmour

From SA-MP Wiki

Jump to: navigation, search


SetPlayerArmour will allow you to change the players armour amount.


Parameters:
(playerid, Float:armour)
playeridThe player you want to change the armour of.
Float:armourThe new armour you want to give a player as a float.


ReturnsThis function doesn't return a specific value


if (strcmp(cmdtext, "/armour", true) == 0)
{
    SetPlayerArmour(playerid, 100.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Armour restored!");
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools