[Ajuda] Duvida
#3

PHP код:
dcmd_vervida(playeridparams[])
{
new 
tmp[256], idxstring[128];
tmp strtok(paramsidx);
new 
id;
if(!
IsNumeric(tmp))
id ReturnPlayerID(tmp);
else
id strval(tmp);
if(
Player[playerid][pAdmin] < 1)
return 
SendClientMessage(playeridCOR_ERRO"ERRO: Vocк nгo tem permissгo para usar este comando!");
if(!
strlen(tmp))
return 
SendClientMessage(playeridCOR_USOCORRETO"Uso: /vervida [id]");
new 
Float:health;
GetPlayerHealth(id,health);
format(stringsizeof(string), "Vida do Player %s: %.1f"idhealth);
SendClientMessage(playerid0xE3E3E3FF,string);
return 
1;

Reply


Messages In This Thread
Duvida - by henriqueTL - 29.03.2017, 20:48
Re: Duvida - by HoodScript - 29.03.2017, 20:53
Re: Duvida - by Rato22 - 30.03.2017, 03:10
Re: Duvida - by HoodScript - 30.03.2017, 08:50
Re: Duvida - by henriqueTL - 30.03.2017, 11:28
Re: Duvida - by Rato22 - 30.03.2017, 14:34
Re: Duvida - by henriqueTL - 30.03.2017, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)