SA-MP Forums Archive
Need some help here! - 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: Need some help here! (/showthread.php?tid=155203)



Need some help here! - Youtube - 17.06.2010

Hello everyone,i need to make same command to work for 3 places ex:hospital
Код:
	 if(strcmp(cmdtext, "/heal",true)==0)
	{
		if(IsPlayerInRangeOfPoint(playerid, 10, x, y, z))
		{
         //i havent created the code yet so i just ask the question there----V
		}
}
I want to make /heal work when im close to the hospital's,it works for one but idk how to make it work for more and i dont want to make /heal1 /heal2 :/,
any help would be appreciated,thanks!


Re: Need some help here! - [XST]O_x - 17.06.2010

pawn Код:
if(strcmp(cmdtext, "/heal",true)==0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 10, x, y, z) || IsPlayerInRangeOfPoint(playerid, 10, x2,y2,z2) || IsPlayerInRangeOfPoint(playerid,x3,y3,z3))
        {
         SetPlayerHealth(playerid,100);
        }
}



Re: Need some help here! - Youtube - 17.06.2010

Thank you very much O_x