Guest User

Untitled

a guest
Mar 15th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. // - GPS Sistemi
  2. // - Versiyon: 1.0
  3.  
  4. // - Kodlayan: Victory
  5. // - Kodlama Başlangıç: 15.03.2016 - 11.50
  6. // - Kodlama Bitiş: 15.03.2016 - 12.30
  7.  
  8. // - İyi Kullanımlar!
  9.  
  10. // - Includeler
  11. #include <a_samp> // Include by SA-MP Team
  12. #include <zcmd> // Include by Zeex
  13.  
  14. // - Defineler
  15. #define FILTERSCRIPT
  16.  
  17. #define DIALOG_GPS 0
  18.  
  19.  
  20. public OnFilterScriptInit()
  21. {
  22. print("----------------------------\n");
  23. print("# GPS Başarıyla Yüklendi! #");
  24. print("----------------------------\n");
  25. return 1;
  26. }
  27.  
  28. public OnFilterScriptExit()
  29. {
  30. print("----------------------------\n");
  31. print("# GPS Kapatıldı! #");
  32. print("----------------------------\n");
  33. return 1;
  34. }
  35.  
  36. CMD:gps(playerid,params[])
  37. {
  38. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF0000}Hata: {FFFFFF}Araç içerisinde değilsiniz!");
  39. if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "{FF0000}Hata: {FFFFFF}Sürücü koltuğunda değilsiniz!");
  40. ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "{00FF00}GPS", "LSPD\nLSMD\nVerona Mall\nLos Santos Airport\nTrain Station", "Seç", "Kapat");
  41. return 1;
  42. }
  43.  
  44. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  45. {
  46. if(dialogid == DIALOG_GPS)
  47. {
  48. if(response == 1)
  49. {
  50. if(listitem == 0)
  51. {
  52. SetPlayerCheckpoint(playerid, 1535.2206, -1675.7361, 13.3828, 3.0);
  53. SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}LSPD haritada işaretlendi.");
  54. return 1;
  55. }
  56. if(listitem == 1)
  57. {
  58. SetPlayerCheckpoint(playerid, 1187.9644, -1323.1768, 13.5667, 3.0);
  59. SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}LSMD haritada işaretlendi.");
  60. return 1;
  61. }
  62. if(listitem == 2)
  63. {
  64. SetPlayerCheckpoint(playerid, 1128.0917, -1434.0475, 15.7969, 3.0);
  65. SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Verona Mall haritada işaretlendi.");
  66. return 1;
  67. }
  68. if(listitem == 3)
  69. {
  70. SetPlayerCheckpoint(playerid, 1961.9830, -2184.0830, 13.5469, 3.0);
  71. SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Los Santos Airport haritada işaretlendi.");
  72. return 1;
  73. }
  74. if(listitem == 4)
  75. {
  76. SetPlayerCheckpoint(playerid, 1742.9219, -1860.1101, 13.5791, 3.0);
  77. SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Train Station haritada işaretlendi.");
  78. return 1;
  79. }
  80. }
  81. }
  82. return 0;
  83. }
  84.  
  85. public OnPlayerEnterCheckpoint(playerid)
  86. {
  87. DisablePlayerCheckpoint(playerid);
  88. SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Seçtiğiniz yere ulaştınız!");
  89. return 1;
  90. }
Advertisement
Add Comment
Please, Sign In to add comment