whats wrong with that command??
#4

And here is an option without using any params;

Код:
if(!strcmp(cmdtext, "/heal", true))
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(i!=playerid)
{
                             if(GetDistanceBetweenPlayers(playerid,i) < 4 )
                              {
                             SetPlayerHealth(i,100);
  		SendClientMessage(playerid,COLOR_GREEN,"you healed someone");
    	                }    
   		}

return 1;
}
I'm sorry the copy and paste is messing up the code so youll get warnings i think but it should work though
Reply


Messages In This Thread
whats wrong with that command?? - by audifan00 - 12.10.2010, 18:28
Re: whats wrong with that command?? - by [HiC]TheKiller - 12.10.2010, 18:59
Re: whats wrong with that command?? - by cca - 12.10.2010, 19:09
Re: whats wrong with that command?? - by boelie - 12.10.2010, 19:24

Forum Jump:


Users browsing this thread: 2 Guest(s)