gate problem
#5

pawn Код:
new gate1;
new gate2;

public OnFilterScriptInit()
{
     gate1 = CreateObject(980,923.155,-1225.358,18.3,0.0,0.0,90.000);
     gate2 = CreateObject(980,923.256,-1216.99,18.3,0.0,0.0,90.000);
     return 1;
}
And now:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/redopen", cmdtext, true, 10) == 0)
{
        MoveObject(gate1, 923.155,-1225.358,7.3,3.0);
        MoveObject(gate2, 923.256,-1216.99,7.3,3.0);
        SendClientMessage(playerid,COLOR_LIGHTCYAN,"Red Blood'z Gate Is Open.Please Use /redclose to close gate");
        return 1;
}
if (strcmp("/redclose", cmdtext, true, 10) == 0)
{

      MoveObject(gate1, 923.155,-1225.358,18.3,3.0);
      MoveObject(gate2, 923.256,-1216.99,18.3,3.0);
      SendClientMessage(playerid,COLOR_LIGHTCYAN,"Red Blood'z Gate is Closed.Thanks");
      return 1;
}
return 0;
}
This should work ...

ps: bijoyekuza, if I`m not wrong, he wants 2 gates to be opened at the same time with one command.
Reply


Messages In This Thread
gate problem - by Venice - 20.03.2011, 01:07
Re: gate problem - by antonio112 - 20.03.2011, 02:29
Re: gate problem - by Venice - 20.03.2011, 06:06
Re: gate problem - by bijoyekuza - 20.03.2011, 06:08
Re: gate problem - by antonio112 - 20.03.2011, 06:09
Re: gate problem - by bijoyekuza - 20.03.2011, 06:11
Re: gate problem - by Venice - 20.03.2011, 06:30

Forum Jump:


Users browsing this thread: 5 Guest(s)