Public feed #531083

Untitled

public c v1 · immutable
Raw Edit
·published 2007-06-02 10:57 UTC
rendered paste body
		// 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]);		    }		}