Small Problem [HELP]
#4

This is on top of my script.
Код:
new Admingate;
This is in my Public OnGamemodeInit()
Код:
AdminGate = CreateObject(980, 1342.75, -3439.04, 6.31,   0.00, 0.00, 0.00);//closed
This is the command to move the gate.
Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31))
        {
        MoveObject(AdminGate, 1354.28, -3439.05, 6.31, 2);
        }
    }
This is the close command for the gate.
Код:
if (strcmp("/closegate", cmdtext, true, 10) == 0)
    {
         if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31))
         {
         MoveObject(AdminGate, 1342.75, -3439.04, 6.31, 2);
         }
    }
That's all.
Reply


Messages In This Thread
Small Problem [HELP] - by Sting. - 31.07.2012, 16:34
Re: Small Problem [HELP] - by Ballu Miaa - 31.07.2012, 16:42
Re: Small Problem [HELP] - by Skaizo - 31.07.2012, 16:44
Re: Small Problem [HELP] - by Sting. - 31.07.2012, 17:25
Re: Small Problem [HELP] - by Sting. - 31.07.2012, 18:08
Re: Small Problem [HELP] - by TaLhA XIV - 31.07.2012, 19:47
Re: Small Problem [HELP] - by Sting. - 01.08.2012, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)