Gate opens and disapears into ground - 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 opens and disapears into ground (
/showthread.php?tid=334680)
Gate opens and disapears into ground -
alexharvey52 - 15.04.2012
The Gate opens and disapears into ground.
Here is my code:
pawn Код:
if (strcmp("/armygateopen", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pMember] == 15)
if(armygateopen == 1) {
SendClientMessage(playerid,COLOR_GRAD3," The Gate is already open !");
return 1;
}
armygateopen = 1;
MoveObject(armygate,976, 2720, -2401.3000488281, 12.5, 0, 0, 89.999938964844);
SetTimer("GateClose", 6000, 0);
SendClientMessage(playerid, COLOR_GRAD3, "A garage is opened and will close in 6 seconds.");
return 1;
}
Re: Gate opens and disapears into ground -
sidney123 - 15.04.2012
I think it's your streamer plugin. Did you updated it to the latest one?
Re: Gate opens and disapears into ground -
ReneG - 15.04.2012
Make sure your coordinates are correct
Re: Gate opens and disapears into ground -
alexharvey52 - 15.04.2012
My coords are correct cos I converted then from MTA map editor to pawn. I will try updating my streamer plugin.
Re: Gate opens and disapears into ground -
alexharvey52 - 15.04.2012
Updating the streamer plugin makes no difference. Whe i use the command the gate goes to the right direction but forward a bit and then down into the ground.
Re: Gate opens and disapears into ground -
KreeDz - 15.04.2012
It goes forward a bit because of wrong gate placement. Do the gates again in MTA. More than probably you saved the wrong MTA map and got the wrong coordinates.
It happened to me once, for some reason MTA decided to save the wrong thing.
You have to check the coordinates from the GateClose timer, that's where the gate's original coordinates should be.
Re: Gate opens and disapears into ground -
alexharvey52 - 15.04.2012
Tried that, all the cords are deffinetly correct