NPC CJ skin?

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,


    Unszwar habe ich mich seit langen immer gewundert warum meine NPC CJ skin haben habe doch
    alles richtig eingestellt sie connecten ganz normal, laufen ganz normal.. nur CJ skin fehlt und denn 3dtextlabel denn
    ich dazu hinzuügefugt habe zeigen nicht an..
    Ich hoffe jemand kann helfen hier ein vorbild..:



    Im Script <




    Erstmal ein Record.pwn:



    Habe natürchlich mehrere Bots alle funktionieren aber haben alle CJ skin.



    Mit Freundlichen Grüßen,


    -Nova

  • Würde der feine Herr einfach den Code posten wie jeder normale Mensch, mit Callback köntte man die viel besser helfen. Ganz ehrlich sowas würd eh keiner copy und pasten denn habenw ir die Record? Nein


    POSTE den Callback dann kann man auch helfen

  • Function OnPlayerSpawn(playerid)
    {
    if(PlayerConnected[playerid] == 1){
    PlayerLogin(playerid);
    return 1;
    }
    if(ChangePos2[playerid][1] == 1)
    {
    SetPlayerInterior(playerid, ChangePos2[playerid][0]);
    SetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
    ChangePos2[playerid][1] = 0;
    return 1;
    }
    if(PlayerInfo[playerid][pGangJail] == 1){
    SetPlayerPos(playerid,1541.8328,16.0243,24.1406);
    SendClientMessage(playerid, COLOR_WHITE, "Du bist noch im Gangjail !");
    return 1;
    }
    if(IsPlayerNPC(playerid)){
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "MrsDerichs", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"MrsDerichs | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,1);
    SetPlayerSkin(playerid, 214);
    return 1;
    }
    else if(!strcmp(botname, "MrDerichs", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"MrDerichs | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,1);
    SetPlayerSkin(playerid, 228);
    return 1;
    }
    else if(!strcmp(botname, "Vanessa", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Vanessa | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerSkin(playerid, 12);
    return 1;
    }
    else if(!strcmp(botname, "Kerstin", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Kerstin | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerSkin(playerid, 9);
    return 1;
    }
    else if(!strcmp(botname, "Tyson", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Tyson | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerSkin(playerid, 163);
    return 1;
    }
    else if(!strcmp(botname, "Sonja", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Sonja | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,10);
    SetPlayerVirtualWorld(playerid,40);
    SetPlayerSkin(playerid, 205);
    return 1;
    }
    else if(!strcmp(botname, "Markus", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Markus | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid, 240);
    return 1;
    }
    else if(!strcmp(botname, "Hendrik", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Hendrik | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid, 234);
    return 1;
    }
    else if(!strcmp(botname, "Heinrich", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Heinrich | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid,281);
    return 1;
    }
    else if(!strcmp(botname, "Felix", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Felix | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid,24);
    return 1;
    }
    else if(!strcmp(botname, "Alexander", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Alexander | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid,15);
    return 1;
    }
    else if(!strcmp(botname, "Johann", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Johann | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid,28);
    return 1;
    }
    else if(!strcmp(botname, "Marc", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"Marc | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid,30);
    return 1;
    }
    else if(!strcmp(botname, "MrSmith", true)){
    new Text3D:Bot1[MAX_PLAYERS],string[50];
    format(string,sizeof(string),"MrSmith | ID:%d",playerid);
    Bot1[playerid] = Create3DTextLabel(string,0xFF0000FF,0,0,0,7.0,1);
    Attach3DTextLabelToPlayer(Bot1[playerid], playerid, 0.0, 0.0, 0.30);
    gPlayerLogged[playerid] = 0;
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid,281);
    return 1;
    }
    }


    Bitte sind beriets bei onplayerspawn