Hilfe beim Speichern von den Autoreifen

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Wer kann mir hilfen ich möchte das gerne so haben wenn ich mein
    server aus mache und wieder an das die Auto Reifen an die autos bleiben..


    #include <a_samp>
    #include <streamer>


    #define COLOR_SUPERGREEN 0xFF01FF
    #define COLOR_CERVENA 0xFF0000AA


    #define WHEEL 1337


    new CMDSString[1500], Shop[5];


    public OnFilterScriptInit()
    {
    Shop[0] = CreateDynamicCPEx(1124.0206,-1328.8136,13.2567, 2.50, -1, 0, -1, 100.0, "Räder Shop\nRad Preis: {FFFFFF}5000{00FF00}$"); //Los Santos
    CreateDynamicMapIcon(1124.0206,-1328.8136,13.2567, 48, 0, -1, -1, -1, 200.0);
    Shop[1] = CreateDynamicCPEx(-2489.6182,90.2526,25.6172, 2.50, -1, 0, -1, 100.0, "Räder Shop\nRad Preis: {FFFFFF}5000{00FF00}$"); //San Fierro
    CreateDynamicMapIcon(-2489.6182,90.2526,25.6172, 48, 0, -1, -1, -1, 200.0);
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    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("/mycommand", cmdtext, true, 10) == 0)
    {
    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 OnPlayerEnterDynamicCP(playerid, checkpointid)
    {
    if(checkpointid == Shop[0])
    {
    ShowPlayerDialog(playerid, WHEEL, DIALOG_STYLE_LIST, "{FFFFFF}Räder - {00FF00}5000 $","{FFFFFF}Cutter\n{FFFFFF}Switch\n{FFFFFF}Shadow\n{FFFFFF}Mega\n{FFFFFF}Rimshine\n{FFFFFF}Grove\n{FFFFFF}Atomic\n{FFFFFF}Importieren","Kaufen","Schließen");
    }
    if(checkpointid == Shop[1])
    {
    ShowPlayerDialog(playerid, WHEEL, DIALOG_STYLE_LIST, "{FFFFFF}Räder - {00FF00}5000 $","{FFFFFF}Cutter\n{FFFFFF}Switch\n{FFFFFF}Shadow\n{FFFFFF}Mega\n{FFFFFF}Rimshine\n{FFFFFF}Grove\n{FFFFFF}Atomic\n{FFFFFF}Importieren","Kaufen","Schließen");
    }
    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[])
    {
    new vid;
    vid = GetPlayerVehicleID(playerid);
    if(dialogid == WHEEL)
    {
    if(response)
    {
    if(listitem == 0)
    {
    AddVehicleComponent(vid,1079);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Cutter");
    }
    if(listitem == 1)
    {
    AddVehicleComponent(vid,1080);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Switch");
    }
    if(listitem == 2)
    {
    AddVehicleComponent(vid,1073);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Shadow");
    }
    if(listitem == 3)
    {
    AddVehicleComponent(vid,1074);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Mega");
    }
    if(listitem == 4)
    {
    AddVehicleComponent(vid,1075);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Rimshine");
    }
    if(listitem == 5)
    {
    AddVehicleComponent(vid,1081);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Grove");
    }
    if(listitem == 6)
    {
    AddVehicleComponent(vid,1085);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Atomic");
    }
    if(listitem == 7)
    {
    AddVehicleComponent(vid,1082);
    GivePlayerMoney(playerid,-5000);
    SendClientMessage(playerid,COLOR_SUPERGREEN,"**Sie haben Räder gekauft: {FFFFFF}Import");
    }
    }
    }
    return 1;
    }


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


    stock CreateDynamicCPEx(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 25.0, text[])
    {
    #pragma unused CMDSString
    Create3DTextLabel(text, COLOR_SUPERGREEN, x, y, z+0.7, (distance + 10.0), 0, 0);
    return CreateDynamicCP(x, y, z, size, worldid, interiorid, playerid, distance);
    }