PAWN Gate Help
#1

I've got a problem with my gate....
When i tipe the cmd, he just keep going in a way I don't want and he never stops..
So... When my gate open's, he never stops..
Help...

Code:


if (strcmp(cmdtext, "/CO", true)==0){
SendClientMessage(playerid,COLOR_GATE,"(INFO) Gate opening!!");
MoveObject (AutomaticGate,523.959229, 2778.823730, 12.445267, 25.0);
return 1;
}
else
if (strcmp(cmdtext, "/CF", true)==0)
{
SendClientMessage(playerid,COLOR_GATE,"(INFO)Gate closing..!!");
MoveObject (AutomaticGate,523.959229, 2778.823730, 0.445267, 25.0);
return 1;
}

Help me..
Reply
#2

Maybe your coordinates are wrong?
Reply
#3

12.445267 to 0.445267 is a way too far
Reply
#4

Also, you need this..

At the top of the script:
Код:
new=gate;
and under OnGameModeInit:
Код:
gate=CreateObject("The Y, and Z, etc.")
And, at the command:
Код:
if (strcmp(cmdtext, "/CF", true)==0)
{
SendClientMessage(playerid,COLOR_GATE,"(INFO)Gate closing..!!");
MoveObject (gate,523.959229, 2778.823730, 0.445267, 25.0);
return 1;
}
Reply
#5

My coordintes are correct..
It's a big gate... So I need that distance down...
I've got the
new gate;
gate = ....

but the only problem is that the gate wont go down... instead of that he just "run" in front of me...

Thanks anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)