SA-MP Forums Archive
need help - 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: need help (/showthread.php?tid=75197)



need help - luckie12 - 29.04.2009

i have a little script of moving Gates in my game mode and compile whas good but if i do /opengate1 i get the message GATE OPENED!
but the GATE isnt open look:

i have added this on top:
pawn Код:
new gate1;
this at create objects:
pawn Код:
gate1 = CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000); // coords of closed gate
this at OnPlayerCommandText
pawn Код:
if (strcmp("/opengate1", cmdtext, true) == 0)
    {
        MoveObject(gate1, 980, 1385.557617, -2688.828857, 5); //5 is the speed of opening and the coords when the gate is opened
        SendClientMessage(playerid, 0x00F600AA, "GATE OPENED !");
        return 1;
    }
can anyone help me plzz

thx...alot....


Re: need help - OmeRinG - 29.04.2009

maybe you meant:

MoveObject(gate1, 980, 1385.557617, -2688.828857, 272.734619+5, 5);



Re: need help - luckie12 - 29.04.2009

Quote:
Originally Posted by OmeRinG
maybe you meant:

MoveObject(gate1, 980, 1385.557617, -2688.828857, 272.734619+5, 5);
hm?
what do YOU mean?


Re: need help - OmeRinG - 29.04.2009

Well, your cordinates are REALLY weird, can you give us the closed gate cordinates and the opened gate cordinates?


Re: need help - luckie12 - 29.04.2009

Quote:
Originally Posted by OmeRinG
Well, your cordinates are REALLY weird, can you give us the closed gate cordinates and the opened gate cordinates?
pff

i have this coord
pawn Код:
CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000);
more i dont have