[FilterScript] LSPD - Spawner - Armoury - Duty room
#1

******* video -

[ame]http://www.youtube.com/watch?v=DMp5ijJILxk[/ame]

Download - http://www.mediafire.com/?czmc3m2u9avwi2d

Just want the code for the filter script?
Open a new pawno file delete everything and paste this in -

pawn Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT
new LSPD; //LSPD interior entrence
new LSPD2; //LSPD int exit
new door1; //First door in LSPD station
new door2; //Second ^^^^^^^^^^^^^^^^^^^
new OnDuty; // The on duty spot in LSPD
new carspawn; // The car spawner
new armoury; //armoury
new armoury2; //the armoury exit

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("LSPD by Riggster");
    print("--------------------------------------\n");
    AddStaticVehicleEx(497,1550.90002441,-1643.40002441,28.70000076,90.00000000,-1,-1,-1); //Police Maverick
    AddStaticVehicleEx(497,1551.19921875,-1708.09960938,28.70000076,90.00000000,-1,-1,-1); //Police Maverick
    AddStaticVehicleEx(497,1566.69921875,-1708.39941406,28.70000076,90.00000000,-1,-1,-1); //Police Maverick
    AddStaticVehicleEx(497,1566.69921875,-1692.59960938,28.70000076,90.00000000,-1,-1,-1); //Police Maverick
    AddStaticVehicleEx(497,1567.59960938,-1657.29980469,28.70000076,90.00000000,-1,-1,-1); //Police Maverick
    AddStaticVehicleEx(497,1567.30004883,-1643.30004883,28.70000076,90.00000000,-1,-1,-1); //Police Maverick
    CreateObject(3934,1566.50000000,-1657.40002441,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (1)
    CreateObject(3934,1566.50000000,-1657.39941406,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (2)
    CreateObject(3934,1566.40002441,-1643.30004883,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (3)
    CreateObject(3934,1566.39941406,-1643.29980469,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (4)
    CreateObject(3934,1549.59997559,-1643.30004883,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (5)
    CreateObject(3934,1565.69995117,-1692.50000000,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (6)
    CreateObject(3934,1566.09997559,-1708.30004883,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (7)
    CreateObject(3934,1550.09997559,-1708.00000000,27.39999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (8)
    OnDuty = CreatePickup(334, 1, 264.1788,109.7014,1004.6172, -1);
    carspawn = CreatePickup(1239, 1, 1573.9717,-1696.8590,6.2188, -1);
    armoury = CreatePickup(346, 1, 1568.6652,-1690.6022,5.8906, -1);
    armoury2 = CreatePickup(1239, 1, 296.8872,-111.7192,1001.5156, -1);
    LSPD =  CreatePickup(1247, 1, 1554.3307,-1675.5238,16.1953, -1);
    LSPD2 = CreatePickup(1239, 1, 246.2705,108.3405,1003.2188, -1);
    OnDuty = CreatePickup(334, 1, 264.1788,109.7014,1004.6172, -1);
    carspawn = CreatePickup(1239, 1, 1573.9717,-1696.8590,6.2188, -1);
    armoury = CreatePickup(346, 1, 1568.6652,-1690.6022,5.8906, -1);
    armoury2 = CreatePickup(1239, 1, 296.8872,-111.7192,1001.5156, -1);
    door1 = CreateObject(2963,253.3999939,109.6999969,1004.2999878,0.0000000,0.0000000,0.0000000); //object(freezer_door) (1)
    door2 = CreateObject(2963,239.5000000,117.0000000,1004.2999878,0.0000000,0.0000000,180.0000000); //object(freezer_door) (2)
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/gate", cmdtext, true, 10) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,5,253.3999939,109.6999969,1004.2999878))
    MoveObject(door1, 253.3999939,109.6999969,1006.7000122, 5);
    if(IsPlayerInRangeOfPoint(playerid,5,239.5000000,117.0000000,1004.2999878))
    MoveObject(door2, 239.5000000,117.0000000,1006.7000122, 5);
    return 1;
    }
    if (strcmp("/closegate", cmdtext, true, 10) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,5,253.3999939,109.6999969,1004.2999878))
    MoveObject(door1, 253.3999939,109.6999969,1004.2999878, 5);
    if(IsPlayerInRangeOfPoint(playerid,5,239.5000000,117.0000000,1004.2999878))
    MoveObject(door2, 239.5000000,117.0000000,1004.2999878, 5);
    return 1;
    }
    if(strcmp(cmdtext,"/duty",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))
    ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Skins","1.Cadet\n2.Officer\n3.SWAT\n4.Country officer\n5.Cheif\n6.Army\n7.FBI\n8.CIA","Select","Exit");
    if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))
    SendClientMessage(playerid, 0xFF0000AA, "* To get a car go to the icon in the garage and it will tell you what to type!");
    if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))
    SendClientMessage(playerid, 0xFF0000AA, "* Type /weapons too see a list of weapons!");
    if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))
    GivePlayerWeapon(playerid, 3, 1);
    if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))
    GivePlayerWeapon(playerid, 22, 99999);
    return 1;
    }
    if(strcmp(cmdtext,"/equipment",true)==0)
    {
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Weapons","1.Degal\n2.Pump Shotgun\n3.MP5\n4.M4\n5.Pepper Spray\n6.Sniper\n7.TearGas","Get","Exit");
    return 1;
    }
    if(strcmp(cmdtext,"/spawner",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,5,1573.9717,-1696.8590,6.2188))
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Vehicles","1.LSPD cruser\n2.SFPD cruser\n3.LVPD curser\n4.Police Rancher\n5.SWAT tank\n6.Enforcer\n7.FBI truck","Spawn","Exit");
    return 1;
    }
    return 0;
    }
   
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == LSPD)
    {
        SetPlayerInterior(playerid, 10);
        SetPlayerPos(playerid, 246.3931,110.4512,1003.2188 );
        SendClientMessage(playerid, 0x33AA33AA, "* You have enterd the LSPD.");
        return 1;
    }
    if(pickupid == LSPD2)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 1548.6414,-1675.5526,14.6134);
        SendClientMessage(playerid, 0x33AA33AA, "* You have left the LSPD.");
        return 1;
    }
    if(pickupid == OnDuty)
    {
        SendClientMessage(playerid, 0xFF0000AA, "* This is the LSPD on duty spot...");
        SendClientMessage(playerid, 0xFF0000AA, "* Type /Duty to go on duty!");
        return 1;
    }
    if(pickupid == carspawn)
    {
        SendClientMessage(playerid, 0xFF0000AA, "* This is the LSPD car spawner spot");
        SendClientMessage(playerid, 0xFF0000AA, "* Type /spawner to get a car!");
        return 1;
    }
    if(pickupid == armoury)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid, 296.8738,-109.1117,1001.5156);
        SendClientMessage(playerid, 0xFF0000AA, "* This is the LSPD armoury");
        SendClientMessage(playerid, 0xFF0000AA, "* Go to the marker to get you equpment list!");
        return 1;
    }
    if(pickupid == armoury2)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 1568.3363,-1693.2527,5.8906);
        SendClientMessage(playerid, 0xFF0000AA, "* You have left the armoury");
        SendClientMessage(playerid, 0xFF0000AA, "* Now go and stop crime!");
        return 1;
    }
    return 0;
    }
   
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
    case 1:
    {
    if(response)
    {
    switch(listitem)
    {
    case 0:
    {
    GivePlayerWeapon(playerid, 24, 99999);
    return 1;
    }
    case 1:
    {
    GivePlayerWeapon(playerid, 25, 99999);
    return 1;
    }
    case 2:
    {
    GivePlayerWeapon(playerid, 29, 99999);
    return 1;
    }
    case 3:
    {
    GivePlayerWeapon(playerid, 31, 99999);
    return 1;
    }
    case 4:
    {
    GivePlayerWeapon(playerid, 41, 99999);
    return 1;
    }
    case 5:
    {
    GivePlayerWeapon(playerid, 34, 99999);
    return 1;
    }
    case 6:
    {
    GivePlayerWeapon(playerid, 17,99999);
    return 1;
    }
    }
    }
    }
    }
    switch(dialogid)
    {
    case 2:
    {
    if(response)
    {
    switch(listitem)
    {
    case 0:
    {
    CreateVehicle(596,1559.2655,-1693.8508,6.9211,180.0000,-1,-1,-1);
    return 1;
    }
    case 1:
    {
    CreateVehicle(597,1559.2655,-1693.8508,6.9211,180.0000,-1,-1,-1);
    return 1;
    }
    case 2:
    {
    CreateVehicle(598,1559.2655,-1693.8508,6.9211,180.0000,-1,-1,-1);
    return 1;
    }
    case 3:
    {
    CreateVehicle(599,1559.2655,-1693.8508,6.9211,180.0000,-1,-1,-1);
    return 1;
    }
    case 4:
    {
    CreateVehicle(601,1559.2655,-1693.8508,6.9211,180.0000,-1,-1,-1);
    return 1;
    }
    case 5:
    {
    CreateVehicle(427,1559.2655,-1693.8508,6.9211,180.0000,-1,-1,-1);
    return 1;
    }
    case 6:
    {
    CreateVehicle(528,1559.2655,-1693.8508,6.9211,180.0000,-1,-1,-1);
    return 1;
    }
    }
    }
    }
    }
    switch(dialogid)
    {
    case 3:
    {
    if(response)
    {
    switch(listitem)
    {
    case 0:
    {
    SetPlayerSkin(playerid, 71);
    return 1;
    }
    case 1:
    {
    SetPlayerSkin(playerid, 280);
    return 1;
    }
    case 2:
    {
    SetPlayerSkin(playerid, 285);
    return 1;
    }
    case 3:
    {
    SetPlayerSkin(playerid, 282);
    return 1;
    }
    case 4:
    {
    SetPlayerSkin(playerid, 283);
    return 1;
    }
    case 5:
    {
    SetPlayerSkin(playerid, 287);
    return 1;
    }
    case 6:
    {
    SetPlayerSkin(playerid, 286);
    return 1;
    }
    case 7:
    {
    SetPlayerSkin(playerid, 165);
    return 1;
    }
    }
    }
    }
    }
    return 1;
    }


#else



main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif
Reply
#2

Nice job.
Reply
#3

Good Job! Well Done!
Reply
#4

Great job mate.
Reply
#5

Quote:
Originally Posted by Lyrex
Посмотреть сообщение
Great job mate.
Thanks
Reply
#6

Nice, did you made these objects infront of LSPD or its just an Series for Graphics?
Repped
Reply
#7

Its just for Graphics
Reply
#8

Good one, you spelt 'Chief' wrong, as 'Cheif'

lso, where'd you get those speedometer and health/armor mod? Very interested
Reply
#9

Quote:
Originally Posted by Vinnie Robardo
Посмотреть сообщение
Good one, you spelt 'Chief' wrong, as 'Cheif'

lso, where'd you get those speedometer and health/armor mod? Very interested
I'll just get the links for you

Speedometer - http://www.mediafire.com/?m4yyb3heodsla06
HUD - http://www.mediafire.com/?6ids6b37os9ypl7

There you go
Reply
#10

GOOD jOB
Reply
#11

Wow, i liked the work in the gates on PD interior.

good job. 10/10
Reply
#12

Quote:
Originally Posted by Dragonborn
View Post
Wow, i liked the work in the gates on PD interior.

good job. 10/10
Thanks alot I loved the great response because its my first filter script! Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)