SA-MP Forums Archive
[HELP] Gate Problem - 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] Gate Problem (/showthread.php?tid=179649)



[HELP] Gate Problem - NotoriousMOB - 27.09.2010

Alright a friend of mine have mapped some new gates at LSPD but when i try to open them nothing happends..
i need some other eyes to look at this cause im lost i don't know what i did wrong here.

Object:
Код:
pdgate2 = CreateObject(971,1539.3564453125, -1628.0269775391, 15.273017883301, 0, 0, 270);
Код:
public GateClose5()
{
      MoveObject(pdgate2,1539.3564453125, -1628.0269775391, 15.273017883301, 1.5);
      return 1;
}
And on /gateopen:
Код:
    else if (PlayerToPoint(15, playerid,1544.700317,-1630.735717,13.096980))
        {
              MoveObject(pdgate2,1539.3564453125, -1628.0269775391, 15.273017883301, 1.5);
              SetTimer("GateClose5", 12000, 0);
              SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 6 seconds.");
              GetPlayerName(playerid, sendername, sizeof(sendername));
              format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
              ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }