GetPlayerArmour

From SA-MP Wiki

Jump to: navigation, search

GetPlayerArmour

This function stores the armour of a player into a variable.


Parameters:
(playerid, &Float:armour)
playeridThe playerid who's armour you want to check.
&Float:armourThe variable you want to store the armour in, passed by reference.


ReturnsThe 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.