29.04.2009, 17:43
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:
this at create objects:
this at OnPlayerCommandText
can anyone help me plzz
thx...alot....
but the GATE isnt open look:
i have added this on top:
pawn Код:
new gate1;
pawn Код:
gate1 = CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000); // coords of closed gate
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;
}
thx...alot....

