Guest User

Sistema de GPS v1.1

a guest
Mar 12th, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.09 KB | None | 0 0
  1. // Sistema de GPS feito por qSmoke, skype> pagotto51. usufrua como quiser, não exijo créditos.
  2. #define FILTERSCRIPT
  3. #include <a_samp>
  4. #if defined FILTERSCRIPT
  5. #define GPS_SYSTEM 0
  6.  
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print("O Filterscript de GPS foi carregado com sucesso");
  11. return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16. return 1;
  17. }
  18.  
  19. public OnPlayerConnect(playerid)
  20. {
  21. return 1;
  22. }
  23.  
  24. public OnPlayerDisconnect(playerid, reason)
  25. {
  26. return 1;
  27. }
  28. public OnPlayerCommandText(playerid, cmdtext[])
  29. {
  30. if(strcmp(cmdtext,"/gps",true) == 0)
  31. {
  32. if(IsPlayerConnected(playerid))
  33. {
  34. ShowPlayerDialog(playerid,GPS_SYSTEM,DIALOG_STYLE_LIST,"{FFC400}- {FFFFFF}Global Position System","Prefeitura.\nDepartamento Policial\nAlhambra\nEstação Unit\n24/7\nPosto Sul\nPosto Norte\nPizzaria Stacked\nAcademia\nBinco\nAeroporto de Los Santos\nPuteiro PigPen\nMotel Jefferson\nPark Gleen\nPista de Skate\nHospital All Saints\nHospital County General\nAmmu Nation\nShopping Center\n{FFC400}Desligar GPS","Selecionar","Fechar");
  35. return 1;
  36. }
  37. }
  38. return 0;
  39. }
  40. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  41. {
  42. // GPS
  43. if(dialogid == GPS_SYSTEM)
  44. {
  45. if(response)
  46. {
  47. if(listitem == 0)
  48. {
  49. SetPlayerCheckpoint(playerid,1481.3762,-1735.0176,13.1046,7.0);
  50. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Prefeitura foi marcada no mapa.");
  51. return 1;
  52. }
  53. if(listitem == 1)
  54. {
  55. SetPlayerCheckpoint(playerid,1535.9352,-1673.6252,13.1050,7.0);
  56. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Departamento de Polícia no mapa.");
  57. }
  58. if(listitem == 2)
  59. {
  60. SetPlayerCheckpoint(playerid,1827.3373,-1682.8510,13.1834,7.0);
  61. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Alhambra foi marcada no mapa.");
  62. }
  63. if(listitem == 3)
  64. {
  65. SetPlayerCheckpoint(playerid,1713.4973,-1857.9926,13.2941,7.0);
  66. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Estação Unit foi marcada no mapa.");
  67. }
  68. if(listitem == 4)
  69. {
  70. SetPlayerCheckpoint(playerid,1830.5277,-1842.4434,13.3006,7.0);
  71. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A 24/7 foi marcada no mapa.");
  72. return 1;
  73. }
  74. if(listitem == 5)
  75. {
  76. SetPlayerCheckpoint(playerid,1944.2931,-1766.9156,13.1062,7.0);
  77. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Posto Sul foi marcado no mapa.");
  78. }
  79. if(listitem == 6)
  80. {
  81. SetPlayerCheckpoint(playerid,1007.1274,-955.4174,41.4625,7.0);
  82. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Posto Norte foi marcado no mapa.");
  83. }
  84. if(listitem == 7)
  85. {
  86. SetPlayerCheckpoint(playerid,2086.6018,-1796.9097,13.1036,7.0);
  87. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Pizzaria Stacked foi marcada no mapa.");
  88. }
  89. if(listitem == 8)
  90. {
  91. SetPlayerCheckpoint(playerid,2223.2188,-1725.7490,13.1978,7.0);
  92. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Academia foi marcada no mapa.");
  93. return 1;
  94. }
  95. if(listitem == 9)
  96. {
  97. SetPlayerCheckpoint(playerid,2245.2305,-1660.8929,15.0889,7.0);
  98. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Binco foi marcada no mapa.");
  99. }
  100. if(listitem == 10)
  101. {
  102. SetPlayerCheckpoint(playerid,1961.8196,-2193.7415,13.2670,7.0);
  103. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Aeroporto de Los Santos foi marcado no mapa.");
  104. }
  105. if(listitem == 11)
  106. {
  107. SetPlayerCheckpoint(playerid,2420.4238,-1237.1250,24.0127,7.0);
  108. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O puteiro PigPen foi marcado no mapa.");
  109. }
  110. if(listitem == 12)
  111. {
  112. SetPlayerCheckpoint(playerid,2221.1968,-1144.8896,25.5154,7.0);
  113. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Motel Jefferson foi marcado no mapa.");
  114. return 1;
  115. }
  116. if(listitem == 13)
  117. {
  118. SetPlayerCheckpoint(playerid,1904.6732,-1179.5765,23.0765,7.0);
  119. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Park Gleen foi marcado no mapa.");
  120. }
  121. if(listitem == 14)
  122. {
  123. SetPlayerCheckpoint(playerid,1899.2813,-1401.5333,10.1659,7.0);
  124. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Pista de Skate foi marcada no mapa.");
  125. }
  126. if(listitem == 15)
  127. {
  128. SetPlayerCheckpoint(playerid,1190.8040,-1328.0825,13.2014,7.0);
  129. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Hospital All Saints foi marcado no mapa.");
  130. }
  131. if(listitem == 16)
  132. {
  133. SetPlayerCheckpoint(playerid,2016.8428,-1432.0167,13.2625,7.0);
  134. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Hospital County General foi marcado no mapa.");
  135. return 1;
  136. }
  137. if(listitem == 17)
  138. {
  139. SetPlayerCheckpoint(playerid,1362.2203,-1278.0447,13.1828,7.0);
  140. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Ammu Nation foi marcada no mapa.");
  141. }
  142. if(listitem == 18)
  143. {
  144. SetPlayerCheckpoint(playerid,1122.7183,-1462.1166,15.5171,7.0);
  145. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Shopping Center foi marcado no mapa.");
  146. }
  147. if(listitem == 19)
  148. {
  149. DisablePlayerCheckpoint(playerid);
  150. SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O GPS foi desativado!.");
  151. }
  152. }
  153. }
  154. return 1;
  155. }
  156. public OnPlayerEnterCheckpoint(playerid)
  157. {
  158. DisablePlayerCheckpoint(playerid);
  159. return 1;
  160. }
  161. #endif
Advertisement
Add Comment
Please, Sign In to add comment