Beiträge von Just1993

    hey ich hab ein Pickupsystem gemacht welches aber nicht funktioniert


    Ich w´ähle das pickup aus aber nix passiert


    Woran liegt das ?



    Ganze oben


    new healpickup,spawnpickup,deaglepickup;


    OnPLayerPickUpPickup
    if(pickupid == healpickup)
    {
    SetPlayerHealth(playerid, 100);
    }
    if(pickupid == spawnpickup)
    {
    SetPlayerSpawn(playerid);
    }
    if(pickupid == deaglepickup)
    {
    GivePlayerWeapon(playerid, 24, 500); // Give playerid a sawn-off shotgun with 64 ammo
    }
    //


    if(strcmp(cmdtext, "/createpickup", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
    ShowPlayerDialog(playerid, 9992, DIALOG_STYLE_LIST, "Pickups", "Healpickup\nDeaglepickup\nSpawnpickup\nHealpickup Entfernen\nDeaglepickup Entfernen\nSpawnpickup Entfernen", "Auswählen", "Abbrechen");
    }
    }
    return 1;
    }


    //


    if(dialogid ==9992)
    {
    if(response)
    {
    if(listitem==0)
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    healpickup = CreatePickup(1240, 0, x, y, z, -1);
    }
    if(listitem==1)
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    deaglepickup = CreatePickup(348, 0, x, y, z, -1);
    }
    if(listitem==2)
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    spawnpickup = CreatePickup(1272, 0, x, y, z, -1);
    }
    if(listitem==3)
    {
    DestroyPickup(healpickup);
    }
    if(listitem==4)
    {
    DestroyPickup(deaglepickup);
    }
    if(listitem==5)
    {
    DestroyPickup(spawnpickup);
    }
    }
    }



    Hey ich schreibe grad ein Kilometer Stand system



    Aber nun weiß ich nicht wie ich die KIlometer Updaten soll beim fahren!


    In Folgender Variable wird der Kilometerstand gespeichert


    PlayerCar[playerid][Dtc_PlayerKey[playerid]][Kilometer]=Wert;

    Das GNE Hat nicht nur 1 Bug ...


    Ich Selber hab mein Gamemode auf dem GNE Editiert und bekome Täglich 60 Spieler


    Aber frag mich nicht was ich alles gefixxt // Geändert hab


    Vorallem MySql Umbau ist schon Plicht

    Hey, ich hab ein Problem mit meinem Neonsystem!


    Es Funktioniert Grundsätzlich Fehlerfrei Neon wird erstellt und angebaut alles fehlerfrei


    Allerdings wird es bei /carsell oder beim Ausloggen oder bei der Zerstörung des Fahrzeuges nicht zerstört!


    Code



    Ganz oben
    enum xValues
    {
    Neon,
    Neon1,
    }
    new Neonrohr[MAX_PLAYERS][xValues];



    OnVehicleDeath
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(IsPlayerConnected(playerid) && Dtc_PlayerHaveCar[playerid][x])
    {
    if (vehicleid == PlayerCar[playerid][x][CarId])
    {
    DestroyObject(Neonrohr[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]][Neon]);
    DestroyObject(Neonrohr[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]][Neon1]);
    DestroyVehicle(PlayerCar[playerid][x][CarId]);
    PlayerCarSpawn(playerid,x);
    }
    }
    }
    }
    OnPlayerCommandText
    if(strcmp("/carsell", cmdtext, true, 10) == 0)
    {
    if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    GivePlayerMoney(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPreis] / 2);
    DestroyObject(Neonrohr[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]][Neon]);
    DestroyObject(Neonrohr[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]][Neon1]);
    DestroyVehicle(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    new string3[32];
    format(string3, sizeof(string3), "/Autos/%s%d.ini", playername3,Dtc_PlayerKey[playerid]);
    fremove(string3);
    Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]] = 0;
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dein Auto wurde verkauft! Du hast die Hälfte das Kaufpreises erhalten!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du besitzt auf diesem Slot kein Fahrzeug!");
    return 1;
    }
    return 1;
    }
    PlayerCarSpawn
    if(PlayerCar[playerid][Slot][Neon] == 1)
    {
    new Float:x,Float:y,Float:z;
    Neonrohr[playerid][Neon] = CreateObject(18648,x,y,z,0,0,0,283);
    Neonrohr[playerid][Neon1] = CreateObject(18648,x,y,z,0,0,0,283);
    AttachObjectToVehicle(Neonrohr[playerid][Neon], PlayerCar[playerid][Slot][CarId], 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(Neonrohr[playerid][Neon1], PlayerCar[playerid][Slot][CarId], -0.8,0,-0.70,0,0,0);
    }
    if(PlayerCar[playerid][Slot][Neon] == 2)
    {
    new Float:x,Float:y,Float:z;
    Neonrohr[playerid][Neon] = CreateObject(18647,x,y,z,0,0,0,283);
    Neonrohr[playerid][Neon1] = CreateObject(18647,x,y,z,0,0,0,283);
    AttachObjectToVehicle(Neonrohr[playerid][Neon], PlayerCar[playerid][Slot][CarId], 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(Neonrohr[playerid][Neon1], PlayerCar[playerid][Slot][CarId], -0.8,0,-0.70,0,0,0);
    }
    if(PlayerCar[playerid][Slot][Neon] == 3)
    {
    new Float:x,Float:y,Float:z;
    Neonrohr[playerid][Neon] = CreateObject(18649,x,y,z,0,0,0,283);
    Neonrohr[playerid][Neon1] = CreateObject(18649,x,y,z,0,0,0,283);
    AttachObjectToVehicle(Neonrohr[playerid][Neon], PlayerCar[playerid][Slot][CarId], 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(Neonrohr[playerid][Neon1], PlayerCar[playerid][Slot][CarId], -0.8,0,-0.70,0,0,0);
    }
    if(PlayerCar[playerid][Slot][Neon] == 4)
    {
    new Float:x,Float:y,Float:z;
    Neonrohr[playerid][Neon] = CreateObject(18652,x,y,z,0,0,0,283);
    Neonrohr[playerid][Neon1] = CreateObject(18652,x,y,z,0,0,0,283);
    AttachObjectToVehicle(Neonrohr[playerid][Neon], PlayerCar[playerid][Slot][CarId], 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(Neonrohr[playerid][Neon1], PlayerCar[playerid][Slot][CarId], -0.8,0,-0.70,0,0,0);
    }
    if(PlayerCar[playerid][Slot][Neon] == 5)
    {
    new Float:x,Float:y,Float:z;
    Neonrohr[playerid][Neon] = CreateObject(18651,x,y,z,0,0,0,283);
    Neonrohr[playerid][Neon1] = CreateObject(18651,x,y,z,0,0,0,283);
    AttachObjectToVehicle(Neonrohr[playerid][Neon], PlayerCar[playerid][Slot][CarId], 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(Neonrohr[playerid][Neon1], PlayerCar[playerid][Slot][CarId], -0.8,0,-0.70,0,0,0);
    }
    if(PlayerCar[playerid][Slot][Neon] == 6)
    {
    new Float:x,Float:y,Float:z;
    Neonrohr[playerid][Neon] = CreateObject(18650,x,y,z,0,0,0,283);
    Neonrohr[playerid][Neon1] = CreateObject(18650,x,y,z,0,0,0,283);
    AttachObjectToVehicle(Neonrohr[playerid][Neon], PlayerCar[playerid][Slot][CarId], 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(Neonrohr[playerid][Neon1], PlayerCar[playerid][Slot][CarId], -0.8,0,-0.70,0,0,0);
    }







    Hat jemand eine Lösung ?


    Danke