30.03.2017, 03:50
PHP код:
if(strcmp(cmdtext, "/doctor", true) == 0)
{
new tmp[256], idx, string[128];
tmp = strtok(params, idx);
new id;
if(!IsNumeric(tmp))
id = ReturnPlayerID(tmp);
else
id = strval(tmp);
if(Player[playerid][pAdmin] < 1)
return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para usar este comando!");
if(!strlen(tmp))
return SendClientMessage(playerid, COR_USOCORRETO, "Uso: /vervida [id]");
new Float:health;
GetPlayerHealth(id,health);
format(string, sizeof(string), "Vida do Player %s: %.1f", id, health);
SendClientMessage(playerid, 0xE3E3E3FF,string);
return 1;
}