28.01.2015, 13:34
i'm confused, i've used wikipedia for that but still doesn't work..
look i have made everything but when you press on the button it doesn't want to move the door..
look i have made everything but when you press on the button it doesn't want to move the door..
Код:
new prison1;
Код:
prison1 = CreateButton(1226.3521,-1326.9360,796.7456, 0); //object(kmb_keypad) (2)
Код:
prison1 = CreateDynamicObject(1495,1226.66210938,-1326.52929688,795.75000000,0.00000000,0.00000000,0.00000000); //DOOR
Код:
if(buttonid == prison1) { if(!Team_LSP(playerid)) return SendInfoMessage(playerid, 0, "6", "Test"); MoveDynamicObject(prison1,1226.6621, -1326.0000, 795.7500,6); SetTimer("ClosePrison", 5000, 0); }
Код:
Funcion ClosePrison() { MoveDynamicObject(prison1,1226.66210938,-1326.52929688,795.75000000,4); return 1; }