SetPlayerArmour
From SA-MP Wiki
SetPlayerArmour
SetPlayerArmour will allow you to change the players armour amount.
(playerid, Float:armour)
| playerid | The player you want to change the armour of. |
| Float:armour | The 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.
- GetPlayerArmour: Find out how much armour a player has.
- SetPlayerHealth: Set a player's health.
- GetPlayerHealth: Find out how much health a player has.
