opens
#7

Did you even read his code?

pawn Код:
#define GATE_OBJ 8 // Edit, it is obviously not that

new Float:gates[][3] =  
{
    {0.0, 0.0, 0.0},
    {0.1, 0.1, 1.0},
    // add gates or edit mines as much as you want  // THIS THIS THIS
};

new gatesObj[sizeof(gates)] =
{
    GATE_OBJ,
    GATE_OBJ,
}

public OnPlayerUpdate(playerid)
{
    for(new i = 0; i < sizeof(gates); i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, gates[i][0], gates[i][1], gates[i][2]))
        {
            MoveObject(gatesObj[i], 0.1, 0.1, 1.0, 0.05);
        }
    }
    return 1;
}
Reply


Messages In This Thread
opens - by hillko - 23.05.2014, 16:39
Re : opens - by S4t3K - 23.05.2014, 16:41
Re: opens - by SilentSoul - 23.05.2014, 16:41
Re: opens - by hillko - 23.05.2014, 16:47
Re : opens - by S4t3K - 23.05.2014, 16:55
Re: opens - by hillko - 23.05.2014, 17:05
Re: opens - by DaniceMcHarley - 23.05.2014, 17:23
Re: opens - by hillko - 23.05.2014, 17:25

Forum Jump:


Users browsing this thread: 2 Guest(s)