30.04.2009, 13:21
i need help i have a command for open gates but i compiled it it was good no errors
but i go in to the server and i goto the gate i type /opengate 1 it says GATE OPENED!
but it isnt open
plzz any one help me
here is the code:

plzzz anyone help me thx alot...
but i go in to the server and i goto the gate i type /opengate 1 it says GATE OPENED!
but it isnt open
plzz any one help me
here is the code:
pawn Код:
i have added this on top:
new gate1;
this at create objects:
gate1 = CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000); // coords of closed gate
this at OnPlayerCommandText
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;
}

plzzz anyone help me thx alot...
