Help with a 0.3d barrier
#5

These are the open coordinates and closed if you need the array:
pawn Код:
// This function is used to add toll-gates to the map
AddTollGate(GateModel, Float:OX, Float:OY, Float:OZ, Float:CX, Float:CY, Float:CZ, Float:RX, Float:RY, Float:RZ, TollMoney)
{
    // Loop through all tollgates
    for (new TollGate; TollGate < MAX_TOLLGATES; TollGate++)
    {
        // Check if this is an empty entry
        if (ATollGates[TollGate][GateID] == 0)
        {
            // Create a new object for the toll-gate in it's closed status
            ATollGates[TollGate][GateID] = CreateObject(GateModel, CX, CY, CZ, RX, RY, RZ);
            // Set data
            ATollGates[TollGate][TollPrice] = TollMoney; // Set the price to pay for passing the toll-gate
            ATollGates[TollGate][GateStatus] = 0; // Set the status to CLOSED
            ATollGates[TollGate][OpenX] = OX; // Save the OpenX coordinates
            ATollGates[TollGate][OpenY] = OY; // Save the OpenY coordinates
            ATollGates[TollGate][OpenZ] = OZ; // Save the OpenZ coordinates
            ATollGates[TollGate][CloseX] = CX; // Save the CloseX coordinates
            ATollGates[TollGate][CloseY] = CY; // Save the CloseY coordinates
            ATollGates[TollGate][CloseZ] = CZ; // Save the CloseZ coordinates
            break; // Stop the for-loop
        }
    }
}
Reply


Messages In This Thread
Help with a 0.3d barrier - by thimo - 06.12.2011, 16:36
Re: Help with a 0.3d barrier - by Laronic - 06.12.2011, 16:54
Re: Help with a 0.3d barrier - by thimo - 06.12.2011, 16:57
Re: Help with a 0.3d barrier - by Laronic - 06.12.2011, 17:26
Re: Help with a 0.3d barrier - by thimo - 06.12.2011, 17:56
Re: Help with a 0.3d barrier - by Laronic - 06.12.2011, 18:04
Re: Help with a 0.3d barrier - by thimo - 06.12.2011, 18:13
Re: Help with a 0.3d barrier - by thimo - 07.12.2011, 16:48

Forum Jump:


Users browsing this thread: 2 Guest(s)