HELP! ISPLAYERINRANGEOFPOINT *REP+* (FIXED THREAD)
#1

Hey guys, i recently made my script, which is when player writes a command and he is on certain coords, it puts him into sleep.

The thing is, this isplayerinrangeofpoint is simply not working, i saved my coords, made it and in game went on exact same coords, i even made sure by teleporting to them, i wrote command and it said, that i am not on the coords, the range is 2.0, because i cant make bigger, couse than it would call the sleep more times, because cells are right next to each other, do you guys have any idea, what could couse, that it is not detecting the coords? Here is part of the code:

Код:
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 279.0367,1838.1794,17.6481))
		{
	    	ApplyAnimation(playerid, "BEACH", "Lay_Bac_Loop", 4.1, 1, 0, 0, 0, 60000, 1);
	    	SendClientMessage(playerid, COLOR_YELLOW, "You are sleeping now");
		}
		else if(!IsPlayerInRangeOfPoint(playerid, 2.0, 279.0367,1838.1794,17.6481)) return SendClientMessage(playerid, COLOR_ORANGE, "You must be in the middle of your cell in order to get into the sleep.");
I removed all the variables and everything, so you guys can try it yourselves and see, where is the problem, i also kept the original coords, but you wont have the cells there, but you can try it anyways.

If anyone would be enabled to help me with this problem, i would be really thankful and rep+ him.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)