Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // - GPS Sistemi
- // - Versiyon: 1.0
- // - Kodlayan: Victory
- // - Kodlama Başlangıç: 15.03.2016 - 11.50
- // - Kodlama Bitiş: 15.03.2016 - 12.30
- // - İyi Kullanımlar!
- // - Includeler
- #include <a_samp> // Include by SA-MP Team
- #include <zcmd> // Include by Zeex
- // - Defineler
- #define FILTERSCRIPT
- #define DIALOG_GPS 0
- public OnFilterScriptInit()
- {
- print("----------------------------\n");
- print("# GPS Başarıyla Yüklendi! #");
- print("----------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("----------------------------\n");
- print("# GPS Kapatıldı! #");
- print("----------------------------\n");
- return 1;
- }
- CMD:gps(playerid,params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF0000}Hata: {FFFFFF}Araç içerisinde değilsiniz!");
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "{FF0000}Hata: {FFFFFF}Sürücü koltuğunda değilsiniz!");
- ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "{00FF00}GPS", "LSPD\nLSMD\nVerona Mall\nLos Santos Airport\nTrain Station", "Seç", "Kapat");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_GPS)
- {
- if(response == 1)
- {
- if(listitem == 0)
- {
- SetPlayerCheckpoint(playerid, 1535.2206, -1675.7361, 13.3828, 3.0);
- SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}LSPD haritada işaretlendi.");
- return 1;
- }
- if(listitem == 1)
- {
- SetPlayerCheckpoint(playerid, 1187.9644, -1323.1768, 13.5667, 3.0);
- SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}LSMD haritada işaretlendi.");
- return 1;
- }
- if(listitem == 2)
- {
- SetPlayerCheckpoint(playerid, 1128.0917, -1434.0475, 15.7969, 3.0);
- SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Verona Mall haritada işaretlendi.");
- return 1;
- }
- if(listitem == 3)
- {
- SetPlayerCheckpoint(playerid, 1961.9830, -2184.0830, 13.5469, 3.0);
- SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Los Santos Airport haritada işaretlendi.");
- return 1;
- }
- if(listitem == 4)
- {
- SetPlayerCheckpoint(playerid, 1742.9219, -1860.1101, 13.5791, 3.0);
- SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Train Station haritada işaretlendi.");
- return 1;
- }
- }
- }
- return 0;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, -1, "{00FF00}Bilgi: {FFFFFF}Seçtiğiniz yere ulaştınız!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment