gate problem
#2

Why you made like 4 gates ?

You only need 1 gate and move it around. Let me give you an example:

pawn Код:
new gate1;
Next:
pawn Код:
public OnFilterScriptInit()
{
gate1 = CreateObject(980,923.155,-1225.358,18.3,0.0,0.0,90.000);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
      if (strcmp("/redopen", cmdtext, true, 10) == 0)
      {
           MoveObject(gate1, 923.155,-1225.358,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);
            SendClientMessage(playerid,COLOR_LIGHTCYAN,"Red Blood'z Gate is Closed.Thanks");
            return 1;
       }
       return 0;
Now, if you, let`s say, have 2 gates, which you want to open with the same command, at the same time, you need to make another gate, gate2 for example and move it too along with the first gate.
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: 3 Guest(s)