Suche ein Setskin-Script

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
  • Hallo!


    Habe schon gesucht aber nichts passendes gefunden, fand nur solche nur fürs Godfather ...
    Suche ein /setskin command, was man auch bei LVDM (einer der Standart-Gamemodes) einsetzen kann!
    Hoffe, das mir jemand sowas scripten kann.
    Achja, der Skin soll gespeichert bleiben, d.h. nach dem Tod noch da sein.


    MfG
    xXPhoenixXx

    How do I post wrong?


    After successfully ignoring Google, the FAQ, Stickies and the Search button, I create two to five new threads in the wrong section, with creative titles and unclear text that everybody can imagine something different from.

  • Ich bin kein Scripter, ich kann sowas nicht ...


    EDIT:: Wo ist da ein /setskin-command? 8|

    How do I post wrong?


    After successfully ignoring Google, the FAQ, Stickies and the Search button, I create two to five new threads in the wrong section, with creative titles and unclear text that everybody can imagine something different from.

    Einmal editiert, zuletzt von xXPhoenixXx ()

  • if(strcmp(cmd, "/setskin", true) == 0 && PlayerInfo[playerid][Level] >= 1)
    {
    if(IsPlayerConnected(playerid)) {

    tmp = strtok(cmdtext, idx);
    new otherplayer = strval(tmp);
    tmp2 = strtok(cmdtext, idx);
    new skin = strval(tmp2);
    if(!strlen(tmp) || !strlen(tmp2)) {
    SendClientMessage(playerid, COLOR_RED, "**>> /setskin [SpielerID] [SkinID]");
    return 1;
    }
    if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Ungültige SpielerID !");
    if (skin < 0 || skin > 299) return SendClientMessage(playerid, COLOR_WHITE, "Ungültige SkinID !");
    if(GetDistanceBetweenPlayers(playerid, otherplayer) <= 15.0) {
    format(gfile, sizeof(gfile), "/Accounts/%s.ini", name[otherplayer]);
    SetPlayerSkin(otherplayer, skin);
    PlayerInfo[otherplayer][Skinid] = skin;
    dini_IntSet(gfile, "Skinid", skin);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "Skin wurde geändert.");
    format(string, sizeof(string), "Du hast Die Skinid(%d) von %s geändert", skin, name[otherplayer]);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    }
    return 1;
    }

    Kalcor: "... it makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."

  • Errors:
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(179) : error 017: undefined symbol "PlayerInfo"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(179) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(179) : error 001: expected token: ";", but found "]"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(179) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(179) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    Das wäre:
    if(strcmp(cmd, "/setskin", true) == 0 && PlayerInfo[playerid][Level] >= 1)


    MfG
    xXPhoenixXx

    How do I post wrong?


    After successfully ignoring Google, the FAQ, Stickies and the Search button, I create two to five new threads in the wrong section, with creative titles and unclear text that everybody can imagine something different from.

  • if(strcmp(cmd, "/setskin", true) == 0)
    {
    if(IsPlayerConnected(playerid)) {

    tmp = strtok(cmdtext, idx);
    new otherplayer = strval(tmp);
    tmp2 = strtok(cmdtext, idx);
    new skin = strval(tmp2);
    if(!strlen(tmp) || !strlen(tmp2)) {
    SendClientMessage(playerid, COLOR_RED, "**>> /setskin [SpielerID] [SkinID]");
    return 1;
    }
    if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Ungültige SpielerID !");
    if (skin < 0 || skin > 299) return SendClientMessage(playerid, COLOR_WHITE, "Ungültige SkinID !");
    if(GetDistanceBetweenPlayers(playerid, otherplayer) <= 15.0) {
    format(gfile, sizeof(gfile), "/Accounts/%s.ini", name[otherplayer]);
    SetPlayerSkin(otherplayer, skin);
    PlayerInfo[otherplayer][Skinid] = skin;
    dini_IntSet(gfile, "Skinid", skin);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "Skin wurde geändert.");
    format(string, sizeof(string), "Du hast Die Skinid(%d) von %s geändert", skin, name[otherplayer]);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    }
    return 1;
    }

  • C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(184) : error 017: undefined symbol "tmp"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(185) : error 017: undefined symbol "tmp"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(186) : error 017: undefined symbol "tmp2"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(187) : error 017: undefined symbol "tmp2"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(188) : error 017: undefined symbol "tmp"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(194) : error 017: undefined symbol "GetDistanceBetweenPlayers"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(195) : error 017: undefined symbol "gfile"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(195) : error 017: undefined symbol "gfile"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(195) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(195) : error 001: expected token: ";", but found "]"
    C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Samp Servers\SAMP DM Server\gamemodes\lvdmgermanTEST2.pwn(195) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    10 Errors.


    tmp = strtok(cmdtext, idx);
    new otherplayer = strval(tmp);
    tmp2 = strtok(cmdtext, idx);
    new skin = strval(tmp2);
    if(!strlen(tmp) || !strlen(tmp2)) {
    SendClientMessage(playerid, COLOR_RED, "**>> /setskin [SpielerID] [SkinID]");
    return 1;
    }
    if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Ungueltige SpielerID");
    if (skin < 0 || skin > 299) return SendClientMessage(playerid, COLOR_WHITE, "Ungueltige SkinID");
    if(GetDistanceBetweenPlayers(playerid, otherplayer) <= 15.0) {
    format(gfile, sizeof(gfile), "/Accounts/%s.ini", name[otherplayer]);


    MfG
    xXPhoenixXx

    How do I post wrong?


    After successfully ignoring Google, the FAQ, Stickies and the Search button, I create two to five new threads in the wrong section, with creative titles and unclear text that everybody can imagine something different from.

  • Denk doch mal nach -.-
    new tmp;
    Und des Between player löschen

    Kalcor: "... it makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."

  • Denk doch mal nach -.-
    new tmp;
    Und des Between player löschen

    Habe zwar schon gesagt das ich nicht scripten kann, aber naja ...
    Wo soll jetzt new tmp; hin?

    How do I post wrong?


    After successfully ignoring Google, the FAQ, Stickies and the Search button, I create two to five new threads in the wrong section, with creative titles and unclear text that everybody can imagine something different from.

  • if(strcmp(cmd, "/setskin", true) == 0)
    {
    if(IsPlayerConnected(playerid)) {
    new tmp;
    tmp = strtok(cmdtext, idx);
    new otherplayer = strval(tmp);
    tmp2 = strtok(cmdtext, idx);
    new skin = strval(tmp2);
    if(!strlen(tmp) || !strlen(tmp2)) {
    SendClientMessage(playerid, COLOR_RED, "**>> /setskin [SpielerID] [SkinID]");
    return 1;
    }
    if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Ungültige SpielerID !");
    if (skin < 0 || skin > 299) return SendClientMessage(playerid, COLOR_WHITE, "Ungültige SkinID !");
    SetPlayerSkin(otherplayer, skin);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "Skin wurde geändert.");
    format(string, sizeof(string), "Du hast Die Skinid(%d) von %s geändert", skin, name[otherplayer]);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    return 1;
    }

    Kalcor: "... it makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."