[Solved half] moving gate
#2

On top of the script:
Код:
new gate;
Instead of 'CreateObject(986,-302.628,1507.450,76.070,0.0,0.0,0.0);' use

Код:
gate = CreateObject(986,-302.628,1507.450,76.070,0.0,0.0,0.0);
At: "public OnPlayerCommandText(playerid,cmdtext[])", place this:

Код:
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;
}
That's the most easy one I can make, I think :P

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;
}
It's not very nice, but it works
Reply


Messages In This Thread
[Solved half] moving gate - by dclaw - 16.01.2010, 08:25
Re: [help] moving gate - by VonLeeuwen - 16.01.2010, 08:31
Re: [help] moving gate - by KnooL - 16.01.2010, 08:33
Re: [help] moving gate - by dclaw - 16.01.2010, 08:43
Re: [help] moving gate - by dclaw - 16.01.2010, 08:45
Re: [help] moving gate - by KnooL - 16.01.2010, 08:54
Re: [help] moving gate - by dclaw - 16.01.2010, 08:56
Re: [help] moving gate - by KnooL - 16.01.2010, 08:58
Re: [help] moving gate - by dclaw - 16.01.2010, 08:59
Re: [help] moving gate - by KnooL - 16.01.2010, 09:00

Forum Jump:


Users browsing this thread: 11 Guest(s)