19.03.2013, 18:02
Sorry once again but i've bumped into a error....
I've made my command for the gates
Okay only thing is My gate shows up but when i do /mf
the gate disappears
can anyone help?
I've made my command for the gates
Код:
CMD:mf(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 10.0,324.6000100,-1185.6999500,75.4000000)) { if (PlayerOrg[playerid] == 1) { if(GateOpen == 0) { MoveDynamicObject(gate, 969,318.1000100,-1190.9000200,75.4000000,0.0000000,0.7500000,218.2500000);// OPEN COORDS GateOpen = 1; } else { MoveDynamicObject(Gate, 969,324.6000100,-1185.6999500,75.4000000,0.0000000,0.7500000,218.2500000);// CLOSED COORDS GateOpen = 0; } } else return 0; } else { SendClientMessage(playerid, COLOR_WHITE, "You are not in range of the gate."); } return 1; }
the gate disappears
can anyone help?