05.08.2013, 13:25
pawn Код:
if(!strcmp(cmdtext, "/health"))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float:hp, string[256];
GetPlayerHealth(playerid, hp);
format(string, sizeof(string), "Health: %d", floatround(hp));
SendClientMessage(i, -1,string);
// PlayerTextDrawSetString(playerid, Textdraw1[playerid], string);
// PlayerTextDrawShow(playerid, Textdraw1[playerid]);
}
}
return 1;
}