SA-MP Forums Archive
Help with heal pls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with heal pls (/showthread.php?tid=215322)



Help with heal pls - CheeseSoul - 23.01.2011

How can i heal peoples around me?not all players only around me if u got a link or a script pls put it here !


Re: Help with heal pls - _Tommy - 23.01.2011

No script needed. Make a loop to find the closest players, and heal them.
pawn Код:
new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    for(new i = 0;i<MAX_PLAYERS;i++) if(IsPlayerInRangeOfPoint(i, 50.0, x, y, z)) SetPlayerHealth(i,100);