Advertisement
Guest User

Untitled

a guest
Apr 12th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.76 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dini>
  3. #include <ocmd>
  4.  
  5. #define DIALOG_REGISTER 1
  6. #define DIALOG_LOGIN 2
  7.  
  8. #define ROT 0xCD0000FF
  9. #define BLAU 0x00E1FFFF
  10. #define GRAU 0xD2D2D2FF
  11.  
  12. new lspd[1];
  13.  
  14. //FRAKTIONEN
  15. #define fraktname1 "LSPD"
  16. #define fraktname2 "Ballas"
  17. #define fraktname3 "Medic"
  18.  
  19. main()
  20. {
  21. print("\n----------------------------------");
  22. print(" Blank Gamemode by your name here");
  23. print("----------------------------------\n");
  24. }
  25.  
  26. public OnGameModeInit()
  27. {
  28. SetGameModeText("German Reallife");
  29. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  30.  
  31. //LSPD OBJEKTE
  32. CreateObject(971, 1004.0466308594, -643.90881347656, 123.89549255371, 0, 0, 19.25);
  33. CreateObject(3749, 1547.490234375, -1627.630859375, 18.241226196289, 0, 0, 90);
  34. lspd[0]=CreateObject(980, 1547.1782226563, -1627.6697998047, 15.156204223633, 0, 0, 90); //Hoftor
  35. CreateObject(1411, 1542.5927734375, -1617.8544921875, 14.910991668701, 0, 0, 179.99450683594);
  36. CreateObject(1411, 1539.55859375, -1615.21484375, 14.910991668701, 0, 0, 90);
  37. CreateObject(1411, 1539.572265625, -1610.09765625, 14.910991668701, 0, 0, 90);
  38. CreateObject(1411, 1539.5727539063, -1604.9456787109, 14.910991668701, 0, 0, 90);
  39. CreateObject(1411, 1542.3446044922, -1602.1877441406, 14.910991668701, 0, 0, 0);
  40. CreateObject(1411, 1547.5493164063, -1602.1877441406, 14.910991668701, 0, 0, 0);
  41. CreateObject(1411, 1552.7740478516, -1602.1877441406, 14.910991668701, 0, 0, 0);
  42. CreateObject(1411, 1558.0321044922, -1602.1877441406, 14.910991668701, 0, 0, 0);
  43. CreateObject(1411, 1563.2946777344, -1602.1898193359, 14.910991668701, 0, 0, 0);
  44. CreateObject(1411, 1568.576171875, -1602.1875, 14.910991668701, 0, 0, 0);
  45. CreateObject(1411, 1573.8558349609, -1602.1877441406, 14.910991668701, 0, 0, 0);
  46. CreateObject(1411, 1579.1064453125, -1602.1875, 14.910991668701, 0, 0, 0);
  47. CreateObject(1411, 1584.3826904297, -1602.1877441406, 14.910991668701, 0, 0, 0);
  48. CreateObject(1411, 1589.6451416016, -1602.1877441406, 14.910991668701, 0, 0, 0);
  49. CreateObject(1411, 1594.8972167969, -1602.1877441406, 14.910991668701, 0, 0, 0);
  50. CreateObject(1411, 1600.1708984375, -1602.1877441406, 14.910991668701, 0, 0, 0);
  51. CreateObject(1411, 1605.4467773438, -1602.1877441406, 14.910991668701, 0, 0, 0);
  52. CreateObject(1411, 1608.2208251953, -1604.9445800781, 14.910991668701, 0, 0, 270);
  53. CreateObject(1411, 1608.2208251953, -1610.1953125, 14.910991668701, 0, 0, 270);
  54. CreateObject(1411, 1608.2208251953, -1615.4735107422, 14.910991668701, 0, 0, 270);
  55. CreateObject(1411, 1608.2214355469, -1620.7456054688, 14.910991668701, 0, 0, 270);
  56. CreateObject(1411, 1608.2208251953, -1625.9986572266, 14.910991668701, 0, 0, 270);
  57. CreateObject(1411, 1608.2208251953, -1631.2263183594, 14.910991668701, 0, 0, 270);
  58. CreateObject(1411, 1608.2208251953, -1632.9405517578, 14.910991668701, 0, 0, 270);
  59. CreateObject(1411, 1605.49609375, -1638.283203125, 15.037266731262, 0, 0, 179.99450683594);
  60. CreateObject(18452, 1544.36328125, -1609.791015625, 15.33154296875, 0, 0, 0);
  61. CreateObject(1676, 1544.4490966797, -1612.4921875, 14.16240978241, 0, 0, 0);
  62. CreateObject(1676, 1544.7379150391, -1607.033203125, 14.16240978241, 0, 0, 0);
  63. CreateObject(982, 1563.9934082031, -1622.7725830078, 13.230429649353, 0, 0, 90);
  64. CreateObject(983, 1548.5183105469, -1617.6907958984, 13.230429649353, 0, 0, 90);
  65. CreateObject(982, 1564.498046875, -1617.6904296875, 13.230429649353, 0, 0, 90);
  66. CreateObject(1215, 1549.4445800781, -1621.9484863281, 13.111198425293, 0, 0, 0);
  67. CreateObject(1215, 1551.0169677734, -1622.7740478516, 13.111198425293, 0, 0, 0);
  68. CreateObject(1215, 1556.5131835938, -1617.8897705078, 13.111198425293, 0, 0, 0);
  69. CreateObject(1215, 1549.8951416016, -1618.0778808594, 13.111198425293, 0, 0, 0);
  70. CreateObject(1215, 1560.8422851563, -1622.6296386719, 13.111198425293, 0, 0, 0);
  71. CreateObject(1215, 1556.0036621094, -1622.6379394531, 13.111198425293, 0, 0, 0);
  72. CreateObject(1215, 1561.37109375, -1617.9219970703, 13.111198425293, 0, 0, 0);
  73. CreateObject(1215, 1570.9031982422, -1617.8822021484, 13.111198425293, 0, 0, 0);
  74. CreateObject(1215, 1565.6708984375, -1622.5244140625, 13.111198425293, 0, 0, 0);
  75. CreateObject(1215, 1566.08203125, -1617.8603515625, 13.111198425293, 0, 0, 0);
  76. CreateObject(1215, 1577.0009765625, -1622.6884765625, 13.111198425293, 0, 0, 0);
  77. CreateObject(1215, 1570.41796875, -1622.6083984375, 13.111198425293, 0, 0, 0);
  78. CreateObject(1215, 1577.3991699219, -1617.7399902344, 13.111198425293, 0, 0, 0);
  79. CreateObject(638, 1553.3857421875, -1622.3894042969, 13.243908882141, 0, 0, 90);
  80. CreateObject(638, 1558.5042724609, -1622.3798828125, 13.243908882141, 0, 0, 90);
  81. CreateObject(638, 1563.3074951172, -1622.4162597656, 13.243908882141, 0, 0, 90);
  82. CreateObject(638, 1568.0161132813, -1622.3508300781, 13.243908882141, 0, 0, 90);
  83. CreateObject(638, 1568.75, -1618.1978759766, 13.243908882141, 0, 0, 90);
  84. CreateObject(638, 1564.208984375, -1618.2041015625, 13.243908882141, 0, 0, 90);
  85. CreateObject(638, 1559.1674804688, -1618.1584472656, 13.243908882141, 0, 0, 90);
  86. CreateObject(640, 1553.2971191406, -1618.2044677734, 13.243908882141, 0, 0, 90);
  87. CreateObject(640, 1574.1943359375, -1618.1505126953, 13.243908882141, 0, 0, 90);
  88. CreateObject(640, 1573.7143554688, -1622.3701171875, 13.243908882141, 0, 0, 90);
  89. CreateObject(1215, 1596.1047363281, -1632.4191894531, 13.082201004028, 0, 0, 0);
  90. CreateObject(1214, 1578.7094726563, -1618.7263183594, 12.296878814697, 0, 0, 0);
  91. CreateObject(1214, 1578.6079101563, -1621.6859130859, 12.296878814697, 0, 0, 0);
  92. CreateObject(1231, 1552.0064697266, -1633.8818359375, 15.276956558228, 0, 0, 0);
  93. CreateObject(1231, 1559.8184814453, -1633.8818359375, 15.276956558228, 0, 0, 0);
  94. CreateObject(1231, 1567.3282470703, -1633.8818359375, 15.276956558228, 0, 0, 0);
  95. CreateObject(1231, 1576.4306640625, -1633.8818359375, 15.276956558228, 0, 0, 0);
  96. CreateObject(1231, 1597.2308349609, -1633.8818359375, 15.449142456055, 0, 0, 0);
  97. CreateObject(1231, 1606.5296630859, -1633.8818359375, 15.449142456055, 0, 0, 0);
  98. CreateObject(640, 1605.0225830078, -1603.0007324219, 13.11519241333, 0, 0, 90);
  99. CreateObject(640, 1607.33984375, -1606.0446777344, 13.238651275635, 0, 0, 0);
  100. CreateObject(640, 1599.74609375, -1603, 13.11519241333, 0, 0, 90);
  101. CreateObject(640, 1607.33984375, -1611.2170410156, 13.238651275635, 0, 0, 0);
  102. CreateObject(640, 1607.33984375, -1616.599609375, 13.240845680237, 0, 0, 0);
  103. CreateObject(640, 1607.33984375, -1621.8741455078, 13.240845680237, 0, 0, 0);
  104. CreateObject(640, 1607.33984375, -1627.0874023438, 13.240845680237, 0, 0, 0);
  105. CreateObject(640, 1607.33984375, -1630.185546875, 13.240845680237, 0, 0, 0);
  106. CreateObject(640, 1604.3234863281, -1632.4814453125, 13.226362228394, 0, 0, 90);
  107. CreateObject(640, 1599.0028076172, -1632.4814453125, 13.226362228394, 0, 0, 90);
  108. CreateObject(1215, 1579.5654296875, -1620.337890625, 13.111198425293, 0, 0, 0);
  109. CreateObject(1215, 1596.76171875, -1602.9853515625, 12.991706848145, 0, 0, 0);
  110. CreateObject(970, 1604.7424316406, -1609.0013427734, 13.069066047668, 0, 0, 0);
  111. CreateObject(970, 1604.8670654297, -1620.7138671875, 13.025527954102, 0, 0, 0);
  112. CreateObject(970, 1600.56640625, -1609.0009765625, 13.069066047668, 0, 0, 0);
  113. CreateObject(970, 1604.8505859375, -1614.9912109375, 13.024413108826, 0, 0, 0);
  114. CreateObject(970, 1600.689453125, -1614.9912109375, 13.024413108826, 0, 0, 0);
  115. CreateObject(970, 1600.7935791016, -1620.7138671875, 13.025527954102, 0, 0, 0);
  116. CreateObject(970, 1600.7114257813, -1626.6440429688, 13.024645805359, 0, 0, 0);
  117. CreateObject(970, 1604.8720703125, -1626.6435546875, 13.025527954102, 0, 0, 0);
  118. CreateObject(1215, 1598.4047851563, -1608.9797363281, 13.009757041931, 0, 0, 0);
  119. CreateObject(1215, 1598.388671875, -1615.0054931641, 13.012530326843, 0, 0, 0);
  120. CreateObject(1215, 1598.5363769531, -1620.8549804688, 13.014117240906, 0, 0, 0);
  121. CreateObject(1215, 1598.451171875, -1626.6530761719, 13.013201713562, 0, 0, 0);
  122. CreateObject(638, 1555.8605957031, -1634.0159912109, 13.242115974426, 0, 0, 90);
  123. CreateObject(638, 1563.9672851563, -1634.0159912109, 13.253756523132, 0, 0, 90);
  124. CreateObject(638, 1572.0769042969, -1634.0159912109, 13.253645896912, 0, 0, 90);
  125. CreateObject(982, 1534.6396484375, -1650.8505859375, 13.230429649353, 0, 0, 0);
  126. CreateObject(983, 1537.5502929688, -1667.1391601563, 13.230429649353, 0, 0, 0);
  127. CreateObject(983, 1537.5502929688, -1678.365234375, 13.230429649353, 0, 0, 0);
  128. CreateObject(1360, 1536.126953125, -1663.2803955078, 13.31889629364, 0, 0, 90);
  129. CreateObject(1360, 1536.126953125, -1682.1003417969, 13.31889629364, 0, 0, 90);
  130. CreateObject(982, 1534.5859375, -1694.40234375, 13.230429649353, 0, 0, 0);
  131. CreateObject(984, 1534.5859375, -1713.6044921875, 13.183554649353, 0, 0, 0);
  132. CreateObject(1257, 1523.5853271484, -1680.4915771484, 13.826066970825, 0, 0, 180);
  133. CreateObject(1215, 1537.5074462891, -1663.6520996094, 13.111198425293, 0, 0, 0);
  134. CreateObject(1215, 1537.5048828125, -1681.8173828125, 13.111198425293, 0, 0, 0);
  135. CreateObject(1215, 1534.6247558594, -1637.8646240234, 13.089315414429, 0, 0, 0);
  136. CreateObject(1215, 1554.2553710938, -1678.6932373047, 27.959911346436, 0, 0, 0);
  137. CreateObject(1237, 1544.6918945313, -1630.7747802734, 12.373208045959, 0, 0, 90);
  138. CreateObject(1237, 1544.705078125, -1623.783203125, 12.396692276001, 0, 0, 90);
  139. CreateObject(9131, 1537.9462890625, -1674.755859375, 12.725805282593, 0, 0, 0);
  140. CreateObject(9131, 1537.9467773438, -1670.7108154297, 12.725805282593, 0, 0, 0);
  141. CreateObject(1232, 1537.998046875, -1670.7080078125, 11.381538391113, 0, 0, 0);
  142. CreateObject(1232, 1537.896484375, -1674.7587890625, 11.381538391113, 0, 0, 0);
  143. CreateObject(1232, 1548.072265625, -1672.4140625, 11.431964874268, 0, 0, 0);
  144. CreateObject(1232, 1547.9287109375, -1678.765625, 11.431964874268, 0, 0, 0);
  145. CreateObject(1232, 1552.34765625, -1672.4736328125, 13.20697593689, 0, 0, 0);
  146. CreateObject(1232, 1552.087890625, -1678.70703125, 13.181976318359, 0, 0, 0);
  147. CreateObject(9131, 1540.2778320313, -1617.1811523438, 13.534629821777, 0, 0, 0);
  148. CreateObject(9131, 1549.2047119141, -1602.9898681641, 13.511728286743, 0, 0, 0);
  149. CreateObject(9131, 1549.2041015625, -1617.1640625, 13.511728286743, 0, 0, 0);
  150. CreateObject(9131, 1540.2648925781, -1602.9810791016, 13.534629821777, 0, 0, 0);
  151. CreateObject(1232, 1549.2041015625, -1617.2021484375, 12.167461395264, 0, 0, 0);
  152. CreateObject(1232, 1540.2919921875, -1617.1982421875, 12.192461013794, 0, 0, 0);
  153. CreateObject(1232, 1549.3037109375, -1603.0263671875, 12.167461395264, 0, 0, 0);
  154. CreateObject(1232, 1540.2919921875, -1602.9697265625, 12.192461013794, 0, 0, 0);
  155. CreateObject(1238, 1548.0344238281, -1613.2487792969, 12.700992584229, 0, 0, 0);
  156. CreateObject(1238, 1548.5632324219, -1613.9755859375, 12.700992584229, 0, 0, 0);
  157. CreateObject(1238, 1549.0034179688, -1614.6311035156, 12.700992584229, 0, 0, 0);
  158. CreateObject(1238, 1549.3862304688, -1615.458984375, 12.700992584229, 0, 0, 0);
  159. CreateObject(1238, 1549.6062011719, -1616.3580322266, 12.700992584229, 0, 0, 0);
  160. CreateObject(1238, 1549.4162597656, -1603.6843261719, 12.700992584229, 0, 0, 0);
  161. CreateObject(1238, 1547.9825439453, -1606.7802734375, 12.700992584229, 0, 0, 0);
  162. CreateObject(1238, 1549.33203125, -1604.4108886719, 12.700992584229, 0, 0, 0);
  163. CreateObject(1238, 1549.2165527344, -1605.1247558594, 12.700992584229, 0, 0, 0);
  164. CreateObject(1238, 1548.9251708984, -1605.8468017578, 12.700992584229, 0, 0, 0);
  165. CreateObject(1238, 1548.5548095703, -1606.4106445313, 12.700992584229, 0, 0, 0);
  166. CreateObject(647, 1545.7635498047, -1614.9821777344, 14.214728355408, 0, 0, 0);
  167. CreateObject(647, 1545.7626953125, -1614.9814453125, 14.214728355408, 0, 0, 0);
  168. CreateObject(647, 1545.7626953125, -1614.9814453125, 14.214728355408, 0, 0, 0);
  169. CreateObject(647, 1545.658203125, -1604.6912841797, 14.214728355408, 0, 0, 314);
  170. CreateObject(647, 1545.658203125, -1604.6904296875, 14.214728355408, 0, 0, 313.99475097656);
  171. CreateObject(647, 1545.658203125, -1604.6904296875, 14.214728355408, 0, 0, 313.99475097656);
  172. CreateObject(640, 1540.302734375, -1609.6156005859, 13.079846382141, 0, 0, 0);
  173. CreateObject(2930, 1582.5690917969, -1637.8454589844, 15.027315139771, 0, 0, 90); //Fußgänger-Tor
  174. lspd[1]=CreateObject(971, 1588.7548828125, -1638.0883789063, 12.907890319824, 0, 0, 0); //Garagentor
  175. CreateObject(1411, 1601.1693115234, -1638.1418457031, 20.462251663208, 0, 0, 179.99450683594);
  176. CreateObject(1411, 1595.9104003906, -1638.1418457031, 20.462251663208, 0, 0, 179.99450683594);
  177. CreateObject(1411, 1590.6409912109, -1638.1418457031, 20.462251663208, 0, 0, 179.99450683594);
  178. CreateObject(1411, 1585.384765625, -1638.1418457031, 20.462251663208, 0, 0, 179.99450683594);
  179. CreateObject(1411, 1580.1184082031, -1638.1418457031, 20.462251663208, 0, 0, 179.99450683594);
  180. CreateObject(1411, 1575.0203857422, -1638.8046875, 20.462251663208, 0, 0, 191.99450683594);
  181. CreateObject(1411, 1603.5358886719, -1640.6829833984, 20.48842048645, 0, 0, 90);
  182. CreateObject(1411, 1603.5358886719, -1645.9438476563, 20.48842048645, 0, 0, 90);
  183. CreateObject(1411, 1603.5358886719, -1651.2041015625, 20.48842048645, 0, 0, 90);
  184. CreateObject(1411, 1603.5358886719, -1656.5004882813, 20.48842048645, 0, 0, 90);
  185. CreateObject(1411, 1603.5358886719, -1661.7944335938, 20.48842048645, 0, 0, 90);
  186. CreateObject(1411, 1603.5358886719, -1667.0791015625, 20.48842048645, 0, 0, 90);
  187. CreateObject(1411, 1603.5358886719, -1672.3211669922, 20.48842048645, 0, 0, 90);
  188. CreateObject(1411, 1603.5358886719, -1677.5734863281, 20.48842048645, 0, 0, 90);
  189. CreateObject(1411, 1603.5358886719, -1682.8653564453, 20.48842048645, 0, 0, 90);
  190. CreateObject(1411, 1603.5358886719, -1688.1492919922, 20.48842048645, 0, 0, 90);
  191. CreateObject(1411, 1603.5358886719, -1693.4313964844, 20.48842048645, 0, 0, 90);
  192. CreateObject(1411, 1603.5358886719, -1698.7329101563, 20.48842048645, 0, 0, 90);
  193. CreateObject(1411, 1603.5358886719, -1704.0303955078, 20.48842048645, 0, 0, 90);
  194. CreateObject(1411, 1603.5358886719, -1709.2805175781, 20.48842048645, 0, 0, 90);
  195. CreateObject(1411, 1603.5358886719, -1711.0322265625, 20.48842048645, 0, 0, 90);
  196. CreateObject(1411, 1601.1484375, -1713.3845214844, 20.48842048645, 0, 0, 0);
  197. CreateObject(1411, 1595.8955078125, -1713.3845214844, 20.48842048645, 0, 0, 0);
  198. CreateObject(1411, 1590.6328125, -1713.3845214844, 20.48842048645, 0, 0, 0);
  199. CreateObject(1411, 1585.3052978516, -1713.3537597656, 20.48842048645, 0, 0, 0);
  200. CreateObject(1411, 1580.0134277344, -1713.3845214844, 20.48842048645, 0, 0, 0);
  201. CreateObject(982, 1577.9545898438, -1701.7369384766, 28.078365325928, 0, 0, 0);
  202. CreateObject(982, 1577.9544677734, -1676.1140136719, 28.078365325928, 0, 0, 0);
  203. CreateObject(982, 1577.9270019531, -1650.5073242188, 28.085670471191, 0, 0, 0);
  204. CreateObject(982, 1565.0444335938, -1637.7144775391, 28.085670471191, 0, 0, 90);
  205. CreateObject(984, 1549.064453125, -1637.7158203125, 28.038795471191, 0, 0, 90);
  206. CreateObject(984, 1542.7133789063, -1644.1060791016, 28.038795471191, 0, 0, 0);
  207. CreateObject(983, 1545.9162597656, -1650.4765625, 28.085670471191, 0, 0, 90);
  208. CreateObject(983, 1550.7124023438, -1650.5256347656, 28.085670471191, 0, 0, 90);
  209. CreateObject(984, 1553.8795166016, -1656.9011230469, 28.032287597656, 0, 0, 0);
  210. CreateObject(983, 1553.9302978516, -1666.4837646484, 28.079162597656, 0, 0, 0);
  211. CreateObject(983, 1553.9267578125, -1669.6596679688, 28.079162597656, 0, 0, 0);
  212. CreateObject(983, 1554.6190185547, -1675.6638183594, 28.079006195068, 0, 0, 0);
  213. CreateObject(1215, 1534.6376953125, -1720.14453125, 13.111198425293, 0, 0, 0);
  214. CreateObject(984, 1553.9267578125, -1684.7835693359, 28.03226852417, 0, 0, 0);
  215. CreateObject(1215, 1554.25390625, -1672.4912109375, 27.959930419922, 0, 0, 0);
  216. CreateObject(983, 1553.9267578125, -1694.3717041016, 28.07914352417, 0, 0, 0);
  217. CreateObject(983, 1553.96875, -1694.37109375, 28.07914352417, 0, 0, 0);
  218. CreateObject(983, 1553.9267578125, -1697.5972900391, 28.07914352417, 0, 0, 0);
  219. CreateObject(983, 1550.7259521484, -1700.8140869141, 28.078365325928, 0, 0, 90);
  220. CreateObject(983, 1545.9360351563, -1700.8404541016, 28.078365325928, 0, 0, 90);
  221. CreateObject(984, 1542.7315673828, -1707.2275390625, 28.031490325928, 0, 0, 0);
  222. CreateObject(982, 1555.5603027344, -1713.6478271484, 28.078365325928, 0, 0, 90);
  223. CreateObject(983, 1574.7082519531, -1714.0324707031, 28.078365325928, 0, 0, 82);
  224. CreateObject(983, 1568.3487548828, -1713.6506347656, 28.078365325928, 0, 0, 90);
  225. CreateObject(792, 1535.2891845703, -1638.6284179688, 12.921869277954, 0, 0, 0);
  226. CreateObject(792, 1535.2891845703, -1648.4310302734, 12.921869277954, 0, 0, 0);
  227. CreateObject(792, 1535.2891845703, -1657.9443359375, 12.921869277954, 0, 0, 0);
  228. CreateObject(792, 1538.2412109375, -1677.5911865234, 12.921869277954, 0, 0, 0);
  229. CreateObject(792, 1538.2054443359, -1667.8840332031, 12.921869277954, 0, 0, 0);
  230. CreateObject(792, 1535.2891845703, -1687.1409912109, 12.921869277954, 0, 0, 0);
  231. CreateObject(792, 1535.2891845703, -1696.8846435547, 12.921869277954, 0, 0, 0);
  232. CreateObject(792, 1535.2891845703, -1706.3930664063, 12.921869277954, 0, 0, 0);
  233. CreateObject(792, 1535.3309326172, -1716.0687255859, 12.921869277954, 0, 0, 0);
  234. CreateObject(792, 1535.2891845703, -1616.7359619141, 12.921869277954, 0, 0, 0);
  235. CreateObject(792, 1535.4000244141, -1603.337890625, 12.921869277954, 0, 0, 0);
  236. CreateObject(792, 1542.1868896484, -1619.5278320313, 12.921869277954, 0, 0, 0);
  237. CreateObject(792, 1542.1868896484, -1634.6193847656, 12.921869277954, 0, 0, 0);
  238. CreateObject(792, 1523.9426269531, -1716.0687255859, 12.921869277954, 0, 0, 0);
  239. CreateObject(792, 1523.9426269531, -1706.3930664063, 12.921869277954, 0, 0, 0);
  240. CreateObject(792, 1523.9426269531, -1696.8846435547, 12.921869277954, 0, 0, 0);
  241. CreateObject(792, 1523.9426269531, -1687.1409912109, 12.921869277954, 0, 0, 0);
  242. CreateObject(792, 1523.9423828125, -1657.9443359375, 12.921869277954, 0, 0, 0);
  243. CreateObject(792, 1523.9423828125, -1648.4310302734, 12.921869277954, 0, 0, 0);
  244. CreateObject(792, 1523.9423828125, -1638.6284179688, 12.921869277954, 0, 0, 0);
  245. CreateObject(792, 1520.6207275391, -1677.5911865234, 12.921869277954, 0, 0, 0);
  246. CreateObject(792, 1520.6201171875, -1667.8840332031, 12.921869277954, 0, 0, 0);
  247. CreateObject(792, 1523.9423828125, -1616.7359619141, 12.921869277954, 0, 0, 0);
  248. CreateObject(792, 1523.9423828125, -1603.337890625, 12.921869277954, 0, 0, 0);
  249. CreateObject(792, 1523.9423828125, -1628.4665527344, 12.921869277954, 0, 0, 0);
  250.  
  251. //TEST AUTO
  252. AddStaticVehicle(411,2023.5651,1334.5559,10.1508,270.1441,123,1); // TEST AUTO SPAWN LV
  253.  
  254. return 1;
  255. }
  256.  
  257. public OnGameModeExit()
  258. {
  259. return 1;
  260. }
  261.  
  262. public OnPlayerRequestClass(playerid, classid)
  263. {
  264. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  265. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  266. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  267. return 1;
  268. }
  269.  
  270. public OnPlayerConnect(playerid)
  271. {
  272. new Spielerdatei[64];
  273. new name[MAX_PLAYER_NAME];
  274. GetPlayerName(playerid,name,sizeof(name));
  275. format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
  276. if(dini_Exists(Spielerdatei))
  277. {
  278. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login auf Shine to Night","Dein Account wurde gefunden. Gib bitte dein Passwort ein.","OK","Abbrechen");
  279. }
  280. else
  281. {
  282. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren auf Shine to Night","Gib bitte dein gewünschtes passwort ein.","OK","Abbrechen");
  283. }
  284. return 1;
  285. }
  286.  
  287. public OnPlayerDisconnect(playerid, reason)
  288. {
  289. if(GetPVarInt(playerid,"loggedin")==1)
  290. {
  291. SpielerSpeichern(playerid);
  292. }
  293. return 1;
  294. }
  295.  
  296. public OnPlayerSpawn(playerid)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnPlayerDeath(playerid, killerid, reason)
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnVehicleSpawn(vehicleid)
  307. {
  308. return 1;
  309. }
  310.  
  311. public OnVehicleDeath(vehicleid, killerid)
  312. {
  313. return 1;
  314. }
  315.  
  316. public OnPlayerText(playerid, text[])
  317. {
  318. return 1;
  319. }
  320.  
  321. ocmd:lspdauf(playerid,params[])
  322. {
  323. if(IsPlayerInRangeOfPoint(playerid,10,1547.1782226563, -1627.6697998047, 15.156204223633))
  324. {
  325. MoveObject(lspd[0],1547.1782226563, -1627.6697998047, 15.156204223633-10,5);
  326. return 1;
  327. }
  328. if(IsPlayerInRangeOfPoint(playerid,1588.7548828125, -1638.0883789063, 12.907890319824))
  329. {
  330. MoveObject(lspd[1],1588.7548828125, -1638.0883789063, 12.907890319824-10);
  331. return 1;
  332. }
  333. return SendClientMessage(playerid,ROT,"***ERROR: Du bist nicht in der nähe eines LSPD Tores!***");
  334. }
  335.  
  336. ocmd:lspdzu(playerid,params[])
  337. {
  338. if(IsPlayerInRangeOfPoint(playerid,10,1547.1782226563, -1627.6697998047, 15.156204223633))
  339. {
  340. MoveObject(lspd[0],1547.1782226563, -1627.6697998047, 15.156204223633,5);
  341. return 1;
  342. }
  343. if(IsPlayerInRangeOfPoint(playerid,1588.7548828125, -1638.0883789063, 12.907890319824))
  344. {
  345. MoveObject(lspd[1],1588.7548828125, -1638.0883789063, 12.907890319824);
  346. return 1;
  347. }
  348. return SendClientMessage(playerid,ROT,"***ERROR: Du bist nicht in der nähe eines LSPD Tores!***");
  349. }
  350.  
  351. ocmd:setadmin(playerid,params[])
  352. {
  353. if(!isPlayerAnAdmin(playerid,5))return SendClientMessage(playerid,ROT,"***ERROR: Du bist kein Supporter/Admin***");
  354. new pID, rank;
  355. if(sscanf(params,"ui",pID,rank))return SendClientMessage(playerid,ROT,"***ERROR: /setadmin [ID] [ADMINRANK]***");
  356. if(rank<1||rank>5) return SendClientMessage(playerid,ROT,"***ERROR: Bitte gebe einen gültigen Rank ein!***");
  357. SpielerSpeichern(playerid);
  358. SetPVarInt(pID,"Adminlevel",rank);
  359. return 1;
  360. }
  361.  
  362. ocmd:ban(playerid,params[])
  363. {
  364. if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"***ERROR: Du bist kein Supporter/Admin***");
  365. new pID, reason[128],string[128];
  366. if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,ROT,"***ERROR: /ban [ID] [GRUND]***");
  367. format(string,sizeof(string),"***AdmCmd: %s wurde von %s gebannt. Grund: %s",SpielerName(pID), SpielerName(playerid), reason);
  368. SendClientMessageToAll(ROT,string);
  369. SetPVarInt(pID,"Baned",1);
  370. Kick(pID);
  371. return 1;
  372. }
  373.  
  374. ocmd:kick(playerid, params[])
  375. {
  376. if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"***ERROR: Du bist kein Supporter/Admin***");
  377. new pID, reason[128],string[128];
  378. if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,ROT,"***ERROR: /kick [ID] [GRUND]***");
  379. format(string,sizeof(string),"***AdmCmd: %s wurde von %s gekickt. Grund: %s",SpielerName(pID), SpielerName(playerid), reason);
  380. SendClientMessageToAll(ROT,string);
  381. Kick(pID);
  382. return 1;
  383. }
  384.  
  385. public OnPlayerCommandText(playerid, cmdtext[])
  386. {
  387. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  388. {
  389. // Do something here
  390. return 1;
  391. }
  392. return 0;
  393. }
  394.  
  395. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  396. {
  397. return 1;
  398. }
  399.  
  400. public OnPlayerExitVehicle(playerid, vehicleid)
  401. {
  402. return 1;
  403. }
  404.  
  405. public OnPlayerStateChange(playerid, newstate, oldstate)
  406. {
  407. return 1;
  408. }
  409.  
  410. public OnPlayerEnterCheckpoint(playerid)
  411. {
  412. return 1;
  413. }
  414.  
  415. public OnPlayerLeaveCheckpoint(playerid)
  416. {
  417. return 1;
  418. }
  419.  
  420. public OnPlayerEnterRaceCheckpoint(playerid)
  421. {
  422. return 1;
  423. }
  424.  
  425. public OnPlayerLeaveRaceCheckpoint(playerid)
  426. {
  427. return 1;
  428. }
  429.  
  430. public OnRconCommand(cmd[])
  431. {
  432. return 1;
  433. }
  434.  
  435. public OnPlayerRequestSpawn(playerid)
  436. {
  437. return 1;
  438. }
  439.  
  440. public OnObjectMoved(objectid)
  441. {
  442. return 1;
  443. }
  444.  
  445. public OnPlayerObjectMoved(playerid, objectid)
  446. {
  447. return 1;
  448. }
  449.  
  450. public OnPlayerPickUpPickup(playerid, pickupid)
  451. {
  452. return 1;
  453. }
  454.  
  455. public OnVehicleMod(playerid, vehicleid, componentid)
  456. {
  457. return 1;
  458. }
  459.  
  460. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  461. {
  462. return 1;
  463. }
  464.  
  465. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  466. {
  467. return 1;
  468. }
  469.  
  470. public OnPlayerSelectedMenuRow(playerid, row)
  471. {
  472. return 1;
  473. }
  474.  
  475. public OnPlayerExitedMenu(playerid)
  476. {
  477. return 1;
  478. }
  479.  
  480. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  481. {
  482. return 1;
  483. }
  484.  
  485. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  486. {
  487. return 1;
  488. }
  489.  
  490. public OnRconLoginAttempt(ip[], password[], success)
  491. {
  492. return 1;
  493. }
  494.  
  495. public OnPlayerUpdate(playerid)
  496. {
  497. return 1;
  498. }
  499.  
  500. public OnPlayerStreamIn(playerid, forplayerid)
  501. {
  502. return 1;
  503. }
  504.  
  505. public OnPlayerStreamOut(playerid, forplayerid)
  506. {
  507. return 1;
  508. }
  509.  
  510. public OnVehicleStreamIn(vehicleid, forplayerid)
  511. {
  512. return 1;
  513. }
  514.  
  515. public OnVehicleStreamOut(vehicleid, forplayerid)
  516. {
  517. return 1;
  518. }
  519.  
  520. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  521. {
  522. if(dialogid==DIALOG_LOGIN)
  523. {
  524. if(response==0)
  525. {
  526. SendClientMessage(playerid,0xCD0000FF,"Du wurdest gekickt, da du den Vorgang abgebrochen hast.");
  527. Kick(playerid);
  528. return 1;
  529. }
  530. if(response == 1)
  531. {
  532. if(!strlen(inputtext))
  533. {
  534. SendClientMessage(playerid,0xCD0000FF,"Das Passwort war nicht lang genug!");
  535. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login auf Shine to Night","Dein Account wurde gefunden. Gib bitte dein Passwort ein.","OK","Abbrechen");
  536. return 1;
  537. }
  538. else
  539. {
  540. Login(playerid,inputtext);
  541. return 1;
  542. }
  543. }
  544.  
  545. }
  546. if(dialogid==DIALOG_REGISTER)
  547. {
  548. if(response==0)
  549. {
  550. SendClientMessage(playerid,0xCD0000FF,"Du wurdest gekickt, da du den Vorgang abgebrochen hast.");
  551. Kick(playerid);
  552. return 1;
  553. }
  554. if(response == 1)
  555. {
  556. if(!strlen(inputtext))
  557. {
  558. SendClientMessage(playerid,0xCD0000FF,"Das Passwort war nicht lang genug!");
  559. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren auf Shine to Night","Gib bitte dein gewünschtes Passwort ein.","OK","Abbrechen");
  560. return 1;
  561. }
  562. else
  563. {
  564. Register(playerid,inputtext);
  565. return 1;
  566. }
  567. }
  568.  
  569. }
  570. return 1;
  571. }
  572.  
  573. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  574. {
  575. return 1;
  576. }
  577.  
  578. stock Register(playerid,key[])
  579. {
  580. new Spielerdatei[64];
  581. new name[MAX_PLAYER_NAME];
  582. GetPlayerName(playerid,name,sizeof(name));
  583. format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
  584. dini_Create(Spielerdatei);
  585. dini_Set(Spielerdatei,"Passwort",key);
  586. SendClientMessage(playerid,0xCD0000FF,"***Du hast dich erfolgreich registriert!***");
  587. SetPlayerScore(playerid,0);
  588. return 1;
  589. }
  590.  
  591. stock Login(playerid,key[])
  592. {
  593. new Spielerdatei[64];
  594. new name[MAX_PLAYER_NAME];
  595. GetPlayerName(playerid,name,sizeof(name));
  596. format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
  597. if(!strcmp(key,dini_Get(Spielerdatei,"Passwort"),false))
  598. {
  599. LoadAccount(playerid);
  600. SendClientMessage(playerid,0x00E1FFFF,"Erfolgreich eingeloggt!");
  601. return 1;
  602. }
  603. else
  604. {
  605. SendClientMessage(playerid,0xCD0000FF,"***Falsches Passwort eingegeben***");
  606. Kick(playerid);
  607. return 1;
  608. }
  609. }
  610.  
  611. stock LoadAccount(playerid)
  612. {
  613. new Spielerdatei[64];
  614. new name[MAX_PLAYER_NAME];
  615. GetPlayerName(playerid,name,sizeof(name));
  616. format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
  617. SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
  618. GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
  619. SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));
  620. SetPVarInt(playerid,"Fraktion",dini_Int(Spielerdatei,"Fraktion"));
  621. SetPVarInt(playerid,"Baned",dini_Int(Spielerdatei,"Baned"));
  622. SetPVarInt(playerid,"loggedin",1);
  623. //SpielerInfo[playerid][Adminlevel]=dini_Int(Spielerdatei,"Adminlevel");
  624. //SpielerInfo[playerid][Fraktion]=dini_Int(Spielerdatei,"Fraktion");
  625. if(GetPVarInt(playerid,"Baned")==1)
  626. {
  627. SendClientMessage(playerid,ROT,"***ERROR: Du bist vom Server gebannt, melde dich bei einem Supporter/Admin!***");
  628. Kick(playerid);
  629. }
  630. return 1;
  631. }
  632.  
  633. stock SpielerSpeichern(playerid)
  634. {
  635. new Spielerdatei[64];
  636. new name[MAX_PLAYER_NAME];
  637. GetPlayerName(playerid,name,sizeof(name));
  638. format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
  639. dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
  640. dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
  641. dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
  642. dini_IntSet(Spielerdatei,"Fraktion",GetPVarInt(playerid,"Fraktion"));
  643. dini_IntSet(Spielerdatei,"Baned",GetPVarInt(playerid,"Baned"));
  644. return 1;
  645. }
  646.  
  647. stock isPlayerAnAdmin(playerid,rang)
  648. {
  649. if(GetPVarInt(playerid,"Adminlevel")>=rang)return 1;
  650. return 0;
  651. }
  652.  
  653. stock SpielerName(playerid)
  654. {
  655. new name[MAX_PLAYER_NAME];
  656. GetPlayerName(playerid,name,sizeof(name));
  657. return name;
  658. }
  659.  
  660. stock sscanf(string[], format[], {Float,_}:...)
  661. {
  662. #if defined isnull
  663. if (isnull(string))
  664. #else
  665. if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  666. #endif
  667. {
  668. return format[0];
  669. }
  670. #pragma tabsize 4
  671. new
  672. formatPos = 0,
  673. stringPos = 0,
  674. paramPos = 2,
  675. paramCount = numargs(),
  676. delim = ' ';
  677. while (string[stringPos] && string[stringPos] <= ' ')
  678. {
  679. stringPos++;
  680. }
  681. while (paramPos < paramCount && string[stringPos])
  682. {
  683. switch (format[formatPos++])
  684. {
  685. case '\0':
  686. {
  687. return 0;
  688. }
  689. case 'i', 'd':
  690. {
  691. new
  692. neg = 1,
  693. num = 0,
  694. ch = string[stringPos];
  695. if (ch == '-')
  696. {
  697. neg = -1;
  698. ch = string[++stringPos];
  699. }
  700. do
  701. {
  702. stringPos++;
  703. if ('0' <= ch <= '9')
  704. {
  705. num = (num * 10) + (ch - '0');
  706. }
  707. else
  708. {
  709. return -1;
  710. }
  711. }
  712. while ((ch = string[stringPos]) > ' ' && ch != delim);
  713. setarg(paramPos, 0, num * neg);
  714. }
  715. case 'h', 'x':
  716. {
  717. new
  718. num = 0,
  719. ch = string[stringPos];
  720. do
  721. {
  722. stringPos++;
  723. switch (ch)
  724. {
  725. case 'x', 'X':
  726. {
  727. num = 0;
  728. continue;
  729. }
  730. case '0' .. '9':
  731. {
  732. num = (num << 4) | (ch - '0');
  733. }
  734. case 'a' .. 'f':
  735. {
  736. num = (num << 4) | (ch - ('a' - 10));
  737. }
  738. case 'A' .. 'F':
  739. {
  740. num = (num << 4) | (ch - ('A' - 10));
  741. }
  742. default:
  743. {
  744. return -1;
  745. }
  746. }
  747. }
  748. while ((ch = string[stringPos]) > ' ' && ch != delim);
  749. setarg(paramPos, 0, num);
  750. }
  751. case 'c':
  752. {
  753. setarg(paramPos, 0, string[stringPos++]);
  754. }
  755. case 'f':
  756. {
  757.  
  758. new changestr[16], changepos = 0, strpos = stringPos;
  759. while(changepos < 16 && string[strpos] && string[strpos] != delim)
  760. {
  761. changestr[changepos++] = string[strpos++];
  762. }
  763. changestr[changepos] = '\0';
  764. setarg(paramPos,0,_:floatstr(changestr));
  765. }
  766. case 'p':
  767. {
  768. delim = format[formatPos++];
  769. continue;
  770. }
  771. case '\'':
  772. {
  773. new
  774. end = formatPos - 1,
  775. ch;
  776. while ((ch = format[++end]) && ch != '\'') {}
  777. if (!ch)
  778. {
  779. return -1;
  780. }
  781. format[end] = '\0';
  782. if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  783. {
  784. if (format[end + 1])
  785. {
  786. return -1;
  787. }
  788. return 0;
  789. }
  790. format[end] = '\'';
  791. stringPos = ch + (end - formatPos);
  792. formatPos = end + 1;
  793. }
  794. case 'u':
  795. {
  796. new
  797. end = stringPos - 1,
  798. id = 0,
  799. bool:num = true,
  800. ch;
  801. while ((ch = string[++end]) && ch != delim)
  802. {
  803. if (num)
  804. {
  805. if ('0' <= ch <= '9')
  806. {
  807. id = (id * 10) + (ch - '0');
  808. }
  809. else
  810. {
  811. num = false;
  812. }
  813. }
  814. }
  815. if (num && IsPlayerConnected(id))
  816. {
  817. setarg(paramPos, 0, id);
  818. }
  819. else
  820. {
  821. #if !defined foreach
  822. #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  823. #define __SSCANF_FOREACH__
  824. #endif
  825. string[end] = '\0';
  826. num = false;
  827. new
  828. name[MAX_PLAYER_NAME];
  829. id = end - stringPos;
  830. foreach (Player, playerid)
  831. {
  832. GetPlayerName(playerid, name, sizeof (name));
  833. if (!strcmp(name, string[stringPos], true, id))
  834. {
  835. setarg(paramPos, 0, playerid);
  836. num = true;
  837. break;
  838. }
  839. }
  840. if (!num)
  841. {
  842. setarg(paramPos, 0, INVALID_PLAYER_ID);
  843. }
  844. string[end] = ch;
  845. #if defined __SSCANF_FOREACH__
  846. #undef foreach
  847. #undef __SSCANF_FOREACH__
  848. #endif
  849. }
  850. stringPos = end;
  851. }
  852. case 's', 'z':
  853. {
  854. new
  855. i = 0,
  856. ch;
  857. if (format[formatPos])
  858. {
  859. while ((ch = string[stringPos++]) && ch != delim)
  860. {
  861. setarg(paramPos, i++, ch);
  862. }
  863. if (!i)
  864. {
  865. return -1;
  866. }
  867. }
  868. else
  869. {
  870. while ((ch = string[stringPos++]))
  871. {
  872. setarg(paramPos, i++, ch);
  873. }
  874. }
  875. stringPos--;
  876. setarg(paramPos, i, '\0');
  877. }
  878. default:
  879. {
  880. continue;
  881. }
  882. }
  883. while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  884. {
  885. stringPos++;
  886. }
  887. while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  888. {
  889. stringPos++;
  890. }
  891. paramPos++;
  892. }
  893. do
  894. {
  895. if ((delim = format[formatPos++]) > ' ')
  896. {
  897. if (delim == '\'')
  898. {
  899. while ((delim = format[formatPos++]) && delim != '\'') {}
  900. }
  901. else if (delim != 'z')
  902. {
  903. return delim;
  904. }
  905. }
  906. }
  907. while (delim > ' ');
  908. return 0;
  909. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement