// LSPD if(buttonid == lspdcopsonly) { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 5) { MoveDynamicObject(lspddoor1, 253.2000, 111.6000, 1002.2000,270.0000000, 2.0); SetTimer("DoorClose", 2500, 0); } else { SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI!"); } } if(buttonid == lspdeveryone) { MoveDynamicObject(lspddoor1, 253.2000, 111.6000, 1002.2000,270.0000000, 2.0); SetTimer("DoorClose", 2500, 0); } if(buttonid == lspdcopsonly2) { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 5) { MoveDynamicObject(lspddoor2, 239.5416, 115.0392, 1002.2000,90.0000000, 2.0); SetTimer("DoorClose2", 2500, 0); } else { SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI!"); } } if(buttonid == lspdeveryone2) { MoveDynamicObject(lspddoor2, 239.5416, 115.0392, 1002.2000,90.0000000, 2.0); SetTimer("DoorClose2", 2500, 0); }
forward DoorClose(); public DoorClose() { MoveDynamicObject(lspddoor1, 253.20000, 110.10000, 1002.20001, 270.00000, 2.0); return 1; } forward DoorClose2(); public DoorClose2() { MoveDynamicObject(lspddoor2, 239.5416, 116.6033, 1002.2000, 90.00000, 2.0); return 1; }
I dont really understand what you're saying, can you try and explain it a bit better please.
|
Hmm, any filterscripts there Can interrupt? And is the script inside a FS or GM?
|
MoveDynamicObject(lspddoor1, 253.2000, 111.6000, 1002.2000,270.0000000, 2.0);
->
MoveDynamicObject(lspddoor1, 253.2000, 111.6000, 1002.2000, 2.0, 0, 0, 270.0000000);
Your order of parametars in MoveDynamicObject is wrong. It's MoveDynamicObject(objectid, x, y, z, speed, rx, ry, rz);. You had set it like x, y, z, rz, speed.
pawn Код:
|