MoveDynamicObject
#1

Sorry once again but i've bumped into a error....
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;
}
Okay only thing is My gate shows up but when i do /mf
the gate disappears
can anyone help?
Reply


Messages In This Thread
MoveDynamicObject - by Hussain - 19.03.2013, 18:02
Re: MoveDynamicObject - by Hussain - 19.03.2013, 18:06
Re : MoveDynamicObject - by thegreathom - 19.03.2013, 19:47
Re: Re : MoveDynamicObject - by Hussain - 19.03.2013, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)