Need some help here!
#1

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!
Reply
#2

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);
        }
}
Reply
#3

Thank you very much O_x
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)