Advertisement
Guest User

Untitled

a guest
Jan 9th, 2016
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.00 KB | None | 0 0
  1. #include <a_samp>
  2. #include <sscanf2>
  3. #include <zcmd>
  4. #include <foreach>
  5.  
  6. new sInteriorIds[] =
  7. {
  8. 17,10,18,16,4,6,14,14,1,9,1,4,6,7,6,
  9. 7,7,3,12,15,3,3,1,6,0,1,10,1,15,14,3,
  10. 1,5,18,17,11,18,4,5,6,1,1,10,9,5,17,1,
  11. 2,3,4,5,6,17,3,0,5,6,7,3,2,3,5,3,2,1,
  12. 2,3,6,2,2,3,3,3,1,1,5,8,5,1,18,0,18,12,
  13. 10,2,3,12,16,17,3,6,10,3,3,7,15,4,14,1,
  14. 0,0,0,0,0,0,1,0,0,18,3
  15. };
  16.  
  17. new Float:sInteriorsCoOrds[][] =
  18. {
  19. { -25.884498,-185.868988,1003.546875 },
  20. { 6.091179,-29.271898,1003.549438 },
  21. { -30.946699,-89.609596,1003.546875 },
  22. { -25.132598,-139.066986,1003.546875 },
  23. { -27.312299,-29.277599,1003.557250 },
  24. { -26.691598,-55.714897,1003.546875 },
  25. { -1827.147338,7.207417,1061.143554 },
  26. { -1861.936889,54.908092,1061.143554 },
  27. { 1.808619,32.384357,1199.593750 },
  28. { 315.745086,984.969299,1958.919067 },
  29. { 286.148986,-40.644397,1001.515625 },
  30. { 286.800994,-82.547599,1001.515625 },
  31. { 296.919982,-108.071998,1001.515625 },
  32. { 314.820983,-141.431991,999.601562 },
  33. { 316.524993,-167.706985,999.593750 },
  34. { 302.292877,-143.139099,1004.062500 },
  35. { 298.507934,-141.647048,1004.054748 },
  36. { 1038.531372,0.111030,1001.284484 },
  37. { 444.646911,508.239044,1001.419494 },
  38. { 2215.454833,-1147.475585,1025.796875 },
  39. { 833.269775,10.588416,1004.179687 },
  40. { -103.559165,-24.225606,1000.718750 },
  41. { 963.418762,2108.292480,1011.030273 },
  42. { -2240.468505,137.060440,1035.414062 },
  43. { 663.836242,-575.605407,16.343263 },
  44. { 2169.461181,1618.798339,999.976562 },
  45. { 1889.953369,1017.438293,31.882812 },
  46. { -2159.122802,641.517517,1052.381713 },
  47. { 207.737991,-109.019996,1005.132812 },
  48. { 204.332992,-166.694992,1000.523437 },
  49. { 207.054992,-138.804992,1003.507812 },
  50. { 203.777999,-48.492397,1001.804687 },
  51. { 226.293991,-7.431529,1002.210937 },
  52. { 161.391006,-93.159156,1001.804687 },
  53. { 493.390991,-22.722799,1000.679687 },
  54. { 501.980987,-69.150199,998.757812 },
  55. { -227.027999,1401.229980,27.765625 },
  56. { 457.304748,-88.428497,999.554687 },
  57. { 454.973937,-110.104995,1000.077209 },
  58. { 435.271331,-80.958938,999.554687 },
  59. { 452.489990,-18.179698,1001.132812 },
  60. { 681.557861,-455.680053,-25.609874 },
  61. { 375.962463,-65.816848,1001.507812 },
  62. { 369.579528,-4.487294,1001.858886 },
  63. { 373.825653,-117.270904,1001.499511 },
  64. { 381.169189,-188.803024,1000.632812 },
  65. { 244.411987,305.032989,999.148437 },
  66. { 271.884979,306.631988,999.148437 },
  67. { 291.282989,310.031982,999.148437 },
  68. { 302.180999,300.722991,999.148437 },
  69. { 322.197998,302.497985,999.148437 },
  70. { 346.870025,309.259033,999.155700 },
  71. { -959.564392,1848.576782,9.000000 },
  72. { 384.808624,173.804992,1008.382812 },
  73. { 223.431976,1872.400268,13.734375 },
  74. { 772.111999,-3.898649,1000.728820 },
  75. { 774.213989,-48.924297,1000.585937 },
  76. { 773.579956,-77.096694,1000.655029 },
  77. { 1527.229980,-11.574499,1002.097106 },
  78. { 1523.509887,-47.821197,1002.130981 },
  79. { 2496.049804,-1695.238159,1014.742187 },
  80. { 1267.663208,-781.323242,1091.906250 },
  81. { 513.882507,-11.269994,1001.565307 },
  82. { 2454.717041,-1700.871582,1013.515197 },
  83. { 2527.654052,-1679.388305,1015.498596 },
  84. { 2543.462646,-1308.379882,1026.728393 },
  85. { 1212.019897,-28.663099,1000.953125 },
  86. { 761.412963,1440.191650,1102.703125 },
  87. { 1204.809936,-11.586799,1000.921875 },
  88. { 1204.809936,13.897239,1000.921875 },
  89. { 942.171997,-16.542755,1000.929687 },
  90. { 964.106994,-53.205497,1001.124572 },
  91. { -2640.762939,1406.682006,906.460937 },
  92. { -729.276000,503.086944,1371.971801 },
  93. { -794.806396,497.738037,1376.195312 },
  94. { 2350.339843,-1181.649902,1027.976562 },
  95. { 2807.619873,-1171.899902,1025.570312 },
  96. { 318.564971,1118.209960,1083.882812 },
  97. { 1412.639892,-1.787510,1000.924377 },
  98. { 1302.519897,-1.787510,1001.028259 },
  99. { 2522.000000,-1673.383911,14.866223 },
  100. { -221.059051,1408.984008,27.773437 },
  101. { 2324.419921,-1145.568359,1050.710083 },
  102. { -975.975708,1060.983032,1345.671875 },
  103. { 411.625976,-21.433298,1001.804687 },
  104. { 418.652984,-82.639793,1001.804687 },
  105. { 412.021972,-52.649898,1001.898437 },
  106. { -204.439987,-26.453998,1002.273437 },
  107. { -204.439987,-8.469599,1002.273437 },
  108. { -204.439987,-43.652496,1002.273437 },
  109. { 246.783996,63.900199,1003.640625 },
  110. { 246.375991,109.245994,1003.218750 },
  111. { 288.745971,169.350997,1007.171875 },
  112. { -2029.798339,-106.675910,1035.171875 },
  113. { -1398.065307,-217.028900,1051.115844 },
  114. { -1398.103515,937.631164,1036.479125 },
  115. { -1444.645507,-664.526000,1053.572998 },
  116. { -1465.268676,1557.868286,1052.531250 },
  117. { -1401.829956,107.051300,1032.273437 },
  118. { -1790.378295,1436.949829,7.187500 },
  119. { 1643.839843,-1514.819580,13.566620 },
  120. { -1685.636474,1035.476196,45.210937 },
  121. { 76.632553,-301.156829,1.578125 },
  122. { 1059.895996,2081.685791,10.820312 },
  123. { 1059.180175,2148.938720,10.820312 },
  124. { 2131.507812,1600.818481,1008.359375 },
  125. { 2315.952880,-1.618174,26.742187 },
  126. { 2319.714843,-14.838361,26.749565 },
  127. { 1710.433715,-1669.379272,20.225049 },
  128. { 1494.325195,1304.942871,1093.289062 }
  129. };
  130.  
  131. new sInteriorNames[][] =
  132. {
  133. {"24/7 1"},
  134. {"24/7 2"},
  135. {"24/7 3"},
  136. {"24/7 4"},
  137. {"24/7 5"},
  138. {"24/7 6"},
  139. {"Airport Ticket Desk"},
  140. {"Airport Baggage Reclaim"},
  141. {"Shamal"},
  142. {"Andromada"},
  143. {"Ammunation 1"},
  144. {"Ammunation 2"},
  145. {"Ammunation 3"},
  146. {"Ammunation 4"},
  147. {"Ammunation 5"},
  148. {"Ammunation Booths"},
  149. {"Ammunation Range"},
  150. {"Blastin Fools Hallway"},
  151. {"Budget Inn Motel Room"},
  152. {"Jefferson Motel"},
  153. {"Off Track Betting Shop"},
  154. {"Sex Shop"},
  155. {"Meat Factory"},
  156. {"Zero's RC Shop"},
  157. {"Dillmore Gas Station"},
  158. {"Caligula's Basement"},
  159. {"FDC Janitors Room"},
  160. {"Woozie's Office"},
  161. {"Binco"},
  162. {"Didier Sachs"},
  163. {"Prolaps"},
  164. {"Suburban"},
  165. {"Victim"},
  166. {"ZIP"},
  167. {"Alhambra"},
  168. {"Ten Bottles"},
  169. {"Lil' Probe Inn"},
  170. {"Jay's Dinner"},
  171. {"Gant Bridge Dinner"},
  172. {"Secret Valley Dinner"},
  173. {"World of Coq"},
  174. {"Welcome Pump"},
  175. {"Burger Shot"},
  176. {"Cluckin' Bell"},
  177. {"Well Stacked Pizza"},
  178. {"Jimmy's Sticky Ring"},
  179. {"Denise Room"},
  180. {"Katie Room"},
  181. {"Helena Room"},
  182. {"Michelle Room"},
  183. {"Barbara Room"},
  184. {"Mille Room"},
  185. {"Sherman Dam"},
  186. {"Planning Dept."},
  187. {"Area 51"},
  188. {"LS Gym"},
  189. {"SF Gym"},
  190. {"LV Gym"},
  191. {"B Dup's House"},
  192. {"B Dup's Crack Pad"},
  193. {"CJ's House"},
  194. {"Madd Dogg's Mansion"},
  195. {"OG Loc's House"},
  196. {"Ryder's House"},
  197. {"Sweet's House"},
  198. {"Crack Factory"},
  199. {"Big Spread Ranch"},
  200. {"Fanny Batters"},
  201. {"Strip Club"},
  202. {"Strip Club Private Room"},
  203. {"Unnamed Brothel"},
  204. {"Tiger Skin Brothel"},
  205. {"Pleasure Domes"},
  206. {"Liberty City Outside"},
  207. {"Liverty City Inside"},
  208. {"Gang House"},
  209. {"Colonel Furhberger's House"},
  210. {"Crack Den"},
  211. {"Warehouse 1"},
  212. {"Warehouse 2"},
  213. {"Sweet's Garage"},
  214. {"Lil' Probe Inn Toilet"},
  215. {"Unused Safe House"},
  216. {"RC Battlefield"},
  217. {"Barber 1"},
  218. {"Barber 2"},
  219. {"Barber 3"},
  220. {"Tatoo parlour 1"},
  221. {"Tatoo parlour 2"},
  222. {"Tatoo parlour 3"},
  223. {"LS Police HQ"},
  224. {"SF Police HQ"},
  225. {"LV Police HQ"},
  226. {"Car School"},
  227. {"8-Track"},
  228. {"Bloodbowl"},
  229. {"Dirt Track"},
  230. {"Kickstart"},
  231. {"Vice Stadium"},
  232. {"SF Garage"},
  233. {"LS Garage"},
  234. {"SF Bomb Shop"},
  235. {"Blueberry Warehouse"},
  236. {"LV Warehouse 1"},
  237. {"LV Warehouse 2"},
  238. {"Catigula's Hidden Room"},
  239. {"Bank"},
  240. {"Bank - Behind Desk"},
  241. {"LS Atruim"},
  242. {"Bike School"}
  243. };
  244.  
  245.  
  246. #if defined FILTERSCRIPT
  247. public OnFilterScriptInit()
  248. {
  249. print("\n--------------------------------------");
  250. print(" Maximum Gaming production. Jordan Marchinton.");
  251. print("--------------------------------------\n");
  252. return 1;
  253. }
  254.  
  255. public OnFilterScriptExit()
  256. {
  257. return 1;
  258. }
  259.  
  260. #endif
  261.  
  262.  
  263. public OnPlayerRequestClass(playerid, classid)
  264. {
  265. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  266. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  267. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  268. return 1;
  269. }
  270.  
  271. public OnPlayerConnect(playerid)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnPlayerDisconnect(playerid, reason)
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerSpawn(playerid)
  282. {
  283. return 1;
  284. }
  285.  
  286. public OnPlayerDeath(playerid, killerid, reason)
  287. {
  288. return 1;
  289. }
  290.  
  291. public OnVehicleSpawn(vehicleid)
  292. {
  293. return 1;
  294. }
  295.  
  296. public OnVehicleDeath(vehicleid, killerid)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnPlayerText(playerid, text[])
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnPlayerCommandText(playerid, cmdtext[])
  307. {
  308. return 0;
  309. }
  310.  
  311. COMMAND:createinterior(playerid, params[])
  312. {
  313. new DialogString[1550],part[40];
  314. format(DialogString, sizeof(DialogString), "{FFFFFF}%s", sInteriorNames[0]);
  315. for(new i = 1; i < sizeof(sInteriorNames); i++)
  316. {
  317. format(part, sizeof(part), "\n%s", sInteriorNames[i]);
  318. strcat(DialogString, part, sizeof(DialogString));
  319. }
  320. ShowPlayerDialog(playerid,10, DIALOG_STYLE_LIST,"Select an Interior",DialogString,"Select","Cancel");
  321. return 1;
  322. }
  323.  
  324. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  325. {
  326. return 1;
  327. }
  328.  
  329. public OnPlayerExitVehicle(playerid, vehicleid)
  330. {
  331. return 1;
  332. }
  333.  
  334. public OnPlayerStateChange(playerid, newstate, oldstate)
  335. {
  336. return 1;
  337. }
  338.  
  339. public OnPlayerEnterCheckpoint(playerid)
  340. {
  341. return 1;
  342. }
  343.  
  344. public OnPlayerLeaveCheckpoint(playerid)
  345. {
  346. return 1;
  347. }
  348.  
  349. public OnPlayerEnterRaceCheckpoint(playerid)
  350. {
  351. return 1;
  352. }
  353.  
  354. public OnPlayerLeaveRaceCheckpoint(playerid)
  355. {
  356. return 1;
  357. }
  358.  
  359. public OnRconCommand(cmd[])
  360. {
  361. return 1;
  362. }
  363.  
  364. public OnPlayerRequestSpawn(playerid)
  365. {
  366. return 1;
  367. }
  368.  
  369. public OnObjectMoved(objectid)
  370. {
  371. return 1;
  372. }
  373.  
  374. public OnPlayerObjectMoved(playerid, objectid)
  375. {
  376. return 1;
  377. }
  378.  
  379. public OnPlayerPickUpPickup(playerid, pickupid)
  380. {
  381. return 1;
  382. }
  383.  
  384. public OnVehicleMod(playerid, vehicleid, componentid)
  385. {
  386. return 1;
  387. }
  388.  
  389. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  390. {
  391. return 1;
  392. }
  393.  
  394. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  395. {
  396. return 1;
  397. }
  398.  
  399. public OnPlayerSelectedMenuRow(playerid, row)
  400. {
  401. return 1;
  402. }
  403.  
  404. public OnPlayerExitedMenu(playerid)
  405. {
  406. return 1;
  407. }
  408.  
  409. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  410. {
  411. return 1;
  412. }
  413.  
  414. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  415. {
  416. return 1;
  417. }
  418.  
  419. public OnRconLoginAttempt(ip[], password[], success)
  420. {
  421. return 1;
  422. }
  423.  
  424. public OnPlayerUpdate(playerid)
  425. {
  426. return 1;
  427. }
  428.  
  429. public OnPlayerStreamIn(playerid, forplayerid)
  430. {
  431. return 1;
  432. }
  433.  
  434. public OnPlayerStreamOut(playerid, forplayerid)
  435. {
  436. return 1;
  437. }
  438.  
  439. public OnVehicleStreamIn(vehicleid, forplayerid)
  440. {
  441. return 1;
  442. }
  443.  
  444. public OnVehicleStreamOut(vehicleid, forplayerid)
  445. {
  446. return 1;
  447. }
  448.  
  449. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  450. {
  451. if(dialogid == 10)
  452. {
  453. if(!response)
  454. {
  455. SendClientMessage(playerid, 0xFF0000FF, "Or{FFFFFF}Teles: {B4B5B7}You have canceled the teleport.");
  456. return 1;
  457. }
  458. else
  459. {
  460. new string[128];
  461. SetPlayerPos(playerid,sInteriorsCoOrds[listitem][0],sInteriorsCoOrds[listitem][1],sInteriorsCoOrds[listitem][2]);
  462. SetPlayerInterior(playerid,sInteriorIds[listitem]);
  463. format(string, sizeof(string), "Server {B4B5B7}You have been teleported to {0099FF}%s",sInteriorNames[listitem]);
  464. SendClientMessage(playerid, 0xFF0000FF,string);
  465. return 1;
  466. }
  467. }
  468. return 1;
  469. }
  470.  
  471. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  472. {
  473. return 1;
  474. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement