[FilterScript] Airport System v1.0 +, Textdraws, Dialogs, NPCs, Skydives and much more to explore!
#1

Airport System v1.0
Hello, I hope that you are guys are fine and enjoying your life.
I write a new script called "Airport System".
Pickups are located at LS, LV, SF airports.
I made this script for my server but then i created new one for my server so i release it here.

1127 lines in v1.0*
Features:
Features of this script are listed below:
- Easy settings.
- NPCs (BOTs), There are 4 Npcs:
1). "[BOT]Puffer" - In airplane.
2). "[BOT]Skimmer" - In airplane.
3). "[BOT]Andromeda" - In airplane.
4). "[BOT]Nyan_cat" - In helicopter.

- Random messages called by above BOTs
- More than 15 textdraws.
- Pickups in LS, LV, SF.
- Following items in main dialog:
1). Airplane ticket - using this you can ride with NPC waiting on runway.
2). Parachute - you can buy a parachute.
3). Direct flight to LS. - direct flight to LS we will discuss it below.
4). Direct flight to LV. - direct flight to LV we will discuss it below.
5). Direct flight to SF. - direct flight to SF we will discuss it below.
6). Skydive over LS - skydive over LS. we will discuss it below.
7). Skydive over LV - skydive over LV. we will discuss it below.
. Skydive over SF - skydive over SF. we will discuss it below.
9). Skydive over Mount Chiliad - skydive over Mount chiliad. we will discuss it below.



Direct Flights:
1). You will be placed in airplane.
2). You will hear online music.
3). This flight takes one Minute.
4). There are emergency exit. just press "mmb" (middle mouse button) near it.
- some time escape from plane is successful
- some time you will be sucked in plane's engine and will die.

5). After one minute you will be reach your particular destination.
6). Many textdraws.


Skydives:
1). When you reach skydiving place you will be freezed for 5 secs.
2). After 5 secs you will be unfreezed.
3). You will be given a parachute.
4). Many textdraws.


BOTs:
1). All 3 plane bots keep flying on particular path. their route is LS - LV - SF. ( you require a plane ticket for ride).
2). An Heli Bot keeps flying between LS - LV - SF (You will be charged $10000).
Код:
[19:26:27] Incoming connection: 127.0.0.1:59971
[19:26:27] Incoming connection: 127.0.0.1:59970
[19:26:27] Incoming connection: 127.0.0.1:59973
[19:26:27] Incoming connection: 127.0.0.1:59972
[19:26:27] [npc:join] [BOT]Andromeda has joined the server (0:127.0.0.1)
[19:26:27] [npc:join] [BOT]Skimmer has joined the server (1:127.0.0.1)
[19:26:27] [npc:join] [BOT]Puffer has joined the server (2:127.0.0.1)
[19:26:27] [npc:join] [BOT]Nyan_cat has joined the server (3:127.0.0.1)
[19:26:27] |[BOT]Andromeda NPC - Has been placed in airplane.|
[19:26:27] |[BOT]Skimmer NPC - Has been placed in airplane.|
[19:26:27] |[BOT]Puffer NPC - Has been placed in airplane.|
[19:26:27] |[BOT]Nyan_cat NPC - Has been placed in Helicopter.|
Random Messages called by bots:
Код:
                [BOT]Puffer: Hey what are you doing motherf*****?
		[BOT]Skimmer: Hey Do you want some candy?
		[BOT]Andromeda: Please oil my mechanical ass.
		[BOT]Nyan_cat:  Nyan...nyan..nyan..nyan..nyan..nyan..nyan..nyan..
		[BOT]Puffer: Please ride with me at any of airports.
		[BOT]Skimmer: call me 0800-BOTS. Pranks are not allowed.
		[BOT]Andromeda: Call 911!.
		[BOT]Nyan_cat: I'm sexy cat.
	        [BOT]Puffer: This is flight c.901. Mayday Mayday Mayday. Goin' down. 
		[BOT]Skimmer: Want some good time honey?
		[BOT]Andromeda: I want some childrens from you.
		[BOT]Nyan_cat: One night.. you want some gold time?..
	        [BOT]Puffer: You are such a noob guy that i ever met.
		[BOT]Skimmer: Hahahahah... That was funney.
		[BOT]Andromeda: OH YES... FASTER.. HARDER. n..DEEPER..OH..YES!!!HARDER!!
                [BOT]Nyan_cat: Visit: www.SEXYBOTS.com ... Let's chat there.
		[BOT]Puffer: It's table tennis, made sexy, simply by being good.
		[BOT]Skimmer: You're funny, heartbreaking, shocking and oh so damn sexy.
		[BOT]Andromeda: I'm sexy as a hell!",
	        [BOT]Nyan_cat: I'm horney just for you... you bad kid.
Setting:
This script can be easily adjustable.
pawn Код:
// <--- Config --->
#define DIALOG_AIRPORT_MENU 99 // dialog id. Change if you already have.
#define BOTS_CONNECT true //Bot Config | Allowed = True & not allowed = false |
#define RANDOM_MESSAGES_ALLOWED true // random messages True | false for allowed and not allowed respectively.
#define RANDOM_MESSAGE_TIME 300 // 5 mins (in seconds = 300 i.e 5x60= 300 etc..)
#define FLIGHT_RECENT_TIME  300 // 5 mins (in seconds = 300 i.e 5x60= 300 etc..)
#define FLIGHT_DURATION      60 // 1 min  (in seconds =  60 i.e 1x60=  60 etc..)
#define SKYDIVE_UNFREEZE       5  // 5 Sec. (in seconds.)
//---
Credits:
Credits for this script belongs to me (Anak).


Pictures (more pictures- Click):


Download:

ClickMe.

Pastebin:
ClickMe.

Codes:
pawn Код:
#include <a_samp>


#define FILTERSCRIPT
// <--- Config --->
#define DIALOG_AIRPORT_MENU 99 // dialog id. Change if you already have.
#define BOTS_CONNECT true //Bot Config | Allowed = True & not allowed = false |
#define RANDOM_MESSAGES_ALLOWED true // random messages True | false for allowed and not allowed respectively.
#define RANDOM_MESSAGE_TIME 300 // 5 mins (in seconds = 300 i.e 5x60= 300 etc..)
#define FLIGHT_RECENT_TIME  300 // 5 mins (in seconds = 300 i.e 5x60= 300 etc..)
#define FLIGHT_DURATION      60 // 1 min  (in seconds =  60 i.e 1x60=  60 etc..)
#define SKYDIVE_UNFREEZE       5  // 5 Sec. (in seconds.)
//---

//
#define COLOR_YELLOW_LABEL 0xFFFF00FF
#define COLOR_GREEN_LABEL 0x33AA33FF
#define COLOR_PINK_LABEL 0xFF0080FF
#define COLOR_RED_LABEL 0xFF0000AA
//
#define orange 0xFF9900AA//color
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_VIOLETBLUE 0x8A2BE2AA
#define COLOR_DEADCONNECT 0x808080AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_FORESTGREEN 0x228B22AA
#define COLOR_DODGERBLUE 0x1E90FFAA
#define COLOR_DARKOLIVEGREEN 0x556B2FAA
#define COLOR_ORANGE 0xFFA500AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_ROYALBLUE 0x4169FFAA
#define COLOR_ERROR 0xD2691EAA
#define COLOR_PINK 0xFF0080FF
#define COLOR_SEXYGREEN 0x00FF00FF
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIME 0x10F441AA
#define COLOR_ADMIN 0x10F441AA
#define COLOR_CYAN 0x40FFFFFF
#define COLOR_ORANGERED 0xFF4500AA





new AirPortPickUp_LS;
new AirPortPickUp_LV;
new AirPortPickUp_SF;
new BoughtTicket[MAX_PLAYERS];
new BOTveh1;
new BOTveh2;
new BOTveh3;
new BOTveh4;
new timer1;
new timer2;
new timer3;
new timer4;

//
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;

//
new FLIGHT_TIMER_RECENT;




new randomMessages[][] =
    {
        "[BOT]Puffer:{FFFFFF} Hey what are you doing motherf*****?",
        "[BOT]Skimmer:{FFFFFF} Hey Do you want some candy?",
        "[BOT]Andromeda:{FFFFFF} Please oil my mechanical ass.",
        "{FF0080}[BOT]Nyan_cat:{FFFFFF}  Nyan...nyan..nyan..nyan..nyan..nyan..nyan..nyan..",
        "[BOT]Puffer:{FFFFFF} Please ride with me at any of airports.",
        "[BOT]Skimmer:{FFFFFF} call me 0800-BOTS. Pranks are not allowed.",
        "[BOT]Andromeda:{FFFFFF} Call 911!.",
        "{FF0080}[BOT]Nyan_cat:{FFFFFF} I'm sexy cat.",
        "[BOT]Puffer:{FFFFFF} This is flight c.901. Mayday Mayday Mayday. Goin' down. ",
        "[BOT]Skimmer:{FFFFFF} Want some good time honey?",
        "[BOT]Andromeda:{FFFFFF} I want some childrens from you.",
        "{FF0080}[BOT]Nyan_cat:{FFFFFF} One night.. you want some gold time?..",
        "[BOT]Puffer:{FFFFFF} You are such a noob guy that i ever met.",
        "[BOT]Skimmer:{FFFFFF} Hahahahah... That was funney.",
        "[BOT]Andromeda:{FFFFFF} OH YES... FASTER.. HARDER. n..DEEPER..OH..YES!!!HARDER!!",
        "{FF0080}[BOT]Nyan_cat:{FFFFFF} Visit: http://www.SEXYBOTS.com ... Let's chat there.",
        "[BOT]Puffer:{FFFFFF} It's table tennis, made sexy, simply by being good.",
        "[BOT]Skimmer:{FFFFFF} You're funny, heartbreaking, shocking and oh so damn sexy.",
        "[BOT]Andromeda:{FFFFFF} I'm sexy as a hell!",
        "{FF0080}[BOT]Nyan_cat:{FFFFFF} I'm horney just for you... you bad kid."

    };




public OnFilterScriptInit()
{

print("\n________________________________");
print("|Loaded!|");
print("\n________________________________");
print("Airpot System v1.0");
print("By Anak.");
print("For info visit Sa-mp forums.");
print("________________________________\n");


AirPortPickUp_LS = CreatePickup(1559, 1, 1685.6980,-2335.4922,13.5469, 0);
AirPortPickUp_LV = CreatePickup(1559, 1, 1672.5366,1447.7250,10.7881, 0);
AirPortPickUp_SF = CreatePickup(1559, 1, -1421.1740,-286.9716,14.1484, 0);






Textdraw0 = TextDrawCreate(354.000000, 385.000000, "Please wait for ~r~one minute.~n~~y~we are on our way.~n~~w~In the case of emergency~n~please ~y~exit ~w~through ~r~exit doors.");
TextDrawAlignment(Textdraw0, 2);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.539999, 1.299999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 999999);
TextDrawTextSize(Textdraw0, -514.000000, 292.000000);
TextDrawSetSelectable(Textdraw0, 0);

Textdraw1 = TextDrawCreate(334.000000, 414.000000, "~w~you are flying with ~y~anak's airways.");
TextDrawAlignment(Textdraw1, 2);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, 255);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, 0);

Textdraw2 = TextDrawCreate(184.000000, 414.000000, "You are riding with ~p~[bot]Nyan_cat.");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 3);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawSetSelectable(Textdraw2, 0);

Textdraw3 = TextDrawCreate(80.000000, 190.000000, "~y~Skydiving in progress. Wait for ~r~5 seconds~w~.");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 3);
TextDrawLetterSize(Textdraw3, 0.699999, 2.099998);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawSetSelectable(Textdraw3, 0);


Textdraw4 = TextDrawCreate(13.000000, 427.000000, "~p~Anak's Airport System v1.0");
TextDrawBackgroundColor(Textdraw4, 65535);
TextDrawFont(Textdraw4, 0);
TextDrawLetterSize(Textdraw4, 0.419999, 0.799998);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetSelectable(Textdraw4, 0);


Textdraw5 = TextDrawCreate(254.000000, 421.000000, "You have ~r~one~w~ airplane ~y~ticket.");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.350000, 1.600000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawSetSelectable(Textdraw5, 0);
//
Textdraw6 = TextDrawCreate(308.000000, 115.000000, "~y~Anak's Airport System v1.0");
TextDrawAlignment(Textdraw6, 2);
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.600000, 2.200000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 999999);
TextDrawTextSize(Textdraw6, 505.000000, 388.000000);
TextDrawSetSelectable(Textdraw6, 0);

Textdraw7 = TextDrawCreate(308.000000, 140.000000, "~p~Credits:");
TextDrawAlignment(Textdraw7, 2);
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 2);
TextDrawLetterSize(Textdraw7, 0.509998, 1.799999);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 999999);
TextDrawTextSize(Textdraw7, 8.000000, 388.000000);
TextDrawSetSelectable(Textdraw7, 0);

Textdraw8 = TextDrawCreate(308.000000, 161.000000, "~y~Anak ~w~- for writing this script.");
TextDrawAlignment(Textdraw8, 2);
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 3);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
TextDrawUseBox(Textdraw8, 1);
TextDrawBoxColor(Textdraw8, 999999);
TextDrawTextSize(Textdraw8, 29.000000, 388.000000);
TextDrawSetSelectable(Textdraw8, 0);

Textdraw9 = TextDrawCreate(308.000000, 197.000000, "~y~forum.sa-mp.com ~w~- for everything.~n~~y~Sa-Mp Users ~w~- for help.~n~~y~Zamaroht ~w~- for textdraw editor.");
TextDrawAlignment(Textdraw9, 2);
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 3);
TextDrawLetterSize(Textdraw9, 0.500000, 1.000000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
TextDrawUseBox(Textdraw9, 1);
TextDrawBoxColor(Textdraw9, 999999);
TextDrawTextSize(Textdraw9, 0.000000, 388.000000);
TextDrawSetSelectable(Textdraw3, 0);

Textdraw10 = TextDrawCreate(308.000000, 175.000000, "~p~Special Thanks to:");
TextDrawAlignment(Textdraw10, 2);
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 2);
TextDrawLetterSize(Textdraw10, 0.480000, 1.900001);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
TextDrawUseBox(Textdraw10, 1);
TextDrawBoxColor(Textdraw10, 999999);
TextDrawTextSize(Textdraw10, 79.000000, 388.000000);
TextDrawSetSelectable(Textdraw10, 0);

Textdraw11 = TextDrawCreate(308.000000, 228.119995, "~p~Crazybob ~w~- for his audio stream.~n~~y~Sa-Mp ~w~-for default NPC script.~n~(Npc script just used for study.)");
TextDrawAlignment(Textdraw11, 2);
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 3);
TextDrawLetterSize(Textdraw11, 0.500000, 1.000000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
TextDrawUseBox(Textdraw11, 1);
TextDrawBoxColor(Textdraw11, 999999);
TextDrawTextSize(Textdraw11, 0.000000, 388.000000);
TextDrawSetSelectable(Textdraw11, 0);

Textdraw12 = TextDrawCreate(308.000000, 260.000000, "~g~(BOT)Skimmer, (BOT)Puffer~n~~g~(BOT)Andromeda, ~r~(BOT)Nyan_Cat~n~~w~for their services.");
TextDrawAlignment(Textdraw12, 2);
TextDrawBackgroundColor(Textdraw12, 255);
TextDrawFont(Textdraw12, 3);
TextDrawLetterSize(Textdraw12, 0.500000, 1.000000);
TextDrawColor(Textdraw12, -1);
TextDrawSetOutline(Textdraw12, 0);
TextDrawSetProportional(Textdraw12, 1);
TextDrawSetShadow(Textdraw12, 1);
TextDrawUseBox(Textdraw12, 1);
TextDrawBoxColor(Textdraw12, 999999);
TextDrawTextSize(Textdraw12, 0.000000, 388.000000);
TextDrawSetSelectable(Textdraw12, 0);

Textdraw13 = TextDrawCreate(308.000000, 291.119995, "~p~Contact:");
TextDrawAlignment(Textdraw13, 2);
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 2);
TextDrawLetterSize(Textdraw13, 0.490000, 2.100000);
TextDrawColor(Textdraw13, -1);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 1);
TextDrawUseBox(Textdraw13, 1);
TextDrawBoxColor(Textdraw13, 999999);
TextDrawTextSize(Textdraw13, 0.000000, 388.000000);
TextDrawSetSelectable(Textdraw13, 0);

Textdraw14 = TextDrawCreate(308.000000, 315.000000, "~y~forum.sa-mp.com - User name 'Anak'.~n~~p~Email:~n~~y~noumanarshad0320@gmail.com");
TextDrawAlignment(Textdraw14, 2);
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 3);
TextDrawLetterSize(Textdraw14, 0.500000, 1.000000);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);
TextDrawUseBox(Textdraw14, 1);
TextDrawBoxColor(Textdraw14, 999999);
TextDrawTextSize(Textdraw14, 0.000000, 388.000000);
TextDrawSetSelectable(Textdraw14, 0);

Textdraw15 = TextDrawCreate(308.000000, 347.000000, "~n~~y~Box will close in~n~~p~ 10 seconds.");
TextDrawAlignment(Textdraw15, 2);
TextDrawBackgroundColor(Textdraw15, 255);
TextDrawFont(Textdraw15, 2);
TextDrawLetterSize(Textdraw15, 0.500000, 1.000000);
TextDrawColor(Textdraw15, -1);
TextDrawSetOutline(Textdraw15, 0);
TextDrawSetProportional(Textdraw15, 1);
TextDrawSetShadow(Textdraw15, 1);
TextDrawUseBox(Textdraw15, 1);
TextDrawBoxColor(Textdraw15, 999999);
TextDrawTextSize(Textdraw15, 14.000000, 388.000000);
TextDrawSetSelectable(Textdraw15, 0);


Create3DTextLabel("Emergency exit.\nPress 'mmb'", COLOR_RED_LABEL, 2.3169,23.0622,1199.5938, 10.0, 0, 0);

//
    #if RANDOM_MESSAGES_ALLOWED == true // random messages config.
    // random messege timer
    SetTimer("RandomMessages", RANDOM_MESSAGE_TIME*1000, true);// 3mins
    print("SETTINGS: RANDOM MESSAGES ALLOWED - true");

    //
    #endif
//



//
   #if BOTS_CONNECT == true // bot config - Do config on top.(#define BOTS_CONNECT true / False)
   ConnectNPC("[BOT]Skimmer","aplane_lv");
   ConnectNPC("[BOT]Andromeda","aplane_sf");
   ConnectNPC("[BOT]Puffer","aplane_ls");
   ConnectNPC("[BOT]Nyan_cat","Anak's_heli");
   print("SETTINGS: BOTS ALLOWED - true");
   BOTveh1 = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 194, 194, 5000);
   BOTveh2 = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 232, 232, 5000);
   BOTveh3 = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 182, 182, 5000);
   BOTveh4 = CreateVehicle(487, 0.0, 0.0, 5.0, 0.0, 228, 228, 5000);
   #endif
//

   #if RANDOM_MESSAGES_ALLOWED == false
   print("SETTINGS: RANDOM_MESSAGES_ALLOWED - false");
   #endif

   #if BOTS_CONNECT == false
   print("SETTINGS: BOTS ALLOWED - false");
   #endif
return 1;
}


public OnPlayerConnect(playerid)
{

BoughtTicket[playerid] = 0;


return 1;
}




public OnPlayerSpawn(playerid)
{ SendClientMessage(playerid, COLOR_YELLOW, "*This server is using Anak's Airport_System v1.0");
  TextDrawShowForPlayer(playerid, Textdraw4);


  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "[BOT]Skimmer", true)) //Checking if the NPC's name is MyFirstNPC
    {
      print("|[BOT]Skimmer NPC - Has been placed in airplane.|");
      SetPlayerColor(playerid, COLOR_GREEN);
      SetPlayerSkin(playerid, 61);
      new Text3D:label1 = Create3DTextLabel("Anak's Airways", COLOR_YELLOW_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label1, playerid, 0.0, 0.0, 0.7);
      new Text3D:label4 = Create3DTextLabel("[BOT]Skimmer", COLOR_GREEN_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label4, playerid, 0.0, 0.0, 0.3);
      PutPlayerInVehicle(playerid, BOTveh1, 0); //Putting the NPC into the vehicle we created for it.
      return 1;
    }


    if(!strcmp(npcname, "[BOT]Andromeda", true)) //Checking if the NPC's name is MyFirstNPC
    {
      print("|[BOT]Andromeda NPC - Has been placed in airplane.|");
      SetPlayerColor(playerid, COLOR_GREEN);
      SetPlayerSkin(playerid, 61);
      new Text3D:label2 = Create3DTextLabel("Anak's Airways", COLOR_YELLOW_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label2, playerid, 0.0, 0.0, 0.7);
      new Text3D:label5 = Create3DTextLabel("[BOT]Andromeda", COLOR_GREEN_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label5, playerid, 0.0, 0.0, 0.3);
      PutPlayerInVehicle(playerid, BOTveh2, 0); //Putting the NPC into the vehicle we created for it.
      return 1;
    }


    if(!strcmp(npcname, "[BOT]Puffer", true)) //Checking if the NPC's name is MyFirstNPC
    {
      print("|[BOT]Puffer NPC - Has been placed in airplane.|");
      SetPlayerColor(playerid, COLOR_GREEN);
      SetPlayerSkin(playerid, 61);
      new Text3D:label3 = Create3DTextLabel("Anak's Airways", COLOR_YELLOW_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label3, playerid, 0.0, 0.0, 0.7);
      new Text3D:label6 = Create3DTextLabel("[BOT]Puffer", COLOR_GREEN_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label6, playerid, 0.0, 0.0, 0.3);
      PutPlayerInVehicle(playerid, BOTveh3, 0); //Putting the NPC into the vehicle we created for it.
      return 1;
    }
   
    if(!strcmp(npcname, "[BOT]Nyan_cat", true)) //Checking if the NPC's name is MyFirstNPC
    {
      print("|[BOT]Nyan_cat NPC - Has been placed in Helicopter.|");
      SetPlayerColor(playerid, COLOR_PINK);
      SetPlayerSkin(playerid, 87);
      new Text3D:label3 = Create3DTextLabel("Anak's Airways", COLOR_YELLOW_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label3, playerid, 0.0, 0.0, 0.7);
      new Text3D:label6 = Create3DTextLabel("[BOT]Nyan_cat", COLOR_PINK_LABEL, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(label6, playerid, 0.0, 0.0, 0.3);
      PutPlayerInVehicle(playerid, BOTveh4, 0); //Putting the NPC into the vehicle we created for it.
      return 1;
    }

    return 1;
  }
  //Other stuff for normal players goes here!
  return 1;
}


forward Unfreeze_skydive(playerid);
forward FLIGHT_TO_LV(playerid);
forward FLIGHT_TO_LS(playerid);
forward FLIGHT_TO_SF(playerid);
forward FLIGHT_TO_LS1(playerid);
forward RandomMessages();
forward FLIGHT_TIMER(playerid);
forward TEXTDRAW_TICKET_HIDE(playerid);
forward CREDITS_TIMER(playerid);





public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/acredits", cmdtext, true, 10))
    {
    TextDrawShowForPlayer(playerid, Textdraw6);
    TextDrawShowForPlayer(playerid, Textdraw7);
    TextDrawShowForPlayer(playerid, Textdraw8);
    TextDrawShowForPlayer(playerid, Textdraw9);
    TextDrawShowForPlayer(playerid, Textdraw10);
    TextDrawShowForPlayer(playerid, Textdraw11);
    TextDrawShowForPlayer(playerid, Textdraw12);
    TextDrawShowForPlayer(playerid, Textdraw13);
    TextDrawShowForPlayer(playerid, Textdraw14);
    TextDrawShowForPlayer(playerid, Textdraw15);
    SetTimerEx("CREDITS_TIMER", 10*1000, false, "i", playerid);
    SendClientMessage(playerid, COLOR_YELLOW, "You are viewing credits for Airport_System v1.0 - This Box will disappear automatically.");

   

    return 1;
    }

    return 0;
}




public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER) // Player entered a vehicle as a driver
    {
    new vehicle;
    vehicle = GetPlayerVehicleID(playerid);
    if(vehicle == BOTveh1 || vehicle == BOTveh2 || vehicle == BOTveh3)
    {
                   if(BoughtTicket[playerid] == 0)
                    {
                    SendClientMessage(playerid, COLOR_RED,"Buy plane ticket from terminal.");
                    GameTextForPlayer(playerid,"~w~you Don't have ~r~Ticket.~n~~y~Buy from terminal.",4000,3);
                    new Float:x, Float:y, Float:z;
                    GetPlayerPos(playerid, x, y, z);
                    SetPlayerPos(playerid, x+3, y+3, z+5);
                    }
                    else
                    {
                    SendClientMessage(playerid, COLOR_YELLOW,"[Anak's Airways]: Welcome on flight sir - Your ticket is used.");
                    SendClientMessage(playerid, COLOR_WHITE,"Please exit plane when you reach your destination.");
                    GameTextForPlayer(playerid,"~y~welcome on flight sir.~n~~w~hope you will enjoy your stay.",4000,3);
                    TextDrawShowForPlayer(playerid, Textdraw1);
                    BoughtTicket[playerid] = 0;
                    }
    }
   
   
    if(vehicle == BOTveh4)
    {
         if(GetPlayerMoney(playerid) < 10000)
         {
         SendClientMessage(playerid, COLOR_PINK, "[BOT]Nyan_cat: {FFFFFF}You don't have $10000. I'm not taking you free.");
         new Float:x, Float:y, Float:z;
         GetPlayerPos(playerid, x, y, z);
         SetPlayerPos(playerid, x+5, y+5, z);
         }
         else
         {
         GivePlayerMoney(playerid, -10000);
         GameTextForPlayer(playerid,"~w~welcome to ~y~helicopter~w~.",4000,3);
         SendClientMessage(playerid, COLOR_PINK, "[BOT]Nyan_cat: {FFFFFF}Hello Sir. Welcome to Heli. This Ride will cost you $10000. My Route is: LS - LV - SF.");
         SendClientMessage(playerid, COLOR_WHITE, "I will try to give you comfort. Please enjoy.");
         TextDrawShowForPlayer(playerid, Textdraw2);
         }
    }
    }
    return 1;
}



public OnPlayerExitVehicle(playerid, vehicleid)
{
    new vehicle;
    vehicle = GetPlayerVehicleID(playerid);
    if(vehicle == BOTveh1 || vehicle == BOTveh2 || vehicle == BOTveh3)
    {
    TextDrawHideForPlayer(playerid, Textdraw1);
    SendClientMessage(playerid, COLOR_YELLOW, "[Anak's Airways]: Bye sir.");
    }
   
    if(vehicle == BOTveh4)
    {
    TextDrawHideForPlayer(playerid, Textdraw2);
    SendClientMessage(playerid, COLOR_PINK, "[BOT]Nyan_cat: {FFFFFF}Bye Bye cutie.");
    }
   
   
   
   
    return 1;
}


public OnFilterScriptExit()
{

print("\n________________________________");
print("|Unloaded!|");
print("\n________________________________");
print("Airpot System v1.0");
print("By Anak.");
print("For info visit Sa-mp forums.");
print("________________________________\n");




return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
BoughtTicket[playerid] = 0;
(FLIGHT_TIMER_RECENT = 0);
KillTimer(timer1);
KillTimer(timer2);
KillTimer(timer3);
KillTimer(timer4);
StopAudioStreamForPlayer(playerid);
TogglePlayerControllable(playerid,1);
FLIGHT_TIMER_RECENT =0;
(FLIGHT_TIMER_RECENT = 0);
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
//TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
TextDrawHideForPlayer(playerid, Textdraw10);
TextDrawHideForPlayer(playerid, Textdraw11);
TextDrawHideForPlayer(playerid, Textdraw12);
TextDrawHideForPlayer(playerid, Textdraw13);
TextDrawHideForPlayer(playerid, Textdraw14);
TextDrawHideForPlayer(playerid, Textdraw15);

return 1;
}





public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if (newkeys & KEY_LOOK_BEHIND )
  {
     if (IsPlayerInRangeOfPoint (playerid, 5.0, 2.3169,23.0622,1199.5938))
                   {
                   SendClientMessage(playerid, COLOR_YELLOW, "You exit the plane through emergency exit.");
                   SendClientMessage(playerid, COLOR_WHITE, "You took a parachute from your seat. Good Luck.");
                   KillTimer(timer1);
                   KillTimer(timer2);
                   KillTimer(timer3);
                   KillTimer(timer4);
                   TextDrawHideForPlayer(playerid, Textdraw0);
                   StopAudioStreamForPlayer(playerid);
                   new emergency_exit = random(5);
                   switch(emergency_exit)
                        {
                            case 0:
                            {
                            SetPlayerInterior(playerid, 0);
                            SendClientMessage(playerid, COLOR_YELLOW,"|Success|");
                            SetPlayerPos(playerid, 375.9342,172.1572,228.3517);
                            GivePlayerWeapon(playerid, 46, 1);
                            }
                           
                            case 1:
                            {
                            SetPlayerInterior(playerid, 0);
                            SendClientMessage(playerid, COLOR_YELLOW,"|Success|");
                            SetPlayerPos(playerid, -1072.0977,-994.3056,369.5175);
                            GivePlayerWeapon(playerid, 46, 1);
                            }
                           
                            case 2:
                            {
                            SetPlayerInterior(playerid, 0);
                            SendClientMessage(playerid, COLOR_YELLOW,"|Success|");
                            SetPlayerPos(playerid, 400.1494,-2232.8203,369.5175);
                            GivePlayerWeapon(playerid, 46, 1);
                            }
                           
                            case 3:
                            {
                            SetPlayerInterior(playerid, 0);
                            SetPlayerPos(playerid, 2012.4542,-676.9313,307.1604);
                            GivePlayerWeapon(playerid, 46, 1);
                            SendClientMessage(playerid, COLOR_RED,"|Fail|");
                            SendClientMessage(playerid, COLOR_RED, "Sucked in engine.");
                            new Float:x, Float:y, Float:z;
                            GetPlayerPos(playerid, x, y, z);
                            CreateExplosion(x, y, z, 7, 10.0);
                            SetPlayerHealth(playerid, -100);
                            }
                           
                            case 4:
                            {
                            SetPlayerInterior(playerid, 0);
                            SendClientMessage(playerid, COLOR_YELLOW,"|Success|");
                            SetPlayerPos(playerid, 2574.5957,1141.1149,307.1604);
                            GivePlayerWeapon(playerid, 46, 1);
                           
                            }
                        }
                   }
  }

}





public Unfreeze_skydive(playerid)
{
    TogglePlayerControllable(playerid,1);
    TextDrawHideForPlayer(playerid, Textdraw3);
    GameTextForPlayer(playerid,"~w~Now skydive!",4000,3);
    SendClientMessage(playerid , COLOR_YELLOW, "5 seconds have been passed. You have started to skydive.");
}



public FLIGHT_TO_LV(playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "You have reached in LV. Goodbye Sir.");
    SetPlayerPos(playerid,1670.2096,1424.0031,10.7813);
    SetPlayerInterior(playerid, 0);
    StopAudioStreamForPlayer(playerid);
    GameTextForPlayer(playerid,"~w~reached ~y~LV.",4000,3);
    SetPlayerFacingAngle( playerid, 268.2207);
    TextDrawHideForPlayer(playerid, Textdraw0);


}



public FLIGHT_TO_LS(playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "You have reached in LS. Goodbye Sir.");
    SetPlayerPos(playerid,1685.6311,-2325.9778,13.5469);
    SetPlayerInterior(playerid, 0);
    StopAudioStreamForPlayer(playerid);
    GameTextForPlayer(playerid,"~w~reached ~y~LS.",4000,3);
    SetPlayerFacingAngle( playerid, 354.3647);
    TextDrawHideForPlayer(playerid, Textdraw0);

}



public FLIGHT_TO_SF(playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "You have reached in SF. Goodbye Sir.");
    SetPlayerPos(playerid,-1426.1222,-292.4845,14.1484);
    SetPlayerInterior(playerid, 0);
    StopAudioStreamForPlayer(playerid);
    GameTextForPlayer(playerid,"~w~reached ~y~SF.",4000,3);
    SetPlayerFacingAngle( playerid, 136.4093);
    TextDrawHideForPlayer(playerid, Textdraw0);

}



public FLIGHT_TO_LS1(playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "You have reached in LS. Goodbye Sir.");
    SetPlayerPos(playerid, 1685.6311,-2325.9778,13.5469);
    SetPlayerInterior(playerid, 0);
    StopAudioStreamForPlayer(playerid);
    GameTextForPlayer(playerid,"~w~reached ~y~LS.",4000,3);
    SetPlayerFacingAngle( playerid, 354.3647);
    TextDrawHideForPlayer(playerid, Textdraw0);

}




public RandomMessages()
{
    print("random message - Timer - Called.");
    new randomMsg = random(sizeof(randomMessages));
    SendClientMessageToAll(COLOR_GREEN, randomMessages[randomMsg]);
}



public FLIGHT_TIMER(playerid)
{
       if(FLIGHT_TIMER_RECENT == 1)
      {
        print(" [ANAK's AIRPORT SYSTEM]: Flight_timer_Called.");
        FLIGHT_TIMER_RECENT =0;

    }
  }

public TEXTDRAW_TICKET_HIDE(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw5);
}




public CREDITS_TIMER(playerid)
{

TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
TextDrawHideForPlayer(playerid, Textdraw10);
TextDrawHideForPlayer(playerid, Textdraw11);
TextDrawHideForPlayer(playerid, Textdraw12);
TextDrawHideForPlayer(playerid, Textdraw13);
TextDrawHideForPlayer(playerid, Textdraw14);
TextDrawHideForPlayer(playerid, Textdraw15);

return 1;
}




public OnPlayerPickUpPickup(playerid, pickupid)
{
    {
    if(pickupid == AirPortPickUp_LS)
    ShowPlayerDialog(playerid, DIALOG_AIRPORT_MENU, DIALOG_STYLE_LIST, "{FFFF01}Select An Item Or Destination - By Anak", "{FFFF00}Airplane Ticket - $1687\n{FFFF00}Parachute - $3379\n{FFFF00}Direct Flight to LV - $6000\n{FFFF00}Direct Flight to SF - $6000\n{FFFF00}SkyDive Over LS - $4000\n{FFFF00}SkyDive Over LV - $4000\n{FFFF00}SkyDive Over SF - $4000\n{FFFF00}SkyDive Over Mount Chiliad - $8500", "Select", "Cancel");
    }
    {
    if(pickupid == AirPortPickUp_LV)
    ShowPlayerDialog(playerid, DIALOG_AIRPORT_MENU, DIALOG_STYLE_LIST, "{FFFF01}Select An Item Or Destination - By Anak", "{FFFF00}Airplane Ticket - $1687\n{FFFF00}Parachute - $3379\n{FFFF00}Direct Flight to LS - $6000\n{FFFF00}Direct Flight to SF - $6000\n{FFFF00}SkyDive Over LS - $4000\n{FFFF00}SkyDive Over LV - $4000\n{FFFF00}SkyDive Over SF - $4000\n{FFFF00}SkyDive Over Mount Chiliad - $8500", "Select", "Cancel");
    }
    {
    if(pickupid == AirPortPickUp_SF)
    ShowPlayerDialog(playerid, DIALOG_AIRPORT_MENU, DIALOG_STYLE_LIST, "{FFFF01}Select An Item Or Destination - By Anak", "{FFFF00}Airplane Ticket - $1687\n{FFFF00}Parachute - $3379\n{FFFF00}Direct Flight to LV - $6000\n{FFFF00}Direct Flight to LS - $6000\n{FFFF00}SkyDive Over LS - $4000\n{FFFF00}SkyDive Over LV - $4000\n{FFFF00}SkyDive Over SF - $4000\n{FFFF00}SkyDive Over Mount Chiliad - $8500", "Select", "Cancel");
    }

}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_AIRPORT_MENU)
    {
        if(response)
        {

             if(listitem == 0)
             {
                 if(BoughtTicket[playerid] == 1)
                    {
                    SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: You have a plane ticket already.");
                    }
                    else
                    {

                                if(GetPlayerMoney(playerid) < 1687)
                                 {
                                 SendClientMessage(playerid, COLOR_ERROR,"[ERROR]: You Don't Have $1687 to Buy AirPlane Ticket.");
                                 }
                                 else
                                 {
                                 SendClientMessage(playerid, COLOR_CYAN,"You have bought an ticket for $1687 - Kindly Proceed toward runway.");
                                 GameTextForPlayer(playerid,"~w~you have bought ~r~ticket.",4000,3);
                                 GivePlayerMoney(playerid, -1687);
                                 BoughtTicket[playerid] = 1;
                                 TextDrawShowForPlayer(playerid, Textdraw5);
                                 SetTimerEx("TEXTDRAW_TICKET_HIDE", 15*1000, false, "i", playerid);

                                 }


                    }

             }




             if(listitem == 1)
              {


                   if(GetPlayerWeapon(playerid) == 46)
                   {
                   SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: You already have a parachute.");
                   }
                   else
                   {
                           if(GetPlayerMoney(playerid) < 3379)
                           {
                           SendClientMessage(playerid, COLOR_ERROR,"[ERROR]: You Don't Have Enough Money To Buy An Parachute.");
                           }
                           else
                           {
                           SendClientMessage(playerid, COLOR_CYAN,"You Have bought an parachute for $3379.");
                           GameTextForPlayer(playerid,"~w~you have bought an ~r~parachute.",4000,3);
                           GivePlayerMoney(playerid, -3379);
                           GivePlayerWeapon(playerid, 46, 1);
                           }
                   }

              }



             if(listitem == 2)
              {
               if(GetPlayerMoney(playerid) < 6000)
               {
               SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: You don't have $6000 for this flight.");
               }
               else
               {
                 if(FLIGHT_TIMER_RECENT == 1)
                  {
                  SendClientMessage(playerid, COLOR_RED, "Sorry sir. No flight is available at the moment.");
                  }
                  else
                  {
                   new Float:x, Float:y, Float:z;
                   GetPlayerPos(playerid, x, y, z);
                   if (IsPlayerInRangeOfPoint (playerid, 10.0, 1685.6980,-2335.4922,13.5469) || IsPlayerInRangeOfPoint (playerid, 10.0, -1421.1740,-286.9716,14.1484) )
                   {
                   GivePlayerMoney(playerid, -6000);
                   PlayAudioStreamForPlayer(playerid, "http://loadb.cnr-radio.com:8000/stream", 1.7891,26.8486,1199.5938, 10, 1);
                   GameTextForPlayer(playerid,"~y~Welcome on plane.",4000,3);
                   SendClientMessage(playerid, COLOR_WHITE, "Welcome on Airplane.");
                   SendClientMessage(playerid, COLOR_YELLOW, "We are on our way to LV. We will land in one minute. ");
                   SendClientMessage(playerid, COLOR_GREY, "You have payed $6000 for this flight.");
                   //SetTimer("FLIGHT_TO_LV", 1*60*1000, false); // 1 min
                   SetTimerEx("FLIGHT_TIMER", FLIGHT_RECENT_TIME*1000, false, "i", playerid);
                   timer1 = SetTimerEx("FLIGHT_TO_LV", FLIGHT_DURATION*1000, false, "i", playerid);
                   SetPlayerPos(playerid, 2.384830, 33.103397, 1199.849976);
                   SetPlayerInterior(playerid, 1);
                   (FLIGHT_TIMER_RECENT = 1);
                   TextDrawShowForPlayer(playerid, Textdraw0);

                   }



                   if (IsPlayerInRangeOfPoint (playerid, 10.0, 1672.5366,1447.7250,10.7881))
                   {
                   GivePlayerMoney(playerid, -6000);
                   PlayAudioStreamForPlayer(playerid, "http://loadb.cnr-radio.com:8000/stream", 1.7891,26.8486,1199.5938, 10, 1);
                   GameTextForPlayer(playerid,"~y~Welcome on plane.",4000,3);
                   SendClientMessage(playerid, COLOR_WHITE, "Welcome on Airplane.");
                   SendClientMessage(playerid, COLOR_YELLOW, "We are on our way to LS. We will land in one minute. ");
                   SendClientMessage(playerid, COLOR_GREY, "You have payed $6000 for this flight.");
                   //SetTimer("FLIGHT_TO_LS", 1*60*1000, false); // 1 min
                   SetTimerEx("FLIGHT_TIMER", FLIGHT_RECENT_TIME*1000, false, "i", playerid);
                   timer2 = SetTimerEx("FLIGHT_TO_LS",FLIGHT_DURATION*1000, false, "i", playerid);
                   SetPlayerPos(playerid, 2.384830, 33.103397, 1199.849976);
                   SetPlayerInterior(playerid, 1);
                   (FLIGHT_TIMER_RECENT = 1);
                   //TextDrawShowForPlayer(playerid, flight_textdraw);
                   TextDrawShowForPlayer(playerid, Textdraw0);
                   }
                  }

      }


              }



             if(listitem == 3)
              {

               if(GetPlayerMoney(playerid) < 6000)
               {
               SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: You don't have $6000 for this flight.");
               }
               else
               {
                 if(FLIGHT_TIMER_RECENT == 1)
                  {
                  SendClientMessage(playerid, COLOR_RED, "Sorry sir. No flight is available at the moment.");
                  }
                  else
                  {
                   new Float:x, Float:y, Float:z;
                   GetPlayerPos(playerid, x, y, z);
                   if (IsPlayerInRangeOfPoint (playerid, 10.0, 1685.6980,-2335.4922,13.5469) || IsPlayerInRangeOfPoint (playerid, 10.0, 1672.5366,1447.7250,10.7881) )
                   {
                   GivePlayerMoney(playerid, -6000);
                   PlayAudioStreamForPlayer(playerid, "http://loadb.cnr-radio.com:8000/stream", 1.7891,26.8486,1199.5938, 10, 1);
                   GameTextForPlayer(playerid,"~y~Welcome on plane.",4000,3);
                   SendClientMessage(playerid, COLOR_WHITE, "Welcome on Airplane.");
                   SendClientMessage(playerid, COLOR_YELLOW, "We are on our way to SF. We will land in one minute. ");
                   SendClientMessage(playerid, COLOR_GREY, "You have payed $6000 for this flight.");
                   //SetTimer("FLIGHT_TO_LV", 1*60*1000, false); // 1 min
                   SetTimerEx("FLIGHT_TIMER", FLIGHT_RECENT_TIME*1000, false, "i", playerid);
                   timer3 = SetTimerEx("FLIGHT_TO_SF", FLIGHT_DURATION*1000, false, "i", playerid);
                   SetPlayerPos(playerid, 2.384830, 33.103397, 1199.849976);
                   SetPlayerInterior(playerid, 1);
                   (FLIGHT_TIMER_RECENT = 1);
                   //TextDrawShowForPlayer(playerid, flight_textdraw);
                   TextDrawShowForPlayer(playerid, Textdraw0);
                   

                   }

                   if (IsPlayerInRangeOfPoint (playerid, 10.0, -1421.1740,-286.9716,14.1484))
                   {
                   PlayAudioStreamForPlayer(playerid, "http://loadb.cnr-radio.com:8000/stream", 1.7891,26.8486,1199.5938, 10, 1);
                   GameTextForPlayer(playerid,"~y~Welcome on plane.",4000,3);
                   GivePlayerMoney(playerid, -6000);
                   SendClientMessage(playerid, COLOR_WHITE, "Welcome on Airplane.");
                   SendClientMessage(playerid, COLOR_YELLOW, "We are on our way to LS. We will land in one minute. ");
                   SendClientMessage(playerid, COLOR_GREY, "You have payed $6000 for this flight.");
                   //SetTimer("FLIGHT_TO_LV", 1*60*1000, false); // 1 min
                   SetTimerEx("FLIGHT_TIMER", FLIGHT_RECENT_TIME*1000, false, "i", playerid);
                   timer4 = SetTimerEx("FLIGHT_TO_LS1", FLIGHT_DURATION*1000, false, "i", playerid);
                   SetPlayerPos(playerid, 2.384830, 33.103397, 1199.849976);
                   SetPlayerInterior(playerid, 1);
                   (FLIGHT_TIMER_RECENT = 1);
                   //TextDrawShowForPlayer(playerid, flight_textdraw);
                   TextDrawShowForPlayer(playerid, Textdraw0);

                   }
                  }

               }

              }


             if(listitem == 4)
              {
                 if(GetPlayerMoney(playerid) < 4000)
                 {
                 SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: Not enough money for skydiving.");
                 }
                 else
                 {

                   GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~y~Welcome to LS.",4000,3);
                   SendClientMessage(playerid, COLOR_CYAN, "You are reached at LS for skydiving. You Have been given a Parachute - Enjoy!.");
                   SetPlayerPos(playerid,1965.5830,-1521.9362,567.4092);
                   GivePlayerWeapon(playerid, 46, 1);
                   //SetTimer("Unfreeze_skydive", 5*1000, false); // 5 seconds
                   TogglePlayerControllable(playerid,0);
                   TextDrawShowForPlayer(playerid, Textdraw3);
                   SetTimerEx("Unfreeze_skydive", SKYDIVE_UNFREEZE*1000, false, "i", playerid);
                   SendClientMessage(playerid, COLOR_WHITE,"Please Wait for 5 Seconds.");
                 }
              }


             if(listitem == 5)
              {
                if(GetPlayerMoney(playerid) < 4000)
                 {
                 SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: Not enough money for skydiving.");
                 }
                 else
                 {
                    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~y~Welcome to LV.",4000,3);
                    SendClientMessage(playerid, COLOR_CYAN, "You are reached at LV for skydiving. You Have been given a Parachute - Enjoy!.");
                    SetPlayerPos(playerid,1973.3391,1355.0848,567.4092);
                    GivePlayerWeapon(playerid, 46, 1);
                    //SetTimer("Unfreeze_skydive", 5*1000, false); // 5 seconds
                    TogglePlayerControllable(playerid,0);
                    TextDrawShowForPlayer(playerid, Textdraw3);
                    SetTimerEx("Unfreeze_skydive", SKYDIVE_UNFREEZE*1000, false, "i", playerid);
                    SendClientMessage(playerid, COLOR_WHITE,"Please Wait for 5 Seconds.");
                 }
              }


             if(listitem == 6)
              {
                if(GetPlayerMoney(playerid) < 4000)
                 {
                 SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: Not enough money for skydiving.");
                 }
                 else
                 {
                      GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~y~Welcome to SF.",4000,3);
                      SendClientMessage(playerid, COLOR_CYAN, "You are reached at SF for skydiving. You Have been given a Parachute - Enjoy!.");
                      SetPlayerPos(playerid,-1882.8408,856.5587,630.9056);
                      TogglePlayerControllable(playerid,0);
                      GivePlayerWeapon(playerid, 46, 1);
                      TextDrawShowForPlayer(playerid, Textdraw3);
                      SetTimerEx("Unfreeze_skydive", SKYDIVE_UNFREEZE*1000, false, "i", playerid);
                      SendClientMessage(playerid, COLOR_WHITE,"Please Wait for 5 Seconds.");
                      //SetTimer("Unfreeze_skydive", 5*1000, false); // 5 seconds
                 }
              }


             if(listitem == 7)
              {
                if(GetPlayerMoney(playerid) < 8500)
                 {
                 SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: Not enough money for skydiving.");
                 }
                 else
                 {
                      GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~y~Welcome to Mount chiliad.",4000,3);
                      SendClientMessage(playerid, COLOR_CYAN, "You are reached at Mount Chiliad for skydiving. You Have been given a Parachute - Enjoy!.");
                      SetPlayerPos(playerid,-2317.5400,-1619.5935,1253.7904);
                      TogglePlayerControllable(playerid,0);
                      TextDrawShowForPlayer(playerid, Textdraw3);
                      SetTimerEx("Unfreeze_skydive", SKYDIVE_UNFREEZE*1000, false, "i", playerid);
                      //SetTimer("Unfreeze_skydive", 5*1000, false); // 5 seconds
                      SendClientMessage(playerid, COLOR_WHITE,"Please Wait for 5 Seconds.");
                      GivePlayerWeapon(playerid, 46, 1);
                 }
              }


        }
     }
}
How to install:
- Open your server config
- write "FILTERSCRIPTS Airport_system"
- write "maxnpc 4"
- run your server.

Like my work. Want to see more of my work see my signature
Like my work Rep+ me.
Reply
#2

Good, for RP servers, I guess.


10/10
+Rep
Reply
#3

thanks ..
Reply
#4

Very Good man Keep up :X I will rep u
Reply
#5

more Awesome work from you Anak keep up the good work bro
Reply
#6

thanks
Reply
#7

more pictures
Reply
#8

Nice one. Very Good job
+Rep
10/10
Reply
#9

Quote:
Originally Posted by Johny32
Посмотреть сообщение
Nice one. Very Good job
+Rep
10/10
thanks
Reply
#10

GOOD Job man ! Keep it up 10/10 +REP !
Reply
#11

thanks mate..
Reply
#12

good job man.I give you 1 Rep
Reply
#13

Nice one Good job!
Reply
#14

Nice work! Although I have seen some servers having bots, but is not previewable in the players list, maybe you can check about that?
Reply
#15

Quote:
Originally Posted by Dzines4SAMP
Посмотреть сообщение
Nice work! Although I have seen some servers having bots, but is not previewable in the players list, maybe you can check about that?
you cant see these bots (in my script) in player list. each bot takes a player slot and joins the server normally like other players do but they are not available in TAB. Hope that you got the answer of your question.

and thanks .
Reply
#16

when i keep this this shows up how to fix this

Please help me they leave the server
Reply
#17

i have that problem too as kdark has it.. how to fix it
Reply
#18

Working with NPCs is always fun, great job man. You deserve REP+
Reply
#19

mod s o b e i t's era :P.
Reply
#20

Quote:
Originally Posted by KDark
Посмотреть сообщение
when i keep this this shows up how to fix this

Please help me they leave the server
help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)