Advertisement
Guest User

Script by Markus Schneider

a guest
Jul 9th, 2011
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.88 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new tramsf;
  4. new L1B1;
  5. new L2B1;
  6. new L1B2;
  7. new L2B2;
  8. new L3B1;
  9. new L4B1;
  10. new L5B1;
  11. new L5B2;
  12. new L6B1;
  13. new L7B1;
  14. new L8B1;
  15. new caddy;
  16.  
  17. new DIALOG_LSLINE1;
  18. new DIALOG_LSLINE2;
  19. new DIALOG_LSLINE3;
  20. new DIALOG_LSLINE4;
  21. new DIALOG_LVLINE5;
  22. new DIALOG_LVLINE6;
  23. new DIALOG_LVLINE7;
  24. new DIALOG_LVLINE8;
  25.  
  26. public OnFilterScriptInit()
  27. {
  28. ConnectNPC("tramsf","tram");
  29. ConnectNPC("L1B1","L1B1");
  30. ConnectNPC("L2B1","L2B1");
  31. ConnectNPC("L1B2","L1B2");
  32. ConnectNPC("L2B2","L2B2");
  33. ConnectNPC("L3B1","L3B1");
  34. ConnectNPC("L4B1","L4B1");
  35. ConnectNPC("L5B1","L5B1");
  36. ConnectNPC("L5B2","L5B2");
  37. ConnectNPC("L6B1","L6B1");
  38. ConnectNPC("L7B1","L7B1");
  39. ConnectNPC("L8B1","L8B1");
  40. ConnectNPC("caddy","caddy");
  41.  
  42. tramsf = AddStaticVehicle(449,-2006.5166,38.7075,32.3092,1.3508,1,1);
  43. L1B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  44. L2B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  45. L1B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  46. L2B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  47. L3B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  48. L4B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  49. L5B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  50. L5B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  51. L6B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  52. L7B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  53. L8B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
  54. caddy = AddStaticVehicle(457,-1988.0057,116.6116,27.6411,0.6686,75,59);
  55. return 1;
  56. }
  57.  
  58. public OnFilterScriptExit()
  59. {
  60. return 1;
  61. }
  62.  
  63. public OnPlayerSpawn(playerid)
  64. {
  65. if(!IsPlayerNPC(playerid)) return 0;
  66. new npcname[MAX_PLAYER_NAME];
  67. GetPlayerName(playerid, npcname, sizeof(npcname));
  68. new playername[64];
  69. GetPlayerName(playerid,playername,64);
  70.  
  71. if(!strcmp(playername,"tramsf",true)) {
  72. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  73. PutPlayerInVehicle(playerid, tramsf, 0);
  74. new Text3D:tramsfx = Create3DTextLabel("SFTram",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  75. Attach3DTextLabelToPlayer(tramsfx, playerid, 0.0, 0.0, 0.5);
  76. }
  77.  
  78. else if(!strcmp(playername,"L1B1",true)) {
  79. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  80. PutPlayerInVehicle(playerid, L1B1, 0);
  81. new Text3D:L1B1x = Create3DTextLabel("Line 1",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  82. Attach3DTextLabelToPlayer(L1B1x, playerid, 0.0, 0.0, 0.5);
  83. }
  84.  
  85. else if(!strcmp(playername,"L2B1",true)) {
  86. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  87. PutPlayerInVehicle(playerid, L2B1, 0);
  88. new Text3D:L2B1x = Create3DTextLabel("Line 2",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  89. Attach3DTextLabelToPlayer(L2B1x, playerid, 0.0, 0.0, 0.5);
  90. }
  91.  
  92. else if(!strcmp(playername,"L1B2",true)) {
  93. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  94. PutPlayerInVehicle(playerid, L1B2, 0);
  95. new Text3D:L1B2x = Create3DTextLabel("Line 1",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  96. Attach3DTextLabelToPlayer(L1B2x, playerid, 0.0, 0.0, 0.5);
  97. }
  98.  
  99. else if(!strcmp(playername,"L2B2",true)) {
  100. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  101. PutPlayerInVehicle(playerid, L2B2, 0);
  102. new Text3D:L2B2x = Create3DTextLabel("Line 2",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  103. Attach3DTextLabelToPlayer(L2B2x, playerid, 0.0, 0.0, 0.5);
  104. }
  105.  
  106. else if(!strcmp(playername,"L3B1",true)) {
  107. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  108. PutPlayerInVehicle(playerid, L3B1, 0);
  109. new Text3D:L3B1x = Create3DTextLabel("Line 3",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  110. Attach3DTextLabelToPlayer(L3B1x, playerid, 0.0, 0.0, 0.5);
  111. }
  112.  
  113. else if(!strcmp(playername,"L4B1",true)) {
  114. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  115. PutPlayerInVehicle(playerid, L4B1, 0);
  116. new Text3D:L4B1x = Create3DTextLabel("Line 4",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  117. Attach3DTextLabelToPlayer(L4B1x, playerid, 0.0, 0.0, 0.5);
  118. }
  119.  
  120. else if(!strcmp(playername,"L5B1",true)) {
  121. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  122. PutPlayerInVehicle(playerid, L5B1, 0);
  123. new Text3D:L5B1x = Create3DTextLabel("Line 5",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  124. Attach3DTextLabelToPlayer(L5B1x, playerid, 0.0, 0.0, 0.5);
  125. }
  126.  
  127. else if(!strcmp(playername,"L5B2",true)) {
  128. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  129. PutPlayerInVehicle(playerid, L5B2, 0);
  130. new Text3D:L5B2x = Create3DTextLabel("Line 5",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  131. Attach3DTextLabelToPlayer(L5B2x, playerid, 0.0, 0.0, 0.5);
  132. }
  133.  
  134. else if(!strcmp(playername,"L6B1",true)) {
  135. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  136. PutPlayerInVehicle(playerid, L6B1, 0);
  137. new Text3D:L6B1x = Create3DTextLabel("Line 6",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  138. Attach3DTextLabelToPlayer(L6B1x, playerid, 0.0, 0.0, 0.5);
  139. }
  140.  
  141. else if(!strcmp(playername,"L7B1",true)) {
  142. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  143. PutPlayerInVehicle(playerid, L7B1, 0);
  144. new Text3D:L7B1x = Create3DTextLabel("Line 7",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  145. Attach3DTextLabelToPlayer(L7B1x, playerid, 0.0, 0.0, 0.5);
  146. }
  147.  
  148. else if(!strcmp(playername,"L8B1",true)) {
  149. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  150. PutPlayerInVehicle(playerid, L8B1, 0);
  151. new Text3D:L8B1x = Create3DTextLabel("Line 8",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  152. Attach3DTextLabelToPlayer(L8B1x, playerid, 0.0, 0.0, 0.5);
  153. }
  154.  
  155. else if(!strcmp(playername,"caddy",true)) {
  156. SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
  157. PutPlayerInVehicle(playerid, caddy, 0);
  158. new Text3D:caddyx = Create3DTextLabel("High Speed Hardcore Gulf Caddy",0x33AA33AA,30.0,40.0,50.0,40.0,0);
  159. Attach3DTextLabelToPlayer(caddyx, playerid, 0.0, 0.0, 0.5);
  160. }
  161. return 1;
  162. }
  163.  
  164. public OnPlayerCommandText(playerid, cmdtext[])
  165. {
  166. new cmd[256];
  167.  
  168. if(!strcmp("/lslinie1",cmd,true) || !strcmp("/lsline1",cmd,true))
  169. {
  170. ShowPlayerLSLine1Dialog(playerid);
  171. return 1;
  172. }
  173.  
  174. if(!strcmp("/lslinie2",cmd,true) || !strcmp("/lsline2",cmd,true))
  175. {
  176. ShowPlayerLSLine2Dialog(playerid);
  177. return 1;
  178. }
  179.  
  180. if(!strcmp("/lslinie3",cmd,true) || !strcmp("/lsline3",cmd,true))
  181. {
  182. ShowPlayerLSLine3Dialog(playerid);
  183. return 1;
  184. }
  185.  
  186. if(!strcmp("/lslinie4",cmd,true) || !strcmp("/lsline4",cmd,true))
  187. {
  188. ShowPlayerLSLine4Dialog(playerid);
  189. return 1;
  190. }
  191.  
  192. if(!strcmp("/lvlinie5",cmd,true) || !strcmp("/lvline5",cmd,true))
  193. {
  194. ShowPlayerLVLine5Dialog(playerid);
  195. return 1;
  196. }
  197.  
  198. if(!strcmp("/lvlinie6",cmd,true) || !strcmp("/lvline6",cmd,true))
  199. {
  200. ShowPlayerLVLine6Dialog(playerid);
  201. return 1;
  202. }
  203.  
  204. if(!strcmp("/lvlinie7",cmd,true) || !strcmp("/lvline7",cmd,true))
  205. {
  206. ShowPlayerLVLine7Dialog(playerid);
  207. return 1;
  208. }
  209.  
  210. if(!strcmp("/lvlinie8",cmd,true) || !strcmp("/lvline8",cmd,true))
  211. {
  212. ShowPlayerLVLine8Dialog(playerid);
  213. return 1;
  214. }
  215. return 0;
  216. }
  217.  
  218. stock ShowPlayerLSLine1Dialog(playerid)
  219. {
  220. ShowPlayerDialog(playerid,DIALOG_LSLINE1,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie1 Haltestellen","1 LSPD\n2 LS Bank\n3 LS BSN\n4 LS Krankenhaus\n5 LS Television\n6 LS Pay n Spray Beach\n7 LS Beach\n8 LS Airport\n9 LS Pay n Spray / Haircutter\n10 LS PD Tankstelle\n11 LSPD","OK","OK");
  221. }
  222.  
  223. stock ShowPlayerLSLine2Dialog(playerid)
  224. {
  225. ShowPlayerDialog(playerid,DIALOG_LSLINE2,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie2 Haltestellen","1 LS PD Tankstelle\n2 LS Airport\n3 LS East Beach\n4 LS Forum\n5 LS Grove Street / Cluckin Bell\n6 LS Bank\n7 LS Krankenhaus\n8 LS Fahrschule\n9 LSPD\n10 LS PD Tankstelle","OK","OK");
  226. }
  227.  
  228. stock ShowPlayerLSLine3Dialog(playerid)
  229. {
  230. ShowPlayerDialog(playerid,DIALOG_LSLINE3,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie3 Haltestellen","1 LS Spawn\n2 LS Krankenhaus\n3 LS Television\n4 LS - Mount Chilliad Petrol Station\n5 Mount Chilliad 69 - LS\n6 LS Village\n7 LS BSN\n8 LS Bank\n9 LS Krankenhaus\n10 LS Spawn","OK","OK");
  231. }
  232.  
  233. stock ShowPlayerLSLine4Dialog(playerid)
  234. {
  235. ShowPlayerDialog(playerid,DIALOG_LSLINE4,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie4 Haltestellen","1 LS Spawn\n2 LSPD Tankstelle\n3 LS TheWellStackedPizza\n4 LS Bank\n5 LS Spawn","OK","OK");
  236. }
  237.  
  238. stock ShowPlayerLVLine5Dialog(playerid)
  239. {
  240. ShowPlayerDialog(playerid,DIALOG_LVLINE5,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie5 Haltestellen","1 LV Busstation\n2 LV VIP I\n3 LV VIP II\n4 LV International Airport\n5 LV Hotel - A\n6 LV Casino - B\n7 LV - PD\n8 LV Emerald Isle\n9 LV Spawn\n10 LV Ship\n11 LV Busstation","OK","OK");
  241. }
  242.  
  243. stock ShowPlayerLVLine6Dialog(playerid)
  244. {
  245. ShowPlayerDialog(playerid,DIALOG_LVLINE6,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie6 Haltestellen","1 LV Busstation\n2 LV International Airport\n3 LV Casino - B\n4 LS Bank\n5 LS Krankenhaus\n6 LS PD Tankstelle\n7 LS International Airport\n8 LS Spawn\n9 LS Spawn II\n10 LS Bank\n11 LV Spawn\n12 LV Ship\n13 LV Hotel - A\n14 LV Four Dragons\n15 LV Hafen\n16 LV Busstation Tankstelle\n17 LV Busstation","OK","OK");
  246. }
  247.  
  248. stock ShowPlayerLVLine7Dialog(playerid)
  249. {
  250. ShowPlayerDialog(playerid,DIALOG_LVLINE7,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie7 Haltestellen","1 LV Casino - B\n2 LV Spawn\n3 LV International Airport\n4 LV Busstation\n5 LV VIP I\n6 LV VIP II\n7 LV Casino - B","OK","OK");
  251. }
  252.  
  253. stock ShowPlayerLVLine8Dialog(playerid)
  254. {
  255. ShowPlayerDialog(playerid,DIALOG_LVLINE8,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie8 Haltestellen","1 LV International Airport\n2 SF International Airport\n3 LS International Airport\n4 LS Bank\n5 LV International Airport","OK","OK");
  256. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement