Public feed
#531083
// Get the health of a person else if(strcmp(IRCCheck[command], "/hp", true) == 0) { set(IRCCheck[temp],strtok(IRCCheck[string], IRCCheck[idx])); new lookupid; if(NameLookup(-1,IRCCheck[temp],lookupid,0) != 1) { format(IRCCheck[string], sizeof(IRCCheck[string]), "%s [error] Player %s could not be found", IRCCheck[echochan] , IRCCheck[temp]); WriteEcho(IRCCheck[string]); } else { new Float:phealth; GetPlayerHealth( lookupid, phealth ); format(IRCCheck[string], sizeof(IRCCheck[string]), "%s [hp] %s %d %f", IRCCheck[echochan] , PlayerName(lookupid), lookupid , phealth ); WriteEcho(IRCCheck[string]); } }