Beiträge von Stevie_StaR

    Habe standbilder seit 0.3e .. sie dauern immer so 5-10 Sekunden,und dannach geht wieder alles,nervt aber ziemlich beim Spielen auf einem Roleplay server.. kann man das Irgendwie Fixxen?
    ist der 0.3e Final Client

    Hallo.. bin auf der suche nach einem Gangwar Tutorial ..


    Ich suche kein Gangfight!


    Das Gangwar system sollte mit /startwar Gang/Mafia , /stopwar Gang/Mafia , und dann halt Gangwarkill : bla diese meldung ..


    In der Suchfunktion find ich nichts..

    #define RefuelWait 300



    public Fillup()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    new VID;
    new FillUp;
    //new FillUpRandom = random(250)+1;
    new string[256];
    VID = GetPlayerVehicleID(i);
    FillUp = GasMax - Gas[VID];
    for(new b = 0; b < sizeof(TankeInfo); b++)
    {
    if(IsPlayerInRangeOfPoint(i,5.0, TankeInfo[b][tEntranceX], TankeInfo[b][tEntranceY], TankeInfo[b][tEntranceZ]))
    {
    if(Refueling[i] == 1)
    {
    if(GetPlayerMoney(i) >= FillUp+4)
    {
    Gas[VID] += FillUp;
    FillUp = FillUp * TankeInfo[b][tEntranceCost];
    format(string,sizeof(string),"* Du hast dein Fahrzeug für $%d aufgetankt.",FillUp);
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    TogglePlayerControllable(i, 1);
    GivePlayerMoney(i, - FillUp);
    TankeInfo[b][tTill] += FillUp;
    /// TankeInfo[b][tTill] += FillUpRandom;
    TankeInfo[b][tExtortion] += FillUp;
    // TankeInfo[b][tExtortion] += FillUpRandom;
    Refueling[i] = 0;
    // SBizzInfo[3][sbTill] += FillUp; //inhaber
    // SBizzInfo[3][sbExtortion] += FillUpRandom; //mitinhaber
    }
    else
    {
    TogglePlayerControllable(i, 1);
    new cost = TankeInfo[b][tEntranceCost];
    format(string,sizeof(string),"* Nicht genug Geld zum Auffüllen, du benötigst $%d zum Auffüllen deines Autos.",cost);
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    }
    }
    }
    }
    }
    }
    return 1;
    }

    /Fill Code :
    if(strcmp(cmd, "/fill", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsAtGasStation(playerid))
    {
    if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    SendClientMessage(playerid,COLOR_YELLOW," Du kannst kein Fahrrad betanken!");
    }
    else
    {
    SetTimer("Fillup",RefuelWait,0);
    Refueling[playerid] = 1;
    FreezePlayer(playerid);
    SendClientMessage(playerid,COLOR_WHITE," Dein Fahrzeug wird betankt, Bitte warten....");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist an keiner Tankstelle!");
    }
    }
    return 1;
    }



    IsAtGastation :



    public IsAtGasStation(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,6.0,1004.0070,-939.3102,42.1797) || IsPlayerInRangeOfPoint(playerid,6.0,1944.3260,-1772.9254,13.3906))
    {//LS
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid,6.0,-90.5515,-1169.4578,2.4079) || IsPlayerInRangeOfPoint(playerid,6.0,-1609.7958,-2718.2048,48.5391))
    {//LS
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid,6.0,-2029.4968,156.4366,28.9498) || IsPlayerInRangeOfPoint(playerid,6.0,-2408.7590,976.0934,45.4175))
    {//SF
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid,6.0,-2243.9629,-2560.6477,31.8841) || IsPlayerInRangeOfPoint(playerid,6.0,-1676.6323,414.0262,6.9484))
    {//Between LS and SF
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid,6.0,2202.2349,2474.3494,10.5258) || IsPlayerInRangeOfPoint(playerid,6.0,614.9333,1689.7418,6.6968))
    {//LV
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid,6.0,-1328.8250,2677.2173,49.7665) || IsPlayerInRangeOfPoint(playerid,6.0,70.3882,1218.6783,18.5165))
    {//LV
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid,6.0,2113.7390,920.1079,10.5255) || IsPlayerInRangeOfPoint(playerid,6.0,-1327.7218,2678.8723,50.0625))
    {//LV
    return 1;
    }
    }
    return 0;
    }


    Wenn ich an der Tankstelle bin , steht dort zwar dein Fahrzeug wird betankt blabla, es passiert aber nichts..

    Ich habe es so gemacht :



    //At The Top Of The Script:
    new Ballas;


    //Under OnGameModeInit
    Ballas = GangZoneCreate(1863.489746, -1176.451782, 2063.489746, -1048.451782);


    //Under OnPlayerSpawn:
    GangZoneShowForPlayer(playerid, Ballas, -2147418167);


    So hab ichs ins script gemacht, also unter onplayerspawn , ongamemodeinit etc, bekomme aber Errors bzw. Pawno stürtzt ab


    Natürlich da, wo es auch hinsoll.. aber es klappt nicht, bekomme Error's

    So, nun hab ich ein Navigationsmenü, was auch so ist wie ich es haben will, aber wenn ich was auswähle kommt kein Checkpoint..



    // Dieses FilterScript wurde von Traxx erstellt.
    // Wenn ihr dieses Script nutzt bitte Copyright drin lassen.


    #include <a_samp>


    #define DIALOG_NAVI 1011


    #define WEISS 0xF0F0F0FF


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("n--------------------------------------");
    print(" Navi System by Traxx");
    print("--------------------------------------n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("n----------------------------------");
    print(" Navi System by Traxx");
    print("----------------------------------n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext, "/navi", true) == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_NAVI,DIALOG_STYLE_LIST,"Navigation","TestPunkt1\nTestPunkt2\nTestPunkt3\nTestPunkt4\nTestPunkt5\nTestPunkt6","Einschalten","Abbrechen");
    return 1;
    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    SendClientMessage(playerid,WEISS,"Du hast dein Ziel erreicht");
    DisablePlayerCheckpoint(playerid);
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    if(dialogid==DIALOG_NAVI)
    {
    if(response==1)
    switch(listitem)
    {
    case 0:
    {
    SetPlayerCheckpoint(playerid,2035.0181,1343.3169,10.8203,5.0);
    SendClientMessage(playerid, WEISS, "Der TestPunkt1 wird nun Rot auf der Karte angezeigt!");
    }
    case 1:
    {
    SetPlayerCheckpoint(playerid,-2648.8953,376.0222,6.1593,5.0);
    SendClientMessage(playerid,WEISS, "Der TestPunkt2 wird nun Rot auf der Karte angezeigt!");
    }
    case 2:
    {
    SetPlayerCheckpoint(playerid,2412.5066,1123.8904,10.8203,5.0);
    SendClientMessage(playerid,WEISS, "Der TestPunkt3 wird nun Rot auf der Karte angezeigt");
    }
    case 3:
    {
    SetPlayerCheckpoint(playerid,1165.0698,-933.4414,43.2408,5.0);
    SendClientMessage(playerid,WEISS, "Der TestPunkt4 wird nun Rot auf der Karte angezeigt!");
    }
    case 4:
    {
    SetPlayerCheckpoint(playerid,1543.1887,-1675.6677,13.5560,5.0);
    SendClientMessage(playerid,WEISS, "Der TestPunkt5 wird nun auf Rot auf der Karte angezeigt!");
    }
    case 5:
    {
    SetPlayerCheckpoint(playerid,1368.9980,-1279.6785,13.5469,5.0);
    SendClientMessage(playerid,WEISS, "Der TestPunkt6 wird nun Rot auf der Karte angezeigt!");
    }
    }
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }

    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.. :D

    Zeilen: rentbike[0] = AddStaticVehicleEx(462,1084.0520,-1801.8397,13.6261,0,0,600); // roller
    rentbike[1] = AddStaticVehicleEx(462,1080.1417,-1798.1440,13.6754,0,0,600); // roller
    rentbike[2] = AddStaticVehicleEx(462,1079.4343,-1794.7012,13.6679,0,0,600); // roller
    rentbike[3] = AddStaticVehicleEx(462,1078.9912,-1790.6322,13.6589,0,0,600); // roller
    rentbike[4] = AddStaticVehicleEx(412,1080.2460,-1785.1575,13.6469,0,0,600); // roller
    rentbike[5] = AddStaticVehicleEx(462,1088.6825,-1783.9834,13.6443,0,0,600); // roller
    rentbike[6] = AddStaticVehicleEx(462,1090.6157,-1783.1754,13.6425,0,0,600); // roller
    rentbike[7] = AddStaticVehicleEx(462,1098.3656,-1781.7498,13.6320,0,0,600); // roller
    rentbike[8] = AddStaticVehicleEx(462,1102.6461,-1782.4749,13.6291,0,0,600); // roller
    rentbike[9] = AddStaticVehicleEx(462,1101.4756,-1786.1792,13.6161,0,0,600); // roller
    rentbike[10] = AddStaticVehicleEx(462,1073.1949,-1786.4114,13.6496,0,0,600); // roller


    Warnings :



    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13566) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13567) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13568) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13569) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13570) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13571) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13572) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13573) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13574) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13575) : warning 202: number of arguments does not match definition
    C:\Users\Justin\Desktop\Tsuyoshi2\roleplayy\gamemodes\GF-Edit.pwn(13576) : warning 202: number of arguments does not match definition

    Hey, ich habe nun einen /heal befehl , dieser geht aber nicht.


    Der Befehl :



    if(strcmp(cmd, "/heal", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new location = PlayerInfo[playerid][pLocal];
    if(!strlen(tmp))
    {
    if(location != 255)
    {
    if(location < 99)
    {
    if(HouseInfo[location][hArm] == 1)
    {
    format(string, sizeof(string), "* %s legt die Schutzweste an.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    FreezePlayer(playerid);
    GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
    Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
    Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
    PlayerInfo[playerid][pLocal] = 255;
    Spectate[playerid] = 257;
    }
    else
    {
    format(string, sizeof(string), "Dieser Ort hat keine Upgrades.");
    SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
    }
    if(HouseInfo[location][hHel] == 1)
    {
    new Float:tempheal;
    GetPlayerHealth(playerid,tempheal);
    if ( tempheal < 100.0)
    {
    SetPlayerHealth(playerid,100.0);
    PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "Du wurdest wieder zu 100% geheilt.");
    SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
    }
    else
    {
    SendClientMessage(playerid, TEAM_GREEN_COLOR,"Du wurdest wieder zu 100% geheilt.");
    }
    }
    else
    {
    format(string, sizeof(string), "Dieser Ort ist nicht zum Healing Upgrade.");
    SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
    }
    return 1;
    }
    else if(location == 7 || location == 8)//Restaurant
    {
    new Float:tempheal;
    GetPlayerHealth(playerid,tempheal);
    if ( tempheal < 100.0)
    {
    SetPlayerHealth(playerid,100.0);
    PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "Du wurdest wieder zu 100% geheilt.");
    SendClientMessage(playerid, TEAM_GREEN_COLOR,string);
    BizzInfo[7][bTill] += 250;
    ExtortionSBiz(7, 250);
    GivePlayerMoney(playerid, -250);
    GameTextForPlayer(playerid, "~r~ -250$", 3000, 1);
    }
    else
    {
    SendClientMessage(playerid, TEAM_GREEN_COLOR,"Du wurdest bereits geheilt.");
    }
    }


    Ich möchte nun, das die medics mit /heal ID Preis die SPieler auf 100 HP Healen, wie genau funkt das? ich habe alles Probiert, es geht nicht.


    Ps: ich weiß nicht ob das das richtige /heal ist, kann sein das es das fürs haus ist, wenn ja.. wie geht das für die Medics ?

    if (strcmp(cmd, "/buygun", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(GetPlayerMoney(playerid) < 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Du hast nicht genug Geld!");
    return 1;
    }
    if(PlayerInfo[playerid][pGunLic] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "Du besitzt keinen Waffenschein, und kannst dir somit keine Waffen kaufen!");
    return 1;
    }
    new gun;
    new gunid[16];
    new gunstring1[256];
    new gunstring2[256];
    new gunstring3[256];
    new gunstring4[256];
    new gunstring5[256];
    new infostring[256];
    new guncharge;
    new ammocharge;
    new = PlayerInfo[playerid][pLocal];
    if( == 99 || == 100 || == 101 || == 102 || == 103 || == 104 || == 105)
    {
    if(BizzInfo[location-99][bProducts] <= 0)
    {
    GameTextForPlayer(playerid, "~r~Ausverkauft", 5000, 1);
    return 1;
    }
    new modw = 100;
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    format(string, sizeof(string), "Benutzung: /buygun [waffenname] [munition]");
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    SendClientMessage(playerid, COLOR_WHITE,"*** Waffen & Munition ***");
    SendClientMessage(playerid, COLOR_GRAD2,string);
    format(gunstring1, 256, "Waffen: Fallschirm ($%d) Golfschläger ($%d) Schlagstock ($%d) Baseballschläger ($%d) Schaufel ($%d) PoolCue ($%d)",
    GunPrice[0][0]/100*modw,GunPrice[1][0]/100*modw,GunPrice[2][0]/100*modw,GunPrice[3][0]/100*modw,GunPrice[4][0]/100*modw,GunPrice[5][0]/100*modw,GunPrice[6][0]/100*modw);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring1);
    format(gunstring2, 256, "Waffen: Violetter Dildo ($%d) Weißer Dildo ($%d) LangerweißerDildo ($%d) WeißerDildo2 ($%d) Blumen ($%d)",
    GunPrice[7][0]/100*modw,GunPrice[8][0]/100*modw,GunPrice[9][0]/100*modw,GunPrice[10][0]/100*modw,GunPrice[11][0]/100*modw,GunPrice[12][0]/100*modw);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring2);
    format(gunstring3, 256, "Waffen: SD-Pistole ($%d) Deagle ($%d) MP5 ($%d)",
    GunPrice[13][0]/100*modw,GunPrice[14][0]/100*modw,GunPrice[15][0]/100*modw,GunPrice[16][0]/100*modw,GunPrice[17][0]/100*modw,GunPrice[18][0]/100*modw);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring3);
    format(gunstring4, 256, "Waffen: Shotgun ($1850) AK47 ($3000) M4 ($3000) Sniper ($250000) Messer ($15000 - Ab Level 15)",
    GunPrice[19][0]/100*modw,GunPrice[20][0]/100*modw,GunPrice[21][0]/100*modw,GunPrice[22][0]/100*modw,GunPrice[23][0]/100*modw,GunPrice[24][0]/100*modw,GunPrice[4][0]/100*modw);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring4);
    format(gunstring5, 256, "Waffen: Pistolen Munition ($%d) Shotgun Munition ($%d) MP5 Munition ($%d) AK47/M4 Munition ($%d) Sniper Munition ($%d)",
    GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring5);
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    return 1;
    }
    strmid(gunid, tmp, 0, strlen(cmdtext), 255);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    format(string, sizeof(string), "BENUTZUNG: /buygun [Waffe] [Munition]");
    return 1;
    }
    new ammo = strval(tmp);
    if(ammo < 1 || ammo > 999) { SendClientMessage(playerid, COLOR_GREY, "Die Munition deiner Waffe muss zwischen 1 und 999 liegen!"); return 1; }
    if (strcmp(gunid, "Fallschirm", true, strlen(gunid)) == 0)
    {
    gun = 46;
    guncharge = GunPrice[0][0]/100*modw;
    ammocharge = 0;
    }
    else if (strcmp(gunid, "Golfschläger", true, strlen(gunid)) == 0)
    {
    gun = 2; guncharge = GunPrice[1][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 2; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Schlagstock", true, strlen(gunid)) == 0)
    {
    gun = 3; guncharge = GunPrice[2][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 3; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Baseballschläger", true, strlen(gunid)) == 0)
    {
    gun = 5; guncharge = GunPrice[4][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 5; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Schaufel", true, strlen(gunid)) == 0)
    {
    gun = 6; guncharge = GunPrice[5][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 6; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0)
    {
    gun = 7; guncharge = GunPrice[6][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 7; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Violetter Dildo", true, strlen(gunid)) == 0)
    {
    gun = 10; guncharge = GunPrice[7][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 10; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Weißer Dildo", true, strlen(gunid)) == 0)
    {
    gun = 11; guncharge = GunPrice[8][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 11; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "langerweißerdildo", true, strlen(gunid)) == 0)
    {
    gun = 12; guncharge = GunPrice[9][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 12; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "weißerdildo2", true, strlen(gunid)) == 0)
    {
    gun = 13; guncharge = GunPrice[10][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 13; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Blumen", true, strlen(gunid)) == 0)
    {
    gun = 14; guncharge = GunPrice[11][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 14; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0)
    {
    gun = 15; guncharge = GunPrice[12][0]/100*modw; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 15; PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "SD-Pistole", true, strlen(gunid)) == 0)
    {
    gun = 23; guncharge = GunPrice[13][0]/100*modw; ammocharge = GunPrice[25][0]*ammo;
    PlayerInfo[playerid][pGun2] = 23; PlayerInfo[playerid][pAmmo2] = ammo;
    }
    else if (strcmp(gunid, "Deagle", true, strlen(gunid)) == 0)
    {
    gun = 24; guncharge = GunPrice[15][0]/100*modw; ammocharge = GunPrice[25][0]*ammo;
    PlayerInfo[playerid][pGun2] = 24; PlayerInfo[playerid][pAmmo2] = ammo;
    }
    else if (strcmp(gunid, "MP5", true, strlen(gunid)) == 0)
    {
    gun = 29; guncharge = GunPrice[18][0]/100*modw; ammocharge = GunPrice[27][0]*ammo;
    PlayerInfo[playerid][pGun3] = 29; PlayerInfo[playerid][pAmmo3] = ammo;
    }
    else if (strcmp(gunid, "Shotgun", true, strlen(gunid)) == 0)
    {
    gun = 25; guncharge = GunPrice[19][0]/100*modw; ammocharge = GunPrice[26][0]*ammo;
    PlayerInfo[playerid][pGun3] = 25; PlayerInfo[playerid][pAmmo3] = ammo;
    }
    else if (strcmp(gunid, "AK47", true, strlen(gunid)) == 0)
    {
    gun = 30; guncharge = GunPrice[22][0]/100*modw; ammocharge = GunPrice[28][0]*ammo;
    PlayerInfo[playerid][pGun4] = 30; PlayerInfo[playerid][pAmmo4] = ammo;
    }
    else if (strcmp(gunid, "M4", true, strlen(gunid)) == 0)
    {
    gun = 31; guncharge = GunPrice[23][0]/100*modw; ammocharge = GunPrice[28][0]*ammo;
    PlayerInfo[playerid][pGun4] = 31; PlayerInfo[playerid][pAmmo4] = ammo;
    }
    else if (strcmp(gunid, "Sniper", true, strlen(gunid)) == 0)
    {
    gun = 34; guncharge = GunPrice[24][0]/100*modw; ammocharge = GunPrice[29][0]*ammo;
    PlayerInfo[playerid][pGun4] = 34; PlayerInfo[playerid][pAmmo4] = ammo;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD6, "Ladenbesitzer: Ich habe noch nie von dieser Waffe gehört.");
    return 1;
    }
    if((guncharge+ammocharge) > GetPlayerMoney(playerid))
    {
    format(infostring, 256, "Dir fehlen $%d!",guncharge+ammocharge);
    SendClientMessage(playerid, COLOR_GRAD3, infostring);
    return 1;
    }
    if(GetPlayerMoney(playerid) < (guncharge+ammocharge))
    {
    SendClientMessage(playerid, COLOR_GREY, "Das funktioniert nicht!");
    return 1;
    }
    new payout = guncharge + ammocharge;
    format(infostring, 256, "Du hast ein(e) %s mit %d Munition für $%d erworben.",gunid,ammo,payout);
    SendClientMessage(playerid, COLOR_GRAD3, infostring);
    if(location == 102 && IsACop(playerid)) { }
    else
    {

    Ich hab ein Dickes Problem, und zwar kann man egal wo man ist ( BSN,LSPD,Autohaus / whatever .. ) waffen kaufen, egal in welchem interrior man ist.. wie fixx ich das ? ^^

    Server-Log :




    SA-MP Dedicated Server
    ----------------------
    v0.3c, (C)2005-2010 SA-MP Team


    [18:08:56] filterscripts = "" (string)
    [18:08:56] password = "" (string)
    [18:08:56] weburl = "www.sa-mp.com" (string)
    [18:08:56]
    [18:08:56] Server Plugins
    [18:08:56] --------------
    [18:08:56] Loading plugin: streamer
    [18:08:56] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
    [18:08:56] Loading plugin: sscanf
    [18:08:56] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
    [18:08:56] Loaded 0 plugins.


    [18:08:56]
    [18:08:56] Ban list
    [18:08:56] --------
    [18:08:56] Loaded: samp.ban
    [18:08:56]
    [18:08:56]
    [18:08:56] Filter Scripts
    [18:08:56] ---------------
    [18:08:56] Loaded 0 filter scripts.


    [18:08:56] Script[gamemodes/GF-Edit.amx]: Run time error 19: "File or function is not found"
    [18:08:56] Number of vehicle models: 0


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3c, (C)2005-2010 SA-MP Team


    [18:09:50] filterscripts = "" (string)
    [18:09:50] password = "" (string)
    [18:09:50] weburl = "www.sa-mp.com" (string)
    [18:09:50]
    [18:09:50] Server Plugins
    [18:09:50] --------------
    [18:09:50] Loading plugin: streamer
    [18:09:50] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
    [18:09:50] Loading plugin: sscanf
    [18:09:50] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
    [18:09:50] Loaded 0 plugins.


    [18:09:50]
    [18:09:50] Ban list
    [18:09:50] --------
    [18:09:50] Loaded: samp.ban
    [18:09:50]
    [18:09:50]
    [18:09:50] Filter Scripts
    [18:09:50] ---------------
    [18:09:50] Loaded 0 filter scripts.


    [18:09:50] Script[gamemodes/GF-Edit.amx]: Run time error 19: "File or function is not found"
    [18:09:50] Number of vehicle models: 0
    [18:10:12] Incoming connection: 94.221.176.6:58887
    [18:10:12] [join] eXe.x3 has joined the server (0:94.221.176.6)
    [18:10:23] [part] eXe.x3 has left the server (0:1)
    [18:31:14] --- Server Shutting Down.


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3c, (C)2005-2010 SA-MP Team


    [18:31:16] filterscripts = "" (string)
    [18:31:16] password = "" (string)
    [18:31:16] weburl = "www.sa-mp.com" (string)
    [18:31:16]
    [18:31:16] Server Plugins
    [18:31:16] --------------
    [18:31:16] Loading plugin: streamer
    [18:31:16] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
    [18:31:16] Loading plugin: sscanf
    [18:31:16] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
    [18:31:16] Loaded 0 plugins.


    [18:31:16]
    [18:31:16] Ban list
    [18:31:16] --------
    [18:31:16] Loaded: samp.ban
    [18:31:16]
    [18:31:16]
    [18:31:16] Filter Scripts
    [18:31:16] ---------------
    [18:31:16] Loaded 0 filter scripts.


    [18:31:16] Script[gamemodes/GF-Edit.amx]: Run time error 19: "File or function is not found"
    [18:31:16] Number of vehicle models: 0
    [18:32:55] --- Server Shutting Down.


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3c, (C)2005-2010 SA-MP Team


    [18:32:57] filterscripts = "" (string)
    [18:32:57] password = "" (string)
    [18:32:57] weburl = "www.sa-mp.com" (string)
    [18:32:57]
    [18:32:57] Server Plugins
    [18:32:57] --------------
    [18:32:57] Loading plugin: streamer
    [18:32:57] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
    [18:32:57] Loading plugin: sscanf
    [18:32:57] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
    [18:32:57] Loaded 0 plugins.


    [18:32:57]
    [18:32:57] Ban list
    [18:32:57] --------
    [18:32:57] Loaded: samp.ban
    [18:32:57]
    [18:32:57]
    [18:32:57] Filter Scripts
    [18:32:57] ---------------
    [18:32:57] Loaded 0 filter scripts.


    [18:32:57] Script[gamemodes/GF-Edit.amx]: Run time error 19: "File or function is not found"
    [18:32:57] Number of vehicle models: 0
    [18:34:33] Incoming connection: 217.228.245.13:4182
    [18:34:33] [join] Roman_Dalotec has joined the server (0:217.228.245.13)
    [18:34:53] [part] Roman_Dalotec has left the server (0:1)
    [18:41:56] --- Server Shutting Down.


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3c, (C)2005-2010 SA-MP Team


    [18:41:58] filterscripts = "" (string)
    [18:41:58] password = "" (string)
    [18:41:58] weburl = "www.sa-mp.com" (string)
    [18:41:58]
    [18:41:58] Server Plugins
    [18:41:58] --------------
    [18:41:58] Loading plugin: streamer
    [18:41:58] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
    [18:41:58] Loading plugin: sscanf
    [18:41:58] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
    [18:41:58] Loaded 0 plugins.


    [18:41:58]
    [18:41:58] Ban list
    [18:41:58] --------
    [18:41:58] Loaded: samp.ban
    [18:41:58]
    [18:41:58]
    [18:41:58] Filter Scripts
    [18:41:58] ---------------
    [18:41:58] Loaded 0 filter scripts.


    [18:41:58] Script[gamemodes/GF-Edit.amx]: Run time error 19: "File or function is not found"
    [18:41:58] Number of vehicle models: 0


    Plugins :


    Filterscripts: hab ich keine..


    Es ist ein Server von Nitrado, ich weiß aber nicht welches Betriebssystem dieser hat.


    Gamemodes usw sind auch alle drin, in der Server-CFG sind sie auch eingeschrieben..