16.01.2010, 08:31
On top of the script:
Instead of 'CreateObject(986,-302.628,1507.450,76.070,0.0,0.0,0.0);' use
At: "public OnPlayerCommandText(playerid,cmdtext[])", place this:
That's the most easy one I can make, I think :P
Oh, and he has to close it ofcourse :P
It's not very nice, but it works
Код:
new gate;
Код:
gate = CreateObject(986,-302.628,1507.450,76.070,0.0,0.0,0.0);
Код:
if(strcmp("/opengate", cmdtext, true, 10) == 0) { MoveObject(gate,-293.828,1507.450,76.070,1.5000); // 1.5000 means how fast it has to open return 1; }
Oh, and he has to close it ofcourse :P
Код:
if (strcmp("/closegate",cmdtext,true,10) == 0) { MoveObject(gate,-302.628,1507.450,76.070,1.500); return 1; }
