14.04.2010, 01:57
pawn Код:
if(strcmp(cmdtxt, "/givelicense", true) == 0)
{
new Float:health; // We determine that the health is a Float, so we create it
new string[64]; // 128 is too big for this, downed to 64
GetPlayerHealth(playerid, health); // Its not the same as GetPlayerName, check the wiki for more info.
format(string, sizeof(health),"Your HP is at %.1f percent!",health); // we format it
SendClientMessage(RED,string); // we send the message
return 1; // we close the command
}