Beispiel:
" Also ein Fenster das ich in der Mitte des Bildschirmes öffnet, wo mann dann den Punkt auswählen kann wo man hin möchte.
Das jetzige navi mit Pawn code ;
if(strcmp(cmd, "/navi", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_GREEN,"________________________ Navigationssystem ________________________");
SendClientMessage(playerid, COLOR_WHITE,"/navi [ delete, lspd, sfpd, oamt, bsn, bss, bankls, ammunationls]");
SendClientMessage(playerid, COLOR_WHITE,"/navi [ postls, zivispawn, matspointsf, matspointlv, drogenpunkt gangautohaus ]");
SendClientMessage(playerid, COLOR_WHITE,"/navi [ news, müllkippe, pizzaboy, straßenreinigung, angelsteg, 24/7 ]");
SendClientMessage(playerid, COLOR_WHITE,"/navi [ arbeitsamt, truckdepot, substandard airportls, airportsf, airportlv ]");
SendClientMessage(playerid, COLOR_WHITE,"/navi [ alhambra, mountchilliad autohausls, autohaussf, gangjail, ballasammu]");
SendClientMessage(playerid, COLOR_WHITE,"/navi [ spezialautohaus , suncars, rentcars, rentbikes, fahrschule, automatischefs ]");
SendClientMessage(playerid, COLOR_WHITE,"");
SendClientMessage(playerid, COLOR_WHITE,"Info: Wenn du Lizenzen brauchst benutze /fspreise");
return 1;
}
if(strcmp(x_nr,"delete",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Zielort gelöscht.");
}
}
else if(strcmp(x_nr,"lspd",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Los Santos Police Department. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1544.9468,-1675.7754,13.5594, 3.0);
}
}
else if(strcmp(x_nr,"gangjail",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Gangjail. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1653.9554,-2238.7817,31.0208, 3.0);
}
}
else if(strcmp(x_nr,"arbeitsamt",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Arbeitsamt. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1481.6713,-1749.9485,15.4453, 3.0);
}
}
else if(strcmp(x_nr,"aiportlv",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Las Venturas Airport. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1709.1516,1606.4161,9.5865, 3.0);
}
}
else if(strcmp(x_nr,"sfpd",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: San Fierro Police Department. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1567.9802,663.1666,6.7282, 3.0);
}
}
else if(strcmp(x_nr,"lvpd",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Las Venturas Police Deparment. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 2233.3167,2452.0813,10.3626, 3.0);
}
}
else if(strcmp(x_nr,"oamt",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Ordnungsamt. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 929.8271,-1221.7789,16.4940, 3.0);
}
}
else if(strcmp(x_nr,"bsn",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Burger Shot North. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1217.7804,-915.5349,42.4807, 3.0);
}
}
else if(strcmp(x_nr,"truckdepot",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Truckdepot. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 70.9459,-243.8313,1.57817, 3.0);
}
}
else if(strcmp(x_nr,"bss",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Burger Shot South. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 820.2260,-1620.5989,13.5469, 3.0);
}
}
else if(strcmp(x_nr,"24/7",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: 24/7. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1315.4850,-908.4446,37.8160, 3.0);
}
}
else if(strcmp(x_nr,"bankls",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Bank Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1459.8230,-1025.8383,23.5533, 3.0);
}
}
else if(strcmp(x_nr,"ammunationls",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Ammunation Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1364.3303,-1280.1312,13.1122, 3.0);
}
}
else if(strcmp(x_nr,"postls",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Post Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1632.1094,-1167.2461,23.7769, 3.0);
}
}
else if(strcmp(x_nr,"straßenreinigung",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Straßenreinigung. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1831.1168,-1864.2660,13.3798, 3.0);
}
}
else if(strcmp(x_nr,"mountchilliad",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Mount Chilliad. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -2306.6912,-1660.0732,483.3970, 3.0);
}
}
else if(strcmp(x_nr,"müllkippe",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Müllkippe. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1912.0919,-1737.9105,21.4750, 3.0);
}
}
else if(strcmp(x_nr,"autohausls",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Autohaus Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 770.5839,-1353.5658,13.2568, 3.0);
}
}
else if(strcmp(x_nr,"autohaussf",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Autohaus San Fierro. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1635.7079,1202.3083,6.9048, 3.0);
}
}
else if(strcmp(x_nr,"news",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: SAN News. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1628.3856,-1707.4647,12.9238, 3.0);
}
}
else if(strcmp(x_nr,"pizzaboy",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Pizzaboy. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 2100.9812,-1783.8557,12.9664, 3.0);
}
}
else if(strcmp(x_nr,"drogenpunkt",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Drogenpunkt. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -104.0094,-77.1907,2.6838, 3.0);
}
}
else if(strcmp(x_nr,"matspointsf",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Matspoint San Fierro. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1108.5963,-1621.5308,75.9307, 3.0);
}
}
else if(strcmp(x_nr,"matspointlv",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Matspoint Las Venturas. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 2471.1104,1904.3702,9.4309, 3.0);
}
}
else if(strcmp(x_nr,"airportsf",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Flughafen San Fierro. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1563.3319,-448.1241,6.0000, 3.0);
}
}
else if(strcmp(x_nr,"airportls",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Flughafen Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1962.5587,-2186.1350,13.5469, 3.0);
}
}
else if(strcmp(x_nr,"bahnhofsf",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Bahnhof San Fierro. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1990.0015,137.7397,27.5391, 3.0);
}
}
else if(strcmp(x_nr,"bahnhofls",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Bahnhof Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1785.8562,-1898.6337,13.1188, 3.0);
}
}
else if(strcmp(x_nr,"alhambra",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Alhambra. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1829.0007,-1681.9492,13.2720, 3.0);
}
}
else if(strcmp(x_nr,"zivispawn",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Zivispawn. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1082.0422,-1796.0164,13.3959, 3.0);
}
}
else if(strcmp(x_nr,"angelsteg",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Angelsteg. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 384.4929,-2058.4070,7.8359, 3.0);
}
}
else if(strcmp(x_nr,"substandard",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Substandard. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1080.1295,-1155.8502,23.8281, 3.0);
}
}
else if(strcmp(x_nr,"ballasammu",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Ballas Ammunation. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1791.2120,-1164.6317,23.8281, 3.0);
}
}
else if(strcmp(x_nr,"spezialautohaus",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Spezialautohaus in Las Venturas. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 2157.3010,1432.5658,10.8203, 3.0);
}
}
else if(strcmp(x_nr,"suncars",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Sunshine Cars Autohaus in Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1344.8362,268.1154,19.5547, 3.0);
}
}
else if(strcmp(x_nr,"rentcars",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Rentcars Autohaus in Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 550.2722,-1288.6147,17.0123, 3.0);
}
}
else if(strcmp(x_nr,"rentbikes",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Rentbikes Bikehaus in Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 935.4175,-1746.6941,13.5469, 3.0);
}
}
else if(strcmp(x_nr,"fahrschule",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Fahrschule in Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1302.3312,470.8679,7.1875, 3.0);
}
}
else if(strcmp(x_nr,"gangautohaus",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Gang Autohaus in SF. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, -1922.6295,-790.5270,32.0234, 3.0);
}
}
else if(strcmp(x_nr,"automatischefs",true) == 0)
{
if(IsPlayerConnected(playerid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Ziel gesetzt: Automatische-Fahrschule in Los Santos. Benutze /navi delete um den Redmarker zu entfernen.");
SetPlayerCheckpoint(playerid, 1415.8029,-1702.1295,13.5395, 3.0);
}
}
}
return 1;
}
--------------------------------
Ich weiß nicht wie das geht, das der als Pawncode angezeigt wird ( hier im forum ) ;o
Dort wird alles im chat gepostet, und man muss /navi beispiel eingeben, das ist blöd..