SetPlayerArmour
From SA-MP Wiki
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. |
| Returns | This 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.
- GetPlayerArmour: Find out how much armour a player has.
- SetPlayerHealth: Set a player's health.
- GetPlayerHealth: Find out how much health a player has.
