Guest User

SF Train Station

a guest
Jun 12th, 2014
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. #include <a_samp>
  2. #include "../include/gl_common.inc"
  3. #include <streamer>
  4.  
  5. RemoveBuildingsForStation(playerid)
  6. {
  7. RemoveBuildingForPlayer(playerid, 11311, -1968.5625, 139.1094, 31.8672, 0.25);
  8. RemoveBuildingForPlayer(playerid, 673, -1998.5625, 133.1094, 26.8047, 0.25);
  9. RemoveBuildingForPlayer(playerid, 673, -1998.5625, 141.8281, 26.8047, 0.25);
  10. RemoveBuildingForPlayer(playerid, 673, -1998.5625, 149.1250, 26.8047, 0.25);
  11. RemoveBuildingForPlayer(playerid, 673, -1998.5625, 164.9063, 26.8047, 0.25);
  12. RemoveBuildingForPlayer(playerid, 673, -1998.5625, 157.6094, 26.8047, 0.25);
  13. RemoveBuildingForPlayer(playerid, 11305, -1968.5625, 139.1094, 31.8672, 0.25);
  14. RemoveBuildingForPlayer(playerid, 1264, -1980.9141, 149.5625, 27.0391, 0.25);
  15. RemoveBuildingForPlayer(playerid, 1264, -1980.9141, 148.0781, 27.0391, 0.25);
  16. RemoveBuildingForPlayer(playerid, 1264, -1981.4375, 148.9219, 27.0391, 0.25);
  17. }
  18. public OnPlayerConnect(playerid)
  19. {
  20. RemoveBuildingsForStation(playerid);
  21. return 1;
  22. }
  23.  
  24. public OnPlayerCommandText(playerid,cmdtext[])
  25. {
  26. if(!strcmp(cmdtext,"/sf",true))
  27. {
  28. SetPlayerPos(playerid, -1991.76782, 151.15411, 27.1404);
  29. }
  30. }
  31.  
  32. public OnFilterScriptInit()
  33. {
  34. SetObjectMaterial(CreateObject(11305, -1968.56250, 139.10941, 31.86720, 0.00000, 0.00000, 0.00000), 0, 12855, "cunte_cop", "sw_brick04", 0xFFe9d27c);
  35. new statwall[21];
  36. statwall[1] = CreateDynamicObject(18981, -1999.08569, 157.21268, 15.83330, 0.00000, 0.00000, 0.00000);
  37. statwall[2] = CreateDynamicObject(18981, -1999.08972, 134.93042, 15.84334, 0.00000, 0.00000, 0.00000);
  38. statwall[3] = CreateDynamicObject(18980, -1999.08423, 123.93280, 23.97480, 20.00000, 0.00000, 0.00000);
  39. statwall[4] = CreateDynamicObject(18981, -1987.13696, 154.79179, 35.45520, 0.00000, 90.00000, 0.00000);
  40. statwall[5] = CreateDynamicObject(18981, -1987.13220, 131.57655, 35.44520, 0.00000, 90.00000, 0.00000);
  41. statwall[6] = CreateDynamicObject(18980, -1999.08423, 129.03500, 23.97480, 20.00000, 0.00000, 0.00000);
  42. statwall[7] = CreateDynamicObject(18980, -1999.08423, 134.11940, 23.97480, 20.00000, 0.00000, 0.00000);
  43. statwall[8] = CreateDynamicObject(18980, -1999.08423, 139.37500, 23.97480, 20.00000, 0.00000, 0.00000);
  44. statwall[9] = CreateDynamicObject(18980, -1999.08423, 144.55769, 23.97480, 20.00000, 0.00000, 0.00000);
  45. statwall[10] = CreateDynamicObject(18980, -1999.08423, 149.84201, 23.97480, 20.00000, 0.00000, 0.00000);
  46. statwall[11] = CreateDynamicObject(18980, -1999.08423, 155.10159, 23.97480, 20.00000, 0.00000, 0.00000);
  47. statwall[12] = CreateDynamicObject(18980, -1999.08423, 170.77420, 23.97480, 20.00000, 0.00000, 0.00000);
  48. statwall[13] = CreateDynamicObject(18980, -1999.08423, 160.36929, 23.97480, 20.00000, 0.00000, 0.00000);
  49. statwall[14] = CreateDynamicObject(18980, -1999.08423, 165.63190, 23.97480, 20.00000, 0.00000, 0.00000);
  50. statwall[15] = CreateDynamicObject(18981, -1998.05847, 157.63080, 14.70170, 0.00000, 0.00000, 0.00000);
  51. statwall[16] = CreateDynamicObject(18980, -1998.06116, 173.93350, 15.28120, 20.00000, 0.00000, 0.00000);
  52. statwall[17] = CreateDynamicObject(18980, -1998.09314, 173.94150, 15.28120, 20.00000, 0.00000, 0.00000);
  53. statwall[18] = CreateDynamicObject(18981, -1998.05859, 135.78830, 14.71170, 0.00000, 0.00000, 0.00000);
  54. statwall[19] = CreateDynamicObject(18980, -1998.08337, 127.09810, 15.28580, 20.00000, 0.00000, 0.00000);
  55. statwall[20] = CreateDynamicObject(18980, -1998.05945, 127.09810, 15.27580, 20.00000, 0.00000, 0.00000);
  56. for(new statwallss = 0; statwallss < sizeof(statwall); statwallss++)
  57. {
  58. new statwalls = statwall[statwallss];
  59. SetDynamicObjectMaterial(statwalls, 0, 12855, "cunte_cop", "sw_brick04", 0xFFe9d27c);
  60. }
  61. new taxitext[16];
  62. taxitext[1] = CreateDynamicObject(19325, 1624.74817, -2250.46704, 12.33690, 0.00000, 90.00000, 90.00000);
  63. taxitext[2] = CreateDynamicObject(19325, 1633.13623, -2250.46704, 12.33690, 0.00000, 90.00000, 90.00000);
  64. taxitext[3] = CreateDynamicObject(19325, 1641.11328, -2250.46704, 12.33690, 0.00000, 90.00000, 90.00000);
  65. taxitext[4] = CreateDynamicObject(19325, 1649.49963, -2250.46704, 12.33690, 0.00000, 90.00000, 90.00000);
  66. for(new taxitextss = 0; taxitextss < sizeof(taxitext); taxitextss++)
  67. {
  68. new taxitexts = taxitext[taxitextss];
  69. SetDynamicObjectMaterialText(taxitexts, 0, "TAXI", OBJECT_MATERIAL_SIZE_256x128,
  70. "Times New Roman", 40, 1, 0xFFffe144, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  71. }
  72. SetDynamicObjectMaterial(CreateDynamicObject(18980, -1998.96033, 131.57823, 36.33505, 90.00000, 0.00000, 0.00000), 0, 5134, "wasteland_las2", "ws_sandstone2", 0xFF505050);
  73. SetDynamicObjectMaterial(CreateDynamicObject(18980, -1998.96777, 154.70190, 36.34500, 90.00000, 0.00000, 0.00000), 0, 5134, "wasteland_las2", "ws_sandstone2", 0xFF505050);
  74. SetDynamicObjectMaterial(CreateDynamicObject(18981, -1998.35608, 135.79213, 14.71970, 0.00000, 0.00000, 0.00000), 0, 9495, "vict_sfw", "Grass_128HV", 0xFFFFFFFF);
  75. SetDynamicObjectMaterial(CreateDynamicObject(18981, -1998.35608, 157.62061, 14.72970, 0.00000, 0.00000, 0.00000), 0, 9495, "vict_sfw", "Grass_128HV", 0xFFFFFFFF);
  76. SetDynamicObjectMaterial(CreateDynamicObject(19466, -1984.29919, 174.90027, 26.67840, 0.00000, 0.00000, 90.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  77. SetDynamicObjectMaterial(CreateDynamicObject(19466, -1984.29919, 174.90030, 28.61520, 0.00000, 0.00000, 90.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  78. SetDynamicObjectMaterial(CreateDynamicObject(16101, -1983.16553, 174.90176, 18.73454, 0.00000, 0.00000, 0.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  79. CreateDynamicObject(19325, -1983.14209, 178.19835, 27.60096, 0.00000, 0.00000, 0.00000);
  80. CreateDynamicObject(19466, -1984.23938, 181.52487, 26.67840, 0.00000, 0.00000, 90.00000);
  81. SetDynamicObjectMaterial(CreateDynamicObject(16101, -1983.14624, 181.49059, 18.73454, 0.00000, 0.00000, 0.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  82. CreateDynamicObject(19466, -1984.23938, 181.52490, 28.61520, 0.00000, 0.00000, 90.00000);
  83. SetDynamicObjectMaterial(CreateDynamicObject(16101, -1985.34766, 181.49060, 18.73450, 0.00000, 0.00000, 0.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  84. SetDynamicObjectMaterial(CreateDynamicObject(16101, -1985.41174, 174.90179, 18.73450, 0.00000, 0.00000, 0.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  85. SetDynamicObjectMaterial(CreateDynamicObject(19363, -1984.62915, 176.58418, 29.58025, 0.00000, 90.00000, 90.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  86. SetDynamicObjectMaterial(CreateDynamicObject(19363, -1984.62122, 179.82640, 29.58530, 0.00000, 90.00000, 90.00000), 0, 12855, "cunte_cop", "sw_brick04", 0);
  87.  
  88. CreateDynamicObject(19325, -1999.08423, 167.24899, 26.28180, 110.00000, 0.00000, 0.00000);
  89. CreateDynamicObject(19325, -1999.08423, 162.07770, 26.30580, 110.00000, 0.00000, 0.00000);
  90. CreateDynamicObject(19325, -1999.08423, 156.80280, 26.30580, 110.00000, 0.00000, 0.00000);
  91. CreateDynamicObject(19325, -1999.08423, 151.53220, 26.32980, 110.00000, 0.00000, 0.00000);
  92. CreateDynamicObject(19325, -1999.08423, 146.39830, 26.32980, 110.00000, 0.00000, 0.00000);
  93. CreateDynamicObject(19325, -1999.08423, 141.07170, 26.32980, 110.00000, 0.00000, 0.00000);
  94. CreateDynamicObject(19325, -1999.08423, 135.93460, 26.32980, 110.00000, 0.00000, 0.00000);
  95. CreateDynamicObject(19325, -1999.08423, 130.74870, 26.35380, 110.00000, 0.00000, 0.00000);
  96. CreateDynamicObject(19325, -1999.08423, 125.60070, 26.36180, 110.00000, 0.00000, 0.00000);
  97. CreateDynamicObject(19325, -1999.08423, 159.89520, 32.58070, 110.00000, 0.00000, 0.00000);
  98. CreateDynamicObject(19325, -1999.08423, 165.13530, 32.58070, 110.00000, 0.00000, 0.00000);
  99. CreateDynamicObject(19325, -1999.08423, 154.62061, 32.58070, 110.00000, 0.00000, 0.00000);
  100. CreateDynamicObject(19325, -1999.08423, 149.29131, 32.58070, 110.00000, 0.00000, 0.00000);
  101. CreateDynamicObject(19325, -1999.08423, 144.14841, 32.58070, 110.00000, 0.00000, 0.00000);
  102. CreateDynamicObject(19325, -1999.08423, 133.68919, 32.58070, 110.00000, 0.00000, 0.00000);
  103. CreateDynamicObject(19325, -1999.08423, 138.82899, 32.58070, 110.00000, 0.00000, 0.00000);
  104. CreateDynamicObject(19325, -1999.08423, 128.46120, 32.58070, 110.00000, 0.00000, 0.00000);
  105. CreateDynamicObject(19325, -1999.08423, 123.26690, 32.58070, 110.00000, 0.00000, 0.00000);
  106. }
Advertisement
Add Comment
Please, Sign In to add comment