Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <sscanf2>
- #include <zcmd>
- #include <foreach>
- new sInteriorIds[] =
- {
- 17,10,18,16,4,6,14,14,1,9,1,4,6,7,6,
- 7,7,3,12,15,3,3,1,6,0,1,10,1,15,14,3,
- 1,5,18,17,11,18,4,5,6,1,1,10,9,5,17,1,
- 2,3,4,5,6,17,3,0,5,6,7,3,2,3,5,3,2,1,
- 2,3,6,2,2,3,3,3,1,1,5,8,5,1,18,0,18,12,
- 10,2,3,12,16,17,3,6,10,3,3,7,15,4,14,1,
- 0,0,0,0,0,0,1,0,0,18,3
- };
- new Float:sInteriorsCoOrds[][] =
- {
- { -25.884498,-185.868988,1003.546875 },
- { 6.091179,-29.271898,1003.549438 },
- { -30.946699,-89.609596,1003.546875 },
- { -25.132598,-139.066986,1003.546875 },
- { -27.312299,-29.277599,1003.557250 },
- { -26.691598,-55.714897,1003.546875 },
- { -1827.147338,7.207417,1061.143554 },
- { -1861.936889,54.908092,1061.143554 },
- { 1.808619,32.384357,1199.593750 },
- { 315.745086,984.969299,1958.919067 },
- { 286.148986,-40.644397,1001.515625 },
- { 286.800994,-82.547599,1001.515625 },
- { 296.919982,-108.071998,1001.515625 },
- { 314.820983,-141.431991,999.601562 },
- { 316.524993,-167.706985,999.593750 },
- { 302.292877,-143.139099,1004.062500 },
- { 298.507934,-141.647048,1004.054748 },
- { 1038.531372,0.111030,1001.284484 },
- { 444.646911,508.239044,1001.419494 },
- { 2215.454833,-1147.475585,1025.796875 },
- { 833.269775,10.588416,1004.179687 },
- { -103.559165,-24.225606,1000.718750 },
- { 963.418762,2108.292480,1011.030273 },
- { -2240.468505,137.060440,1035.414062 },
- { 663.836242,-575.605407,16.343263 },
- { 2169.461181,1618.798339,999.976562 },
- { 1889.953369,1017.438293,31.882812 },
- { -2159.122802,641.517517,1052.381713 },
- { 207.737991,-109.019996,1005.132812 },
- { 204.332992,-166.694992,1000.523437 },
- { 207.054992,-138.804992,1003.507812 },
- { 203.777999,-48.492397,1001.804687 },
- { 226.293991,-7.431529,1002.210937 },
- { 161.391006,-93.159156,1001.804687 },
- { 493.390991,-22.722799,1000.679687 },
- { 501.980987,-69.150199,998.757812 },
- { -227.027999,1401.229980,27.765625 },
- { 457.304748,-88.428497,999.554687 },
- { 454.973937,-110.104995,1000.077209 },
- { 435.271331,-80.958938,999.554687 },
- { 452.489990,-18.179698,1001.132812 },
- { 681.557861,-455.680053,-25.609874 },
- { 375.962463,-65.816848,1001.507812 },
- { 369.579528,-4.487294,1001.858886 },
- { 373.825653,-117.270904,1001.499511 },
- { 381.169189,-188.803024,1000.632812 },
- { 244.411987,305.032989,999.148437 },
- { 271.884979,306.631988,999.148437 },
- { 291.282989,310.031982,999.148437 },
- { 302.180999,300.722991,999.148437 },
- { 322.197998,302.497985,999.148437 },
- { 346.870025,309.259033,999.155700 },
- { -959.564392,1848.576782,9.000000 },
- { 384.808624,173.804992,1008.382812 },
- { 223.431976,1872.400268,13.734375 },
- { 772.111999,-3.898649,1000.728820 },
- { 774.213989,-48.924297,1000.585937 },
- { 773.579956,-77.096694,1000.655029 },
- { 1527.229980,-11.574499,1002.097106 },
- { 1523.509887,-47.821197,1002.130981 },
- { 2496.049804,-1695.238159,1014.742187 },
- { 1267.663208,-781.323242,1091.906250 },
- { 513.882507,-11.269994,1001.565307 },
- { 2454.717041,-1700.871582,1013.515197 },
- { 2527.654052,-1679.388305,1015.498596 },
- { 2543.462646,-1308.379882,1026.728393 },
- { 1212.019897,-28.663099,1000.953125 },
- { 761.412963,1440.191650,1102.703125 },
- { 1204.809936,-11.586799,1000.921875 },
- { 1204.809936,13.897239,1000.921875 },
- { 942.171997,-16.542755,1000.929687 },
- { 964.106994,-53.205497,1001.124572 },
- { -2640.762939,1406.682006,906.460937 },
- { -729.276000,503.086944,1371.971801 },
- { -794.806396,497.738037,1376.195312 },
- { 2350.339843,-1181.649902,1027.976562 },
- { 2807.619873,-1171.899902,1025.570312 },
- { 318.564971,1118.209960,1083.882812 },
- { 1412.639892,-1.787510,1000.924377 },
- { 1302.519897,-1.787510,1001.028259 },
- { 2522.000000,-1673.383911,14.866223 },
- { -221.059051,1408.984008,27.773437 },
- { 2324.419921,-1145.568359,1050.710083 },
- { -975.975708,1060.983032,1345.671875 },
- { 411.625976,-21.433298,1001.804687 },
- { 418.652984,-82.639793,1001.804687 },
- { 412.021972,-52.649898,1001.898437 },
- { -204.439987,-26.453998,1002.273437 },
- { -204.439987,-8.469599,1002.273437 },
- { -204.439987,-43.652496,1002.273437 },
- { 246.783996,63.900199,1003.640625 },
- { 246.375991,109.245994,1003.218750 },
- { 288.745971,169.350997,1007.171875 },
- { -2029.798339,-106.675910,1035.171875 },
- { -1398.065307,-217.028900,1051.115844 },
- { -1398.103515,937.631164,1036.479125 },
- { -1444.645507,-664.526000,1053.572998 },
- { -1465.268676,1557.868286,1052.531250 },
- { -1401.829956,107.051300,1032.273437 },
- { -1790.378295,1436.949829,7.187500 },
- { 1643.839843,-1514.819580,13.566620 },
- { -1685.636474,1035.476196,45.210937 },
- { 76.632553,-301.156829,1.578125 },
- { 1059.895996,2081.685791,10.820312 },
- { 1059.180175,2148.938720,10.820312 },
- { 2131.507812,1600.818481,1008.359375 },
- { 2315.952880,-1.618174,26.742187 },
- { 2319.714843,-14.838361,26.749565 },
- { 1710.433715,-1669.379272,20.225049 },
- { 1494.325195,1304.942871,1093.289062 }
- };
- new sInteriorNames[][] =
- {
- {"24/7 1"},
- {"24/7 2"},
- {"24/7 3"},
- {"24/7 4"},
- {"24/7 5"},
- {"24/7 6"},
- {"Airport Ticket Desk"},
- {"Airport Baggage Reclaim"},
- {"Shamal"},
- {"Andromada"},
- {"Ammunation 1"},
- {"Ammunation 2"},
- {"Ammunation 3"},
- {"Ammunation 4"},
- {"Ammunation 5"},
- {"Ammunation Booths"},
- {"Ammunation Range"},
- {"Blastin Fools Hallway"},
- {"Budget Inn Motel Room"},
- {"Jefferson Motel"},
- {"Off Track Betting Shop"},
- {"Sex Shop"},
- {"Meat Factory"},
- {"Zero's RC Shop"},
- {"Dillmore Gas Station"},
- {"Caligula's Basement"},
- {"FDC Janitors Room"},
- {"Woozie's Office"},
- {"Binco"},
- {"Didier Sachs"},
- {"Prolaps"},
- {"Suburban"},
- {"Victim"},
- {"ZIP"},
- {"Alhambra"},
- {"Ten Bottles"},
- {"Lil' Probe Inn"},
- {"Jay's Dinner"},
- {"Gant Bridge Dinner"},
- {"Secret Valley Dinner"},
- {"World of Coq"},
- {"Welcome Pump"},
- {"Burger Shot"},
- {"Cluckin' Bell"},
- {"Well Stacked Pizza"},
- {"Jimmy's Sticky Ring"},
- {"Denise Room"},
- {"Katie Room"},
- {"Helena Room"},
- {"Michelle Room"},
- {"Barbara Room"},
- {"Mille Room"},
- {"Sherman Dam"},
- {"Planning Dept."},
- {"Area 51"},
- {"LS Gym"},
- {"SF Gym"},
- {"LV Gym"},
- {"B Dup's House"},
- {"B Dup's Crack Pad"},
- {"CJ's House"},
- {"Madd Dogg's Mansion"},
- {"OG Loc's House"},
- {"Ryder's House"},
- {"Sweet's House"},
- {"Crack Factory"},
- {"Big Spread Ranch"},
- {"Fanny Batters"},
- {"Strip Club"},
- {"Strip Club Private Room"},
- {"Unnamed Brothel"},
- {"Tiger Skin Brothel"},
- {"Pleasure Domes"},
- {"Liberty City Outside"},
- {"Liverty City Inside"},
- {"Gang House"},
- {"Colonel Furhberger's House"},
- {"Crack Den"},
- {"Warehouse 1"},
- {"Warehouse 2"},
- {"Sweet's Garage"},
- {"Lil' Probe Inn Toilet"},
- {"Unused Safe House"},
- {"RC Battlefield"},
- {"Barber 1"},
- {"Barber 2"},
- {"Barber 3"},
- {"Tatoo parlour 1"},
- {"Tatoo parlour 2"},
- {"Tatoo parlour 3"},
- {"LS Police HQ"},
- {"SF Police HQ"},
- {"LV Police HQ"},
- {"Car School"},
- {"8-Track"},
- {"Bloodbowl"},
- {"Dirt Track"},
- {"Kickstart"},
- {"Vice Stadium"},
- {"SF Garage"},
- {"LS Garage"},
- {"SF Bomb Shop"},
- {"Blueberry Warehouse"},
- {"LV Warehouse 1"},
- {"LV Warehouse 2"},
- {"Catigula's Hidden Room"},
- {"Bank"},
- {"Bank - Behind Desk"},
- {"LS Atruim"},
- {"Bike School"}
- };
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Maximum Gaming production. Jordan Marchinton.");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- COMMAND:createinterior(playerid, params[])
- {
- new DialogString[1550],part[40];
- format(DialogString, sizeof(DialogString), "{FFFFFF}%s", sInteriorNames[0]);
- for(new i = 1; i < sizeof(sInteriorNames); i++)
- {
- format(part, sizeof(part), "\n%s", sInteriorNames[i]);
- strcat(DialogString, part, sizeof(DialogString));
- }
- ShowPlayerDialog(playerid,10, DIALOG_STYLE_LIST,"Select an Interior",DialogString,"Select","Cancel");
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 10)
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Or{FFFFFF}Teles: {B4B5B7}You have canceled the teleport.");
- return 1;
- }
- else
- {
- new string[128];
- SetPlayerPos(playerid,sInteriorsCoOrds[listitem][0],sInteriorsCoOrds[listitem][1],sInteriorsCoOrds[listitem][2]);
- SetPlayerInterior(playerid,sInteriorIds[listitem]);
- format(string, sizeof(string), "Server {B4B5B7}You have been teleported to {0099FF}%s",sInteriorNames[listitem]);
- SendClientMessage(playerid, 0xFF0000FF,string);
- return 1;
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement