SA-MP Forums Archive
Moving Gate is not opening - 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: Moving Gate is not opening (/showthread.php?tid=511964)



Moving Gate is not opening - GwENiko - 08.05.2014

Whenever i put the command to open the gate, it just stands still, nothing happens.

pawn Код:
CMD:agate(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xFFFFFFAA, "{627D80}Error: You are not allowed to use this.");
    if(IsPlayerInRangeOfPoint(playerid, 10.0, 835.6018100, -1850.3188500, 11.4211000))
    {
    MoveObject(AGate, 835.6018100 ,-1850.3188500, 11.4211000 - 100.0, 5.0);
    SendClientMessage(playerid, 0x71BBD1FF, "The gate has been opened, and will close in 5 seconds.");
    AGateOpened[playerid] = 1;
        KillTimer(ResetAGate[playerid]);
        ResetAGate[playerid] = SetTimerEx("ResettingAGate", 5000, 0, "i", playerid);
        }
        return 1;
}
 
forward ResettingAGate(playerid);
public ResettingAGate(playerid)
{
        AGateOpened[playerid] = 0;
        MoveObject(AGate, 835.6018100 ,-1850.3188500, 11.4211000, 5.0);
        return 1;
}



Re: Moving Gate is not opening - ikbenremco - 08.05.2014

Where do you define this? AGate


Re: Moving Gate is not opening - GwENiko - 08.05.2014

OnGameModeInit


Re: Moving Gate is not opening - BroZeus - 08.05.2014

make sure you are near gate and try increasing range


Re: Moving Gate is not opening - rockhopper - 08.05.2014

LOL all he hasnt change his co - ordinates only....
11.4211000 - 100.0 make it only 11.4211000
and reset like this 11.4211100 - 100.0