30.11.2012, 05:24
You need to add the Speed in the script for it to move... What happens if you add
For my gates and other moveable objects after 3 "," i have the speed for it to move..
Код:
if(newkeys & KEY_CROUCH && !(oldkeys & KEY_CROUCH)) //horn { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(PlayerToPoint(15.0,playerid,1544.3,-1627.3,13.3)) //near barrier { if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] & ADMIN_ACCESS) { if(barrier_to_garage == 0) { SetObjectRot(lspd_garage_barrier1, 180, 180, 90, 1.5);// 1.5 Try this and see if it works. barrier_to_garage = 1; return 1; } else { SetObjectRot(lspd_garage_barrier1, 180, 90, 90, 1.5);//1.5 Try this and see if it works. barrier_to_garage = 0; return 1; } } }