SA-MP Forums Archive
Help needed. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help needed. (/showthread.php?tid=169250)



Help needed. - Karlio - 18.08.2010

Okay, let me explain the situation. I'm setting gate positions right, but i set it in the right pos but when i do /gate it dosn't work and for fbigateopen2 = 1; i don't know what to do in that line every time i put coords in it creates a new gate but i want it to slide away..

Here is the code -

Код:
	else if(IsPlayerInRangeOfPoint(playerid, 12.0, 323.9845,-1484.9514,24.9362))
        { //FBI GATE 2
            if(!(PlayerInfo[playerid][pMember] == 2)) return SendClientMessage(playerid,COLOR_GREY,"   You are not a member of the FBI !");
            if(fbigateopen2 == 0)
            {
                fbigateopen2 = 1;
            	MoveObject(FBIGate2, , 1.500000);
			}
			else
			{
			    fbigateopen2 = 0;
			    MoveObject(FBIGate2, -1488.1542,24.5853,325.3836, 1.500000);
			}
        }
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "   You are not near a gate !");
			return 1;
		}
		return 1;
	}
Thanks in advanced.


Re: Help needed. - akis_tze - 18.08.2010

maybe you move the object in the same place that it is


Re: Help needed. - Mr. Despair - 19.08.2010

^ ? Derp. He wants to make the gate move to the specified coordinates, but it's not moving when he types /gate.