G_ObjectsRot
#1

Hi all. I create a barrier. But when I wrote / Opengate gates will not open. My script:
Код:
if(playerDB[playerid][admin])
	{
	   	if (!strcmp("/opengate", cmdtext, true))
	   	{
             new Float:rot[3];
             RotateObject(PD1,rot[0],rot[1]+270.0,rot[2],90,50.0);
             MoveObject(PD1,2238.19726562,2450.41796875,10.61546040, 1);
             return 1;
        }
          
if(playerDB[playerid][admin])
	{
	   	if (!strcmp("/closegate", cmdtext, true))
	   	{
             new Float:rot[3];
             RotateObject(PD1,rot[0],rot[1]-90.0,rot[2],90,50.0);
             MoveObject(PD1,2238.19726562,2450.41796875,10.61546040, 1);
             return 1;
        }
Thanks for the help.
Reply
#2

Well, you dont put anything in the rot[] array, this means, all variables are 0. So in the RotateObject lines you have 0, 0+270, 0 and 0, 0-90, 0. As 270 and -90 are the same, and aslo the coords in both MoveObjects are the same, there is nothing that could change.
You have to put the right stuff in rot[] first, and eventually change the MoveObject coords (depends on how the gate should move)
Reply
#3

Not very understand. If you can, write a script. Thanks.
Reply
#4

Help..
Reply
#5

Up..
Reply
#6

Somebody help..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)