Problems with Auto Gate
#1

Код:
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)
Reply


Messages In This Thread
Problems with Auto Gate - by Artie_Scorpion - 01.09.2012, 12:32
Re: Problems with Auto Gate - by Artie_Scorpion - 01.09.2012, 14:47
Re: Problems with Auto Gate - by Artie_Scorpion - 01.09.2012, 14:59
Re: Problems with Auto Gate - by _Khaled_ - 01.09.2012, 15:03
Re: Problems with Auto Gate - by Artie_Scorpion - 01.09.2012, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)