19.05.2012, 13:40
pawn Код:
CMD:verificar(playerid, params[])
{
new id, string[128], nome[24], Float:health, strcata[128];
if(PlayerInfo[playerid][mAdmin] < 1) return SendClientMessage(playerid, VERMELHO, falha);
if(sscanf(params, "d", id)) return SendClientMessage(playerid, BRANCO, "[INFO]: /verificar [playerid]");
{
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[INFO]: Jogador invбlido!");
GetPlayerName(id, nome, 24);
format(string, sizeof(string), "Vida: %d\n", GetPlayerHealth(id, health));
strcat(strcata, string);
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Verificaзгo do personagem", strcata, "Fechar", "Cancelar");
}
return 1;
}
Mesmo eu tendo 100 de vida.