[FilterScript] Area 51 Toll
#1

This is a FS of the map Area 51 toll

found here

How this is mapped i can only do it one way.

Paste bin
Reply
#2

GJ so you have to pay to go thru the gate?? I never saw any thing about money in the pastebin.
Reply
#3

Quote:
Originally Posted by sherlock
Посмотреть сообщение
GJ so you have to pay to go thru the gate?? I never saw any thing about money in the pastebin.
-,- .
Reply
#4

no its free, basic atm but i will do it so only army vehicles can go through
Reply
#5

i can script it if ya want
Reply
#6

pawn Код:
// Area 51 Toll
// Mapped by Lanzmeister
// Scripted by Tom.1412
// Don't remove credits
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#endif
new Gate;
new Gatepick;
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("  Area 51 Toll ");
    print(" Mapped by Lanzmeister ");
    print(" Scripted by Tom.1412 ");
    print(" Don't remove credits ");
    print("--------------------------------------\n");
    CreateObject(3881, -4.00000000, 2070.50000000, 18.29999924, 0.00000000, 0.00000000, 92.00000000);
    CreateObject(1250, -8.50000000, 2067.39990234, 17.50000000, 0.00000000, 0.00000000, 0.00000000);
    CreateObject(1251, -7.90000010, 2064.50000000, 16.60000038, 0.00000000, 0.00000000, 0.00000000);
    CreateObject(1251, -0.80000001, 2064.50000000, 16.60000038, 0.00000000, 0.00000000, 0.00000000);
    CreateObject(4100, -8.69999981, 2080.39990234, 18.20000076, 0.00000000, 0.00000000, 54.00000000);
    CreateObject(4100, -7.30000019, 2053.39990234, 18.20000076, 0.00000000, 0.00000000, 53.99780273);
    CreateObject(4100, -2.70000005, 2041.19995117, 18.39999962, 0.00000000, 0.00000000, 87.99780273);
    CreateObject(4100, -5.09999990, 2091.80004883, 18.39999962, 0.00000000, 0.00000000, 187.99499512);
    CreateObject(2921, -0.89999998, 2068.39990234, 20.00000000, 0.00000000, 0.00000000, 74.00000000);
    CreateObject(3279, -4.30000019, 2081.39990234, 16.79999924, 0.00000000, 0.00000000, 0.00000000);
    CreateObject(4100, -1.20000005, 2060.30004883, 18.20000076, 0.00000000, 0.00000000, 141.99780273);
    Gate = CreateObject(968, -8.6499996185303, 2067.1000976563, 17.799999237061, 0, 270, 90);
    Gatepick = CreatePickup(1318, 14, -12.1928,2063.8916,17.2199, -1);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Gatepick)
    {
        if(IsPlayerInArmyLandVehicle(playerid))
        {
            SetTimer("Gateopen1", 0, false);
        }
    }
    return 1;
}

forward Gateopen1();
public Gateopen1()
{
    DestroyObject(Gate);
    Gate = CreateObject(968, -8.6499996185303, 2067.1000976563, 17.799999237061, 0, 290, 90);
    SetTimer("Gateopen2", 500, false);
    return 1;
}

forward Gateopen2();
public Gateopen2()
{
    DestroyObject(Gate);
    Gate = CreateObject(968, -8.6499996185303, 2067.1000976563, 17.799999237061, 0, 305, 90);
    SetTimer("Gateopen3", 500, false);
    return 1;
}

forward Gateopen3();
public Gateopen3()
{
    DestroyObject(Gate);
    Gate = CreateObject(968, -8.6499996185303, 2067.1000976563, 17.799999237061, 0, 315, 90);
    SetTimer("Gateclose1", 3000, false);
    return 1;
}

forward Gateclose1();
public Gateclose1()
{
    DestroyObject(Gate);
    Gate = CreateObject(968, -8.6499996185303, 2067.1000976563, 17.799999237061, 0, 305, 90);
    SetTimer("Gateclose2", 500, false);
    return 1;
}

forward Gateclose2();
public Gateclose2()
{
    DestroyObject(Gate);
    Gate = CreateObject(968, -8.6499996185303, 2067.1000976563, 17.799999237061, 0, 290, 90);
    SetTimer("Gateclose3", 500, false);
    return 1;
}

forward Gateclose3();
public Gateclose3()
{
    DestroyObject(Gate);
    Gate = CreateObject(968, -8.6499996185303, 2067.1000976563, 17.799999237061, 0, 270, 90);
    Gatepick = CreatePickup(1318, 14, -12.1928,2063.8916,17.2199, -1);
    return 1;
}

stock IsPlayerInArmyLandVehicle(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
        {
            case 432, 433, 470, 490, 526, 601, 426: return 1;
        }
    }
    return 0;
}
here it only lets Army Vehicles in and the Securi car
Reply
#7

I never said i couldn't script it, I was just busy with other jobs
Reply
#8

i've done it anyway
Reply
#9

I can map this to go both ways if you want.

And thank you for making a filterscript of it. I will try it out!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)