Gate won't close - 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)
+--- Thread: Gate won't close (
/showthread.php?tid=463328)
Gate won't close -
NathNathii - 11.09.2013
So I'm getting a new moving gate.
It works fine when I
/open it but when I'm gonna
/close it, it doesn't close..
pawn Код:
CMD:close(playerid,params[])
{
MoveObject(Gate,2423.5000000,-2094.7998047,13.3000002,1);
SendClientMessage(playerid, 0xFF0000, "{FFFF00}The gate has closed!");
return 1;
}
CMD:open(playerid,params[])
{
MoveObject(Gate,2423.5000000,-2094.8000488,13.3000002,1);
SendClientMessage(playerid, 0xFF0000, "{FFFF00}The gate has opened! (/close)");
return 1;
}
Re: Gate won't close -
James Bob - 11.09.2013
You're opening the gate making the gate go down but you're making it close at the same cords
you've gotta change the close cords to the cords which it should close at.
Re: Gate won't close -
NathNathii - 11.09.2013
Oh ..I added wrong coordinates at the closing cmd, thanks.
Re: Gate won't close -
NathNathii - 11.09.2013
^Fixed.
Re: Gate won't close -
NathNathii - 11.09.2013
*FIXED