Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #define TeleportsDialog 1
- #define TeleportsDialog2 2
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_RED 0xFF4646FF
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Teleports system loaded");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Teleports system unloaded");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/teles", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, TeleportsDialog, DIALOG_STYLE_LIST, "Teleports!", "San Fierro Airport /sfair\nLos Santos Airport /lsair\nLas Venturas Airport /lvair\nLas Venturas /lv\nLos Santos /ls\nSan Fierro /sf\nMountain Chilliad /mc\nEpic Kart /epickart", "Go!", "Close");
- return 1;
- }
- if (strcmp("/teles2", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, TeleportsDialog2, DIALOG_STYLE_LIST, "Teleports!","Drift zone 1 /drift1\nDrift Zone 2 /drift2\nDrift Zone 3 /drift3\nDrift Zone 4 /drift4\nDrift Zone 5 /drift5\nDrift Zone 6 /drift6\nTruck Stop /truckstop\nTuning Zone 1 /tune1\nTuning Zone 2 /tune 2\nTuning Zone 3 /tune 3\nTuning Zone 4 /tune4\nTuning Zone 5 /tune5\nAbondoned Airport /aa", "Go!", "Close");
- return 1;
- }
- if (strcmp("/sfair", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-1645.2598,-201.1026,14.1484);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to San Fierro Airport, have fun!");
- return 1;
- }
- if (strcmp("/epickart", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, 1817.6039,-1306.6924,131.7344);
- return 1;
- }
- if (strcmp("/lsair", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, 1952.8330,-2310.8213,13.5469);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Los Santos Airport, have fun!");
- return 1;
- }
- if (strcmp("/lvair", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,1288.8962,1270.4429,10.8203);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Las Venturas Airport, have fun!");
- return 1;
- }
- if (strcmp("/lv", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,2187.6245,1675.6443,11.1079);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Las Venturas, have fun!");
- return 1;
- }
- if (strcmp("/ls", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,1547.5399,-1675.5754,14.1279);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Los Santos, have fun!");
- return 1;
- }
- if (strcmp("/sf", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-1983.4586,138.0214,27.6875);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to San Fierro, have fun!");
- return 1;
- }
- if (strcmp("/mc", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-2326.2622,-1654.2830,483.7031);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Mountain Chilliad, have fun!");
- return 1;
- }
- if (strcmp("/drift", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "[ERROR] Correct usage: [/drift1-/drift2-/drift3-/drift4-/drift5-/drift6]");
- return 1;
- }
- if (strcmp("/drift1", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-305.5679,1514.8221,75.3594);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 1, have fun!");
- return 1;
- }
- if (strcmp("/drift2", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-2419.9121,-613.3422,132.5625);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 2, have fun!");
- return 1;
- }
- if (strcmp("/drift3", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,2312.0754,1448.0342,42.8203);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 3, have fun!");
- return 1;
- }
- if (strcmp("/drift4", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-760.4178,-1677.0685,97.2406);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 4, have fun!");
- return 1;
- }
- if (strcmp("/drift5", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-2132.1201,918.6100,79.8516);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 5, have fun!");
- return 1;
- }
- if (strcmp("/drift6", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-797.2736,-109.8519,63.8398);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 6, have fun!");
- return 1;
- }
- if (strcmp("/truckstop", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-1562.7776,-2743.0483,48.5335);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Truck Stop, have fun!");
- return 1;
- }
- if (strcmp("/tune", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "[ERROR] Correct usage: [/tune1-/tune2-/tune3-/tune4-/tune5]");
- return 1;
- }
- if (strcmp("/tune1", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, -1936.1621,231.8937,34.1563);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 1, have fun!");
- return 1;
- }
- if (strcmp("/tune2", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-2709.9185,217.1673,4.1797);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 2, have fun!");
- return 1;
- }
- if (strcmp("/tune3", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,2387.1025,1036.5139,10.8203);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 3, have fun!");
- return 1;
- }
- if (strcmp("/tune4", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,2645.3201,-2002.9180,13.3828);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 4, have fun!");
- return 1;
- }
- if (strcmp("/tune5", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,1041.7400,-1037.5100,31.7567);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 5, have fun!");
- return 1;
- }
- if (strcmp("/aa", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, 388.6898,2440.1262,16.5000);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Abandoned Airport, have fun!");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == TeleportsDialog)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid, -1645.2598,-201.1026,14.1484);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to San Fierro Airport, have fun!");
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 1952.8330,-2310.8213,13.5469);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Los Santos Airport, have fun!");
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid,1288.8962,1270.4429,10.8203);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Las Venturas Airport, have fun!");
- }
- if(listitem == 3)
- {
- SetPlayerPos(playerid,2187.6245,1675.6443,11.1079);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Las Venturas, have fun!");
- }
- if(listitem == 4)
- {
- SetPlayerPos(playerid,1547.5399,-1675.5754,14.1279);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Los Santos, have fun!");
- }
- if(listitem == 5)
- {
- SetPlayerPos(playerid,-1983.4586,138.0214,27.6875);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to San Fierro, have fun!");
- }
- if(listitem == 6)
- {
- SetPlayerPos(playerid,-2326.2622,-1654.2830,483.7031);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Mountain Chilliad, have fun!");
- }
- if(listitem == 7)
- {
- SetPlayerPos(playerid, 1817.6039,-1306.6924,131.7344);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the EPIC KART, have fun!");
- }
- }
- return 1;
- }
- if(dialogid == TeleportsDialog2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid,-305.5679,1514.8221,75.3594);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 1, have fun!");
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid,-2419.9121,-613.3422,132.5625);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 2, have fun!");
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid,2312.0754,1448.0342,42.8203);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 3, have fun!");
- }
- if(listitem == 3)
- {
- SetPlayerPos(playerid,-760.4178,-1677.0685,97.2406);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 4, have fun!");
- }
- if(listitem == 4)
- {
- SetPlayerPos(playerid,-2132.1201,918.6100,79.8516);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 5, have fun!");
- }
- if(listitem == 5)
- {
- SetPlayerPos(playerid,-797.2736,-109.8519,63.8398);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to Drift Zone 6, have fun!");
- }
- if(listitem == 6)
- {
- SetPlayerPos(playerid,-1562.7776,-2743.0483,48.5335);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Truck Stop, have fun!");
- }
- if(listitem == 7)
- {
- SetPlayerPos(playerid, -1936.1621,231.8937,34.1563);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 1, have fun!");
- }
- if(listitem == 8)
- {
- SetPlayerPos(playerid,-2709.9185,217.1673,4.1797);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 2, have fun!");
- }
- if(listitem == 9)
- {
- SetPlayerPos(playerid,2387.1025,1036.5139,10.8203);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 3, have fun!");
- }
- if(listitem == 10)
- {
- SetPlayerPos(playerid,2645.3201,-2002.9180,13.3828);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 4, have fun!");
- }
- if(listitem == 11)
- {
- SetPlayerPos(playerid,1041.7400,-1037.5100,31.7567);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Tuning Zone 5, have fun!");
- }
- if(listitem == 12)
- {
- SetPlayerPos(playerid, 388.6898,2440.1262,16.5000);
- SendClientMessage(playerid, COLOR_WHITE, "Welcome to the Abandoned Airport, have fun!");
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement