/dooropen help
#1

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.
Reply


Messages In This Thread
/dooropen help - by vernz - 28.02.2011, 14:44
Re: /dooropen help - by Max_Coldheart - 28.02.2011, 15:00
Re : /dooropen help - by vernz - 28.02.2011, 15:16
Re : /dooropen help - by vernz - 28.02.2011, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)