nummernschild dini

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
  • Moin,


    Ich hab mich schon bischen beschäftigt aber bekomms noch immer nicht auf die reihe. ;(


    Also ich habe hier ein Nummernschild script:
    //=========================FS:Plate==============================================
    //=========== Made by Marricio ==========================================
    //=========== For SA-MP forums ==========================================
    //===============================================================================
    //========== a_samp : SAMP developing team - sscanf2 : Y_Less ===================
    //========== zcmd : Zeex ========================================================
    //===============================================================================


    #include <a_samp> // SA-MP Dev. Team
    #include <sscanf2> // Y_Less
    #include <zcmd> // Zeex



    #define COLOR_GREY 0xAFAFAFAA



    public OnFilterScriptInit()
    {
    printf(" *** FS:Plate[v1] by Marricio has been loaded succesfully");
    }


    public OnFilterScriptExit()
    {
    printf(" *** FS:Plate[v1] by Marricio has been un-loaded succesfully");
    }


    public OnGameModeInit()
    {
    SetGameModeText("FS:Plate");


    return 1;
    }
    CMD:veh(playerid,params[])
    {
    new veh, color1, color2, Float:X, Float:Z, Float:Y, Float:A;
    if (sscanf(params, "iii",veh,color1,color2)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /veh [vehicle id] [color1] [color2]");
    if (IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GREY,"You're already in a vehicle!");
    GetPlayerPos(playerid,X,Y,Z);
    GetPlayerFacingAngle(playerid,A);
    RemovePlayerFromVehicle(playerid);
    new createdveh = CreateVehicle(veh,X,Y,Z,A,color1,color2,2);
    PutPlayerInVehicle(playerid,createdveh,0);
    return 1;
    }
    CMD:setplate(playerid,params[])
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    new plate[20], string[128], splate[22], vehid;
    vehid = GetPlayerVehicleID(playerid);
    if (sscanf(params, "s[20]", plate)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /setplate [plate]");
    if (strlen(plate) > 20 || strlen(plate) < 1) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /setplate [plate] (length 0-20)");
    format(string,128,"The plate was set to '%s' succesfully. The vehicle was set to respawn so it can take effect!",plate);
    format(splate,22,"%s",plate);
    SetVehicleNumberPlate(vehid, plate);
    RemovePlayerFromVehicle(playerid);
    SetTimerEx("Respawn",1,false,"i",playerid);
    SendClientMessage(playerid,COLOR_GREY,string);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"You must be the driver or be in a vehicle!");
    }
    return 1;
    }
    CMD:plate(playerid,params[])
    {
    new plate[20],id, string[128], string2[128], splate[22], vehid, victimname[MAX_PLAYER_NAME], admname[MAX_PLAYER_NAME];
    if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_GREY,"[ERROR]: You must be a RCON administrator!");
    if (sscanf(params, "us[20]", id,plate)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /plate [id] [plate]");
    if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_GREY,"[ERROR]: That user isn't online!");
    if (strlen(plate) > 20 || strlen(plate) < 1) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /plate [id] [plate] (length 0-20)");
    if (GetPlayerState(id) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,COLOR_GREY,"[ERROR]: The player isn't the driver or he isn't at any vehicle!");
    GetPlayerName(id,victimname,MAX_PLAYER_NAME); GetPlayerName(playerid,admname,MAX_PLAYER_NAME);
    vehid = GetPlayerVehicleID(id);
    format(string,128,"You set %s's plate to %s.",victimname,plate);
    format(string2,128,"Your plate was set to %s by RCON administrator %s.",plate, admname);
    format(splate, 22,"%s",plate);
    SetVehicleNumberPlate(vehid, plate);
    RemovePlayerFromVehicle(id);
    SetTimerEx("Respawn",2000,false,"i",id);
    SendClientMessage(playerid,COLOR_GREY,string);
    SendClientMessage(id,COLOR_GREY,string2);
    return 1;
    }
    CMD:platehelp(playerid,params[])
    {
    if(!IsPlayerAdmin(playerid))
    {
    SendClientMessage(playerid,COLOR_GREY,"NORMAL USER: /setplate [plate]");
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"RCON USER: /plate [id] [plate]");
    }
    return 1;
    }
    forward Respawn(playerid);
    public Respawn(playerid)
    {


    new vehid = GetPlayerVehicleID(playerid), Float:X, Float:Y, Float:Z;
    GetVehiclePos(vehid,X,Y,Z);
    SetVehicleToRespawn(vehid);
    SetVehiclePos(vehid,X,Y,Z);
    }








    Ich möchte gerne das die Nummernschilder über Dini gespeichert werden.


    Kann mir das jemand schnell machen oder einen Link schicken wo das erklärt wird ungefär? Wäre nett ! :thumbup:


    EDIT/ Code geändert und was dazugeschrieben !
    EDIT// Kann mir hierbei wirklich keiner Helfen ??

    Mit freundlichen Grüßen

    2 Mal editiert, zuletzt von XTender ()