gate not working
#4

Try this:
pawn Код:
CMD:paytroll(playerid,params[])
{
        if(IsPlayerInRangeOfPoint(playerid, 8.0,-638.1337,644.5661,16.6300))
        {
            SetDynamicObjectRot(gate1, 0.000000, 0, -90);
                GivePlayerCash(playerid, -500);
                SendClientMessage(playerid, 0x00FF00AA, "Gate is opening (Auto-closed in 9 sec).");
                SetTimerEx("GateClose", 9000, true,"i",playerid);
        }
}



forward GateClose(playerid);
public GateClose(playerid)
{
    SetDynamicObjectRot(gate1, 0.000000, 0, 90);
    return 1;
}

If the gate still isn't closing try to change the last part in this:
pawn Код:
forward GateClose(playerid);
public GateClose(playerid)
{
    SetDynamicObjectRot(gate1, 0.000000, 0, -90);
    return 1;
}
Reply


Messages In This Thread
gate not working - by Robert West - 11.01.2013, 19:29
Re: gate not working - by TvW - 11.01.2013, 20:24
Re: gate not working - by Robert West - 11.01.2013, 20:35
Re: gate not working - by TvW - 11.01.2013, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)