08.04.2011, 15:11
pawn Код:
COMMAND:stats(playerid, params[])
{
new pID;
if(sscanf(params, "u", pID)) return SendClientMessage(playerid, -1, "Usage: /stats <playerid>");
if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "This player is not connected");
new string[128], Float:armour, Float:health;
GetPlayerHealth(pID,health);
GetPlayerArmour(pID, armour);
format(string, sizeof(string), "Health: %0.f - Armour: %.2f", health,armour);
SendClientMessage(playerid, -1, string);
return 1;
}