12.10.2010, 19:24
And here is an option without using any params;
I'm sorry the copy and paste is messing up the code so youll get warnings i think but it should work though
Код:
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; }