Gate Problem
#1

my gate wont get up if i /opengate.

PHP код:
pd CreateDynamicObject(968,1544.69921875,-1623.89941406,13.19999981,0.40100098,90.00000000,270.81848145); //object(barrierturn)(2) 
PHP код:
            else if(PlayerToPoint(10playerid,1543.3916,-1627.9576,13.3828) || PlayerToPoint(10playerid,1549.4288,-1628.2776,13.3828))
                        {
                            
MoveDynamicObject(pd1544.69921875,-1623.89941406,13.199999813.0);
                            
SetTimer("pdclose",5000false);
                            return 
1;
                        }
                    } 
forward pdclose();
PHP код:
                    public pdclose()
                    {
                    
MoveDynamicObject(pd1544.69921875,-1623.89941406,13.199999813.0);
                    return 
1;
                    } 
Reply
#2

Well, how should it move up if all your Z Var's are 13.19999.
You have to change the MoveDynamicObject in your command to the position where you want it to move to, for example:

pawn Код:
else if(PlayerToPoint(10, playerid,1543.3916,-1627.9576,13.3828) || PlayerToPoint(10, playerid,1549.4288,-1628.2776,13.3828))
                        {
                            MoveDynamicObject(pd, 1544.69921875,-1623.89941406,18.19999981, 3.0); //18.199 instead of 13.199  will move the gate 5 up.
                            SetTimer("pdclose",5000, false);
                            return 1;
                        }
                    }
Reply
#3

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
Well, how should it move up if all your Z Var's are 13.19999.
You have to change the MoveDynamicObject in your command to the position where you want it to move to, for example:

pawn Код:
else if(PlayerToPoint(10, playerid,1543.3916,-1627.9576,13.3828) || PlayerToPoint(10, playerid,1549.4288,-1628.2776,13.3828))
                        {
                            MoveDynamicObject(pd, 1544.69921875,-1623.89941406,18.19999981, 3.0); //18.199 instead of 13.199  will move the gate 5 up.
                            SetTimer("pdclose",5000, false);
                            return 1;
                        }
                    }
no no

it the gate is like this: ____
and it needs to open like this : |
Reply
#4

Like this:


(My paint skills are not the very best ones^^).
Reply
#5

yes like that ..
Reply
#6

You have three move parameters in MoveDynamicObject...
RotX, RotY and RotZ

You should do:

pawn Код:
Open:
MoveDynamicObject(pd, 1544.69921875,-1623.89941406,13.21999981,3.0,0.40100098,90.00000000,360.0);
Close:
MoveDynamicObject(pd, 1544.69921875,-1623.89941406,13.20999981,3.0,0.40100098,90.00000000,270.818);
Reply
#7

it still doesent open like Jettry's picture..
Reply
#8

anyone know??
Reply
#9

Use MTA and get the coordinates for the
Open gate, then just paste them into your
MoveDynamicObject function.
Reply
#10

i did and no work then it will open just like Siralos coords..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)