[SOLVED] 26 errors - Open/Close gates
#6

pawn Код:
if(strcmp(cmdtext,"/secret1", true) == 0) //OPENGATE
{
    if(PlayerToPoint(15.0, playerid, -2468.3889, 1547.0945, 23.8359))
    {
        MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 2.0);
        SendClientMessage(playerid, 0x33FF33AA, "SUCCESS: Gate has been opened, automatically closing in 10 seconds");
        SetTimerEx("CloseGate", 10000, false, "i", playerid);
    }
    return 1;
}

forward CloseGate(playerid)
public CloseGate(playerid)
{
    MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209, 2.0);
    return 1;
}
That should work.
Reply


Messages In This Thread
[SOLVED] 26 errors - Open/Close gates - by cozza123456 - 18.08.2009, 12:08
Re: 26 errors - Open/Close gates - by Lewwy - 18.08.2009, 12:11
Re: 26 errors - Open/Close gates - by cozza123456 - 18.08.2009, 12:11
Re: 26 errors - Open/Close gates - by Lewwy - 18.08.2009, 12:13
Re: 26 errors - Open/Close gates - by cozza123456 - 18.08.2009, 12:15
Re: 26 errors - Open/Close gates - by Lewwy - 18.08.2009, 12:29
Re: [SOLVED] 26 errors - Open/Close gates - by cozza123456 - 18.08.2009, 12:31
Re: [SOLVED] 26 errors - Open/Close gates - by Lewwy - 18.08.2009, 12:32
Re: [SOLVED] 26 errors - Open/Close gates - by cozza123456 - 18.08.2009, 12:36
Re: [SOLVED] 26 errors - Open/Close gates - by Lewwy - 18.08.2009, 12:38
Re: [SOLVED] 26 errors - Open/Close gates - by cozza123456 - 18.08.2009, 12:42

Forum Jump:


Users browsing this thread: 2 Guest(s)