SA-MP Forums Archive
/dooropen help - 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: /dooropen help (/showthread.php?tid=232901)



/dooropen help - vernz - 28.02.2011

Hi guys, Im trying to make door open for lspd but... it say you are too far from the distanation when I do /dooropen and I /save infront of the door and I add it at else if(PlayerToPoint..............))

Here the code:
Код:
if (strcmp("/dooropen", cmdtext, true, 10) == 0)
	{
		if(PlayerToPoint(3.0,playerid,239.52055359, 119.10895538, 1002.21875000))
		{
		    MoveObject(door1,239.52055359, 119.10895538, 1002.21875000,1.50);
		    MoveObject(door2,239.56867981, 116.10665131, 1002.21875000,1.50);
		}
		else if(PlayerToPoint(3.0,playerid,253.21325684, 110.56111908, 1002.21875000))
		{
		    MoveObject(door3,253.21325684, 110.56111908, 1002.21875000,1.50);
		    MoveObject(door4,253.23213196, 107.58644104, 1002.21875000,1.50);
		}
		else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
		{
		    MoveObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50);
		}
		return 1;
	}
If someone know why It doesn't work please... tell me.


Re: /dooropen help - Max_Coldheart - 28.02.2011

Use "IsPlayerInRangeOfPoint"


Re : /dooropen help - vernz - 28.02.2011

still the same thing


Re : /dooropen help - vernz - 28.02.2011

Really help some help please... door are in a basement the big one of lvpd....