GetPlayerArmour
From SA-MP Wiki
GetPlayerArmour
This function stores the armour of a player into a variable.
(playerid, &Float:armour)
| playerid | The playerid who's armour you want to check. |
| &Float:armour | The variable you want to store the armour in, passed by reference. |
| Returns | The player's armour. |
new Float:armour, s[128]; GetPlayerArmour(playerid, armour); format(s, sizeof(s), "SERVER: Your armour is %f percent", armour); SendClientMessage(playerid, 0xFFFFFFAA, s);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetPlayerArmour: Set the armour of a player.
- GetPlayerHealth: Find out how much health a player has.
