Creating a moveable gate
#1

Hey i need major help for an org on my server i've tried to make gates here
but i just dont get the coords
here's my code
Quote:

CMD:mf(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 10.0,2234,-2215.5,12.5)) { // WHAT DO I CHANGE MY NUMBER 2
if (PlayerOrg[playerid] == 1) {
if(GateOpen == 0) {
MoveDynamicObject(gate, 2238.9382,-2221.0515,12.5, 2); // WHAT DO I CHANGE MY NUMBER 2
MoveDynamicObject(Gate, 2228.8779,-2210.9895,12.5, 2); // WHAT DO I CHANGE NUMBER 2
GateOpen = 1;
}
else {
MoveDynamicObject(Gate, 2234,-2215.5,12.5, 2);
MoveDynamicObject(gate, 2234,-2215.5,12.5, 2); // WHAT DO I CHANGE NUMBER 2
GateOpen = 0;
}
}
else return 0;
}
else {
SendClientMessage(playerid, COLOR_WHITE, "You are not in range of the gate.");
}
return 1;
}

here's the picture where i want gates



i just dont get what to change the numbers to if you could replace it please help Thanks!
Reply


Messages In This Thread
Creating a moveable gate - by Hussain - 18.03.2013, 20:47
Re: Creating a moveable gate - by kamzaf - 18.03.2013, 20:49
Re: Creating a moveable gate - by freddy smyth - 18.03.2013, 20:51
Re: Creating a moveable gate - by Hussain - 18.03.2013, 20:52
Re: Creating a moveable gate - by Hussain - 18.03.2013, 20:54
Re: Creating a moveable gate - by kamzaf - 18.03.2013, 20:59
Re: Creating a moveable gate - by freddy smyth - 18.03.2013, 21:02
Re: Creating a moveable gate - by Hussain - 18.03.2013, 21:09
Re: Creating a moveable gate - by freddy smyth - 18.03.2013, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)