SA-MP Forums Archive
Problems with Auto Gate - 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)
+--- Thread: Problems with Auto Gate (/showthread.php?tid=373997)



Problems with Auto Gate - Artie_Scorpion - 01.09.2012

Код:
if(playerDB[playerid][specialybe]==1)
       if(PlayerToPoint(10,playerid,-1571.8170166016, 661.67956542969, 6.9945831298828)) //Vietoj X,Y,Z iraљome savo vartu; kordinates.
       {
       if(!AutoVartai)
       {
       MoveObject(dpx,-1571.8170166016, 661.67956542969, 16.9945831298828,5); //Vietoj X,Y,Z iraљome savo atidarytu; vartu; kordinates.
       AutoVartai = true; // Nustatom, kad vartai yra atidaryti.
       return 1;
       }
       }
       else
       {
       if(AutoVartai)
       {
       MoveObject(dpx,-1571.8170166016, 661.67956542969, 6.9945831298828,5); //Vietoj X,Y,Z iraљome savo atidarytu; vartu; kordinates.
       AutoVartai = false; // Nustatome, kad vartai yra uћdaryti.
       return 1;
       }
       }
This gate is in the SF PD yard. So when i come near, it goes up (should go down) and then it rotates 90 degrees, but then i think they should close but they didnt (only i guess this could be a mistake)


Re: Problems with Auto Gate - Artie_Scorpion - 01.09.2012

Up Up waiting 5 hours for answer ....


Re: Problems with Auto Gate - Artie_Scorpion - 01.09.2012

UP UP


Re: Problems with Auto Gate - _Khaled_ - 01.09.2012

Yea, I guess you're using Scripting Machine,
I also had this problem..

But also found no response, so I kept going on with my gamemode and put it aside,
once you get it tell me


Re: Problems with Auto Gate - Artie_Scorpion - 01.09.2012

Quote:
Originally Posted by _Khaled_
Посмотреть сообщение
Yea, I guess you're using Scripting Machine,
I also had this problem..

But also found no response, so I kept going on with my gamemode and put it aside,
once you get it tell me
What do you mean "put it aside" . I have no idea what to do now, well if what invite me to skype: sa-mp921 we will talk and i'll show you on my server.