Skins....

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
  • Habe mal ne frage Möchte das z.B
    nur folgende Skins: {247},//CIVILIANS DOWN HERE
    {248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
    {253},{252},{251},{246},{245},{244},{243},{242},{241},{239},
    {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
    {226},{225},{224},{223},{222},{221},{220},{219},{218},
    {217},{216},{215},{214},{213},{212},{211},{210},{209},
    {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
    {195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
    {182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
    {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
    {146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
    {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
    {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
    {75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
    {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
    {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
    {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},
    {290},
    {291},
    {293},
    {187},
    {296},
    {297},
    {298},
    {299}


    Mit /Setskin [ID] verwendet werden können wie mache ich das? bzw. wie lautet die Abfrage

  • Also ich habe dass so im Script vll hilfts dir weiter:


    if(strcmp(cmd, "/setskin", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid,COLOR_GREY,"Verwendung: /setskin [SpielerID] [skinid]");
    new playa = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    new skinid = strval(tmp);
    if(skinid > 299 || skinid < 1) { return SendClientMessage(playerid, COLOR_GREY, "Die skinid darf nicht unter 1 und über 299 liegen!");}
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    PlayerInfo[playa][pChar] = skinid;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Dein Skin wurde von Administrator %s geändert.", sendername);
    SendClientMessage(playa, COLOR_PURPLE, string);
    GetPlayerName(playa,sendername, sizeof(sendername));
    format(string, sizeof(string), "* Du hast %s skinid %d gegeben.", playa,skinid);
    SendClientMessage(playerid, COLOR_PURPLE, string);
    SetPlayerSkin(playa, PlayerInfo[playa][pChar]);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Dir fehlt das benötigte Adminlevel!");
    }
    }
    return true;
    }


    Destiny - RealLife is coming SOON!
    Wir sind zurück besser als je zuvor! :*

  • #define IsSkin(%0) /*Skins einfügen ohne geschweifter Klammer, danach einfach nach ner if Schleife false ausgeben*/


    if(IsSkin(Skinid)) /*...*/
    if(!IsValidSkin(skin)) //Ob sie gültig sind


    //=========== Oder ================//


    new Skins[Skinanzahl] = {
    {247},
    {248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
    {253},{252},{251},{246},{245},{244},{243},{242},{241},{239},
    {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
    {226},{225},{224},{223},{222},{221},{220},{219},{218},
    {217},{216},{215},{214},{213},{212},{211},{210},{209},
    {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
    {195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
    {182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
    {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
    {146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
    {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
    {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
    {75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
    {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
    {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
    {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},
    {290},
    {291},
    {293},
    {187},
    {296},
    {297},
    {298},
    {299}
    };


    new i;
    for(; i<sizeof(Skins); i++)
    if(Skins[i] == /*Deine Skinauswahl*/


    [align=center]
    Mta Script Editor - Work in Progress