Код:
/*
***Credits***
SAMP Community for <a_samp>
PDS2012 for scripting
Zeex for zcmd &
you for using it
***Social Network***
FORUM: http://forum.sa-mp.com/member.php?u=178953
SKYPE: patricksubang11
***Attention***
Please dont remove credits
*/
#include <a_samp>
#include <zcmd>/*Credits To Zeex*/
//
#define FILTERSCRIPT
#define DIALOG_GPS 1001 //dialog define
#define cversion "1.0" //current version
public OnFilterScriptInit()
{
print("\n--------------------------------------");
printf("Current Version: %s", cversion);
print(" GPS System By: PDS2012 Loaded. ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
print("\n----------------------------------");
print(" GPS System By: PDS2012 UnLoaded. ");
print("----------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
COMMAND:timvieclam(playerid)
{
ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST,"Global Positioning System","Tham tu (LS)\nTham tu (SF)\nChe Tao Sung 1 (SF)\nChe Tao Sung 2 (SF)\nDai ly Ma Tuy (LS)\nDai ly Ma Tuy (SF)\nVe si (LS)\nVe si (SF)\nVe Si\nLuat Su (SF)\nTaxi (LS)\nTaxi (SF)\nSua xe (Mark)\nSua Xe (SF)\nGai Diem (Mark)\nVo Su (Mark)\nVo Su (Mark)2\nBuon Ma Tuy\Ve si 2(Co the dung diem di tat o Benh Vien)\nTho Thu Cong (LS)\nBoi Ban (Mark)\nTrucker (SF)\nPizza Boy (SF) ","Choose","Close");
return 1;
}
COMMAND:gpsoff(playerid)
{
DisablePlayerRaceCheckpoint(playerid);
SendClientMessage(playerid, -1,"You have succesfully turned off your gps");
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
GameTextForPlayer(playerid, "You Have Arrived At~n~Your Destination",3000, 3);
DisablePlayerRaceCheckpoint(playerid);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_GPS)
{
if(response)
{
if(listitem == 0)
{
SetPlayerRaceCheckpoint(playerid, 2,251.99, 117.36, 1003.22, 0.0,0.0,0.0, 3.0);//Job Tham tu LS
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 1)
{
SetPlayerRaceCheckpoint(playerid, 2, 301.042633, 178.700408, 1007.171875, 0.0,0.0,0.0, 3.0);//Job Tham tu SF
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 2)
{
SetPlayerRaceCheckpoint(playerid, 2, 1366.4325,-1275.2096,13.5469, 0.0,0.0,0.0, 3.0);//Che tao sung 1
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 3)
{
SetPlayerRaceCheckpoint(playerid, 2, -2623.333984, 209.235931, 4.684767, 0.0,0.0,0.0, 3.0);//Che tao sung 2
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 4)
{
SetPlayerRaceCheckpoint(playerid, 2, 2166.3772,-1675.3829,15.0859, 0.0,0.0,0.0, 3.0);///Buon ma tuy LS
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 5)
{
SetPlayerRaceCheckpoint(playerid, 2, -2089.344970, 87.800231, 35.320312, 0.0,0.0,0.0, 3.0);//Buon ma tuy SF
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 6)
{
SetPlayerRaceCheckpoint(playerid, 2, 2226.1716,-1718.1792,13.5165, 0.0,0.0,0.0, 3.0);//Ve si LS
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 7)
{
SetPlayerRaceCheckpoint(playerid, 2, -2269.256103, -158.054321, 35.320312, 0.0,0.0,0.0, 3.0);//Ve si SF
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 11)
{
SetPlayerRaceCheckpoint(playerid, 2, 1224.13, 267.98, 19.55, 0.0,0.0,0.0, 3.0);//Ve Si
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 8)
{
SetPlayerRaceCheckpoint(playerid, 2, 1380.8955,-1088.6808,27.3844, 0.0,0.0,0.0, 3.0);//Luat Su
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 9)
{
SetPlayerRaceCheckpoint(playerid, 2, 1741.6218,-1863.6486,13.5748, 0.0,0.0,0.0, 3.0);//Taxi LS
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 10)
{
SetPlayerRaceCheckpoint(playerid, 2, -1981.144775, 133.063293, 27.687500, 0.0,0.0,0.0, 3.0);//Taxi SF
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 12)
{
SetPlayerRaceCheckpoint(playerid, 2, 161.92, -25.70, 1.57, 0.0,0.0,0.0, 3.0);//Sua Xe mark
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 13)
{
SetPlayerRaceCheckpoint(playerid, 2, -2032.601928, 143.866592, 28.835937, 0.0,0.0,0.0, 3.0);//Sua Xe SF
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 14)
{
SetPlayerRaceCheckpoint(playerid, 2, 1215.1304,-11.8431,1000.9219, 0.0,0.0,0.0, 3.0);//Gai Diem @@!
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 15)
{
SetPlayerRaceCheckpoint(playerid, 2, 766.0804,14.5133,1000.7004, 0.0,0.0,0.0, 3.0);//Vo su Mark
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 16)
{
SetPlayerRaceCheckpoint(playerid, 2, 758.98,-60.32,1000.78, 0.0,0.0,0.0, 3.0);//Vo su Mark
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 17)
{
SetPlayerRaceCheckpoint(playerid, 2, 2354.2808,-1169.2959,28.0066, 0.0,0.0,0.0, 3.0);//Buon Ma Tuy
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 18)
{
SetPlayerRaceCheckpoint(playerid, 2, 1099.73,-1504.67,15.800, 0.0,0.0,0.0, 3.0);//Ve si
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 19)
{
SetPlayerRaceCheckpoint(playerid, 2, 2195.8335,-1973.0638,13.5589, 0.0,0.0,0.0, 3.0);//Tho thu cong
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 20)
{
SetPlayerRaceCheckpoint(playerid, 2, 502.6696,-11.6603,1000.6797, 0.0,0.0,0.0, 3.0);//Boi ban
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 21) {
SetPlayerRaceCheckpoint(playerid, 2, 502.6696,-11.6603,1000.6797, 0.0,0.0,0.0, 3.0);//Truck SF
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
if(listitem == 22)
{
SetPlayerRaceCheckpoint(playerid, 2, -1720.962646, 1364.456176, 7.187500, 0.0,0.0,0.0, 3.0);//Pizza Boy SF
SendClientMessage(playerid, -1, "Di theo diem do tren ban do");
}
}
}
return 1;
}
\V is invalid. You forgot the "n" before.