SetPlayerArmour

From SA-MP Wiki

Jump to: navigation, search

SetPlayerArmour


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.


This function does not 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 might be useful as well, as they're related to this function in one way or another.

Personal tools