Skin Auswahl bei /invite.

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
  • Hello Guys.


    Ich hatte da eine Frage. Wie kann ich es machen, dass man bei dem Befehl /invite in eine Skin Auswahl aus bestimmten Skins kommt und mit "Next", "Back" und "Done" umschalten kann? Die Skins sollten definiert sein, damit das LSPD z.B. nur die Skins 254, 234, und 264 kriegen soll.

  • Define
    new JoinPed[105][1] = {
    {280}, // LSPD 0
    {281}, // LSPD 1
    {282}, // LSPD 2
    {283}, // LSPD 3
    {284}, // LSPD 4
    {285}, // LSPD 5
    {288}, // LSPD 6
    {71}, // LSPD 7
    {166}, // LSPD 8
    {148}, // LSPD 9
    {283}, // SFPD 10
    {280}, // SFPD 11
    {281}, // SFPD 12
    {148}, // SFPD 13
    {287}, // ARMY 14
    {285}, // ARMY 15
    {148}, // ARMY 16
    {70}, // MEDIC 17
    {274}, // MEDIC 18
    {276}, // MEDIC 19
    {127}, // LCN 20
    {126}, // LCN 21
    {125}, // LCN 22
    {124}, // LCN 23
    {113}, // LCN 24 nein können sie nich
    {111}, // LCN 25
    {98}, // LCN 26
    {93}, // LCN 27
    {120}, // YAKI 28
    {121}, // YAKI 29
    {122}, // YAKI 30
    {123}, // YAKI 31
    {186}, // YAKI 32
    {228}, // YAKI 33
    {169}, // YAKI 34
    {155}, // PRÄSI 35
    {193}, // PRÄSI 36
    {127}, // HITMAN 37
    {165}, // HITMAN 38
    {186}, // HITMAN 39
    {141}, // HITMAN 40
    {93}, // HITMAN 41
    {187}, // CNN 42
    {188}, // CNN 43
    {93}, // CNN 44
    {255}, // TAXI 45
    {253}, // TAXI 46
    {76}, // TAXI 47
    {59}, // FAHRSCHULE 48
    {60}, // FAHRSCHULE 49
    {150}, // FAHRSCHULE 50
    {76}, // FAHRSCHULE 51
    {100}, // BIKER 52
    {247}, // BIKER 53
    {248}, // BIKER 54
    {254}, // BIKER 55
    {248}, // BIKER 56
    {131}, // BIKER 57
    {105}, // GROVE 58
    {106}, // GROVE 59
    {107}, // GROVE 60
    {269}, // GROVE 61
    {270}, // GROVE 62
    {271}, // GROVE 63
    {191}, // GROVE 64
    {102}, // BALLAS 65
    {195}, // BALLAS 66
    {104}, // BALLAS 67
    {193}, // BALLAS 68
    {185}, // FaF 69
    {23}, // FaF 70
    {50}, // FaF 71
    {193}, // FaF 72
    {192}, // FaF 73
    {108}, // VAGOS 74
    {109}, // VAGOS 75
    {110}, // VAGOS 76
    {226}, // VAGOS 77
    {114}, // AZTECAS 78
    {115}, // AZTECAS 79
    {116}, // AZTECAS 80
    {298}, // AZTECAS 81
    {173}, // RIFA 82
    {174}, // RIFA 83
    {175}, // RIFA 84
    {214}, // RIFA 85
    {223}, // WCC 86
    {234}, // WCC 87
    {250}, // WCC 88
    {7}, // WCC 89
    {93}, // WCC 90
    {280}, // FBI 91
    {284}, // FBI 92
    {285}, // FBI 93
    {286}, // FBI 94
    {148}, // FBI 95
    {277}, // FEUERWEHR 96
    {278}, // FEUERWEHR 97
    {279}, // FEUERWEHR 98
    {272}, // RM 99
    {125}, // RM 100
    {126}, // RM 101
    {255}, // OAMT 102
    {261}, // OAMT 103
    {76} // OAMT 104
    };


    Befehl:
    if(strcmp(cmd,"/einladung",true) == 0)
    {
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /einladung [annehmen/ablehnen]");
    return 1;
    }
    if(Eingeladen[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du wurdest in keine Fraktion eingeladen!");
    return 1;
    }
    if(strcmp(tmp,"annehmen",true) == 0)
    {
    if(Eingeladen[playerid] == 1) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
    else if(Eingeladen[playerid] == 2) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
    else if(Eingeladen[playerid] == 3) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
    else if(Eingeladen[playerid] == 4) { Spieler[playerid][pTeam] = 1; gTeam[playerid] = 1; ChosenSkin[playerid] = 70; SetPlayerSkin(playerid, 70); }
    else if(Eingeladen[playerid] == 5) { Spieler[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 258; SetPlayerSkin(playerid, 120); }
    else if(Eingeladen[playerid] == 6) { Spieler[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 228; SetPlayerSkin(playerid, 222); }
    else if(Eingeladen[playerid] == 7) { Spieler[playerid][pTeam] = 7; gTeam[playerid] = 7; ChosenSkin[playerid] = 164; SetPlayerSkin(playerid, 164); }
    else if(Eingeladen[playerid] == 8) { Spieler[playerid][pTeam] = 8; gTeam[playerid] = 8; ChosenSkin[playerid] = 250; SetPlayerSkin(playerid, 250); }
    else if(Eingeladen[playerid] == 9) { Spieler[playerid][pTeam] = 9; gTeam[playerid] = 9; ChosenSkin[playerid] = 187; SetPlayerSkin(playerid, 187); }
    else if(Eingeladen[playerid] == 10) { Spieler[playerid][pTeam] = 10; gTeam[playerid] = 10; ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
    else if(Eingeladen[playerid] == 11) { Spieler[playerid][pTeam] = 11; gTeam[playerid] = 11; ChosenSkin[playerid] = 240; SetPlayerSkin(playerid, 240); }
    else if(Eingeladen[playerid] == 12) { Spieler[playerid][pTeam] = 12; gTeam[playerid] = 12; ChosenSkin[playerid] = 247; SetPlayerSkin(playerid, 247); }//Hells Angels
    else if(Eingeladen[playerid] == 13) { Spieler[playerid][pTeam] = 13; gTeam[playerid] = 13; ChosenSkin[playerid] = 105; SetPlayerSkin(playerid, 105); }//Grove Street
    else if(Eingeladen[playerid] == 14) { Spieler[playerid][pTeam] = 14; gTeam[playerid] = 14; ChosenSkin[playerid] = 102; SetPlayerSkin(playerid, 102); }//Ballas
    else if(Eingeladen[playerid] == 15) { Spieler[playerid][pTeam] = 15; gTeam[playerid] = 15; ChosenSkin[playerid] = 185; SetPlayerSkin(playerid, 185); }//2Fast2Furios
    else if(Eingeladen[playerid] == 16) { Spieler[playerid][pTeam] = 16; gTeam[playerid] = 16; ChosenSkin[playerid] = 108; SetPlayerSkin(playerid, 108); }//Los Santos Vagos
    else if(Eingeladen[playerid] == 17) { Spieler[playerid][pTeam] = 17; gTeam[playerid] = 17; ChosenSkin[playerid] = 114; SetPlayerSkin(playerid, 114); }//Varios Los Aztecas
    else if(Eingeladen[playerid] == 18) { Spieler[playerid][pTeam] = 18; gTeam[playerid] = 18; ChosenSkin[playerid] = 173; SetPlayerSkin(playerid, 173); }//San Fiero Rifa
    else if(Eingeladen[playerid] == 19) { Spieler[playerid][pTeam] = 19; gTeam[playerid] = 19; ChosenSkin[playerid] = 234; SetPlayerSkin(playerid, 234); }//West Coust Customs
    else if(Eingeladen[playerid] == 20) { Spieler[playerid][pTeam] = 20; gTeam[playerid] = 20; ChosenSkin[playerid] = 220; SetPlayerSkin(playerid, 220); }
    else if(Eingeladen[playerid] == 21) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
    else if(Eingeladen[playerid] == 22) { Spieler[playerid][pTeam] = 22; gTeam[playerid] = 22; ChosenSkin[playerid] = 277; SetPlayerSkin(playerid, 277); }
    else if(Eingeladen[playerid] == 23) { Spieler[playerid][pTeam] = 23; gTeam[playerid] = 23; ChosenSkin[playerid] = 133; SetPlayerSkin(playerid, 133); }
    else if(Eingeladen[playerid] == 24) { Spieler[playerid][pTeam] = 24; gTeam[playerid] = 24; ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
    else { return 1; }
    GetPlayerName(playerid,sendername,sizeof(sendername));
    Spieler[playerid][pMember] = Eingeladen[playerid];
    Spieler[playerid][pRank] = 1;
    format(string,sizeof(string)," %s hat die Einladung in die Fraktion %s angenommen!",sendername,Fracs[Eingeladen[playerid]-1]);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(Spieler[i][pLeader] == Eingeladen[playerid])
    {
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    }
    }
    }
    SetPlayerInterior(playerid,0);
    new rand = random(sizeof(gInviteSpawns));
    SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
    SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    FreezePlayer(playerid);
    SelectChar[playerid] = 255;
    Eingeladen[playerid] = 0;
    SelectCharID[playerid] = Spieler[playerid][pMember];
    SelectCharPlace[playerid] = 1;
    Spieler[playerid][pModel] = ChosenSkin[playerid];
    Spieler[playerid][pChar] = ChosenSkin[playerid];
    SendClientMessage(playerid, COLOR_GRAD5, " Du kannst mit /help deine neuen Fraktionsbefehle betrachten");
    SendClientMessage(playerid, COLOR_LIGHTRED, "* Benutze 'weiter' um dir den Charakter auszusuchen den du gerne benutzen möchtest.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "* Wenn du den richtigen gefunden hast, gib 'fertig' ein.");
    }
    else if(strcmp(tmp,"ablehnen",true) == 0)
    {
    format(string,sizeof(string)," %s hat die Einladung in die Fraktion %s abgelehnt!",sendername,Fracs[Eingeladen[playerid]-1]);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(Spieler[i][pLeader] == Eingeladen[playerid])
    {
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    }
    }
    }
    Eingeladen[playerid] = 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /einladung [annehmen/ablehnen]");
    }
    return 1;
    }

    ik bin der vito c:

  • und hier unter onplayertext
    if(SelectChar[playerid] == 255)
    {
    new idx;
    tmp = strtok(text, idx);
    if ((strcmp("weiter", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("weiter")))
    {
    switch (SelectCharID[playerid])
    {
    case 1: // LSPD
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[0][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[1][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[2][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[3][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
    JoinPed[4][0]; }
    else if(SelectCharPlace[playerid] == 6) {
    SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7;
    ChosenSkin[playerid] = JoinPed[5][0]; }
    else
    if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
    JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] =
    JoinPed[6][0]; }
    else if(SelectCharPlace[playerid] == 8) {
    SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9;
    ChosenSkin[playerid] = JoinPed[7][0]; }
    else
    if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid,
    JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] =
    JoinPed[8][0]; }
    else if(SelectCharPlace[playerid] == 10) {
    SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[9][0]; }
    }
    case 2: // SFPD
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[10][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[10][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[11][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[12][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[12][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[13][0]; }
    }
    case 3: // Army
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[14][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[15][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[16][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[16][0]; }
    }
    case 4: // Medic
    {

    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[16][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[16][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[17][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[18][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[18][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[19][0]; }
    }
    case 5: //La Cosa Nostra
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[20][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[20][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[21][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[22][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[22][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[23][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[23][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[24][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
    JoinPed[24][0]; }
    else if(SelectCharPlace[playerid] == 6) {
    SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 7;
    ChosenSkin[playerid] = JoinPed[25][0]; }
    else
    if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
    JoinPed[26][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] =
    JoinPed[26][0]; }
    else if(SelectCharPlace[playerid] == 8) {
    SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[27][0]; }
    }
    case 6: //Yakuza
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[28][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[28][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[29][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[30][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[30][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[31][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[32][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
    JoinPed[32][0]; }
    else if(SelectCharPlace[playerid] == 6) {
    SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 7;
    ChosenSkin[playerid] = JoinPed[33][0]; }
    else
    if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
    JoinPed[34][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[34][0]; }
    }
    case 7: //Präsident
    {

    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[35][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[35][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[36][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[36][0]; }
    }
    case 8: //Hitman Agency
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[37][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[37][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[38][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[39][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[39][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[40][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[41][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[41][0]; }
    }
    case 9: //News Reporters
    {

    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[42][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[42][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[43][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[44][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[44][0]; }
    }
    case 10: //Taxi Cab Company
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[45][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[45][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[46][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[47][0]; }
    }
    case 11: //Driving/Flying School
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[48][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[49][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[50][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[51][0]; }
    }
    case 12: //Hells Angels
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[52][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[52][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[53][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[53][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[54][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[54][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[55][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[55][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[56][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
    JoinPed[56][0]; }
    else if(SelectCharPlace[playerid] == 6) {
    SetPlayerSkin(playerid, JoinPed[57][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[57][0]; }
    }
    case 13: //Grove Street
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[58][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[59][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[60][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[61][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
    JoinPed[62][0]; }
    else if(SelectCharPlace[playerid] == 6) {
    SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 7;
    ChosenSkin[playerid] = JoinPed[63][0]; }
    else
    if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
    JoinPed[64][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[64][0]; }
    }
    case 14: //Ballas
    {

    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[65][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[65][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[66][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[66][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[67][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[67][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[68][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[68][0]; }
    }
    case 15: //2fast
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[69][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[69][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[70][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[70][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[71][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[71][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[72][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[72][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[73][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[73][0]; }
    }
    case 16: //Los Santos Vagos
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[74][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[74][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[75][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[75][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[76][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[76][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[77][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[77][0]; }
    }
    case 17: //Varios Los Aztecas
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[78][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[78][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[79][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[79][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[80][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[80][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[81][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[81][0]; }
    }
    case 18: //San Fierro Rifa
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[82][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[82][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[83][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[83][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[84][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[84][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[85][0]); SelectCharPlace[playerid] = 1;
    ChosenSkin[playerid] = JoinPed[85][0]; }
    }
    case 19: //West Coast Customs
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[86][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[86][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[87][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[87][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[88][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[88][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[89][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[89][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[90][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[90][0]; }
    }
    case 21: // FBI
    {

    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[91][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[91][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[92][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[92][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[93][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
    JoinPed[93][0]; }
    else if(SelectCharPlace[playerid] == 4) {
    SetPlayerSkin(playerid, JoinPed[94][0]); SelectCharPlace[playerid] = 5;
    ChosenSkin[playerid] = JoinPed[94][0]; }
    else
    if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
    JoinPed[95][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[95][0]; }
    }
    case 22: // Feuerwehr
    {

    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[96][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[96][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[97][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[97][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[98][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[98][0]; }
    }
    case 23: // Grundwehrdient
    {


    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[99][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[99][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[100][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[100][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[101][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[101][0]; }
    }
    case 24: // Ordnungsamt
    {

    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
    JoinPed[102][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
    JoinPed[102][0]; }
    else if(SelectCharPlace[playerid] == 2) {
    SetPlayerSkin(playerid, JoinPed[103][0]); SelectCharPlace[playerid] = 3;
    ChosenSkin[playerid] = JoinPed[103][0]; }
    else
    if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
    JoinPed[104][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
    JoinPed[104][0]; }
    }
    }
    return 0;
    }
    else if ((strcmp("fertig", tmp, true, strlen(tmp)) == 0))
    {
    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 0;
    }
    Spieler[playerid][pModel] = ChosenSkin[playerid];
    Spieler[playerid][pChar] = ChosenSkin[playerid];
    SetSpawnInfo(playerid, Spieler[playerid][pTeam], Spieler[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
    gTeam[playerid] = Spieler[playerid][pTeam];
    SetPlayerToTeamColor(playerid);
    MedicBill[playerid] = 0;
    SpawnPlayer(playerid);
    SelectCharPlace[playerid] = 0;
    SelectCharID[playerid] = 0;
    SelectChar[playerid] = 0;
    UnFreezePlayer(playerid);
    return 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Benutze 'fertig'.");
    return 0;
    }
    }


    EDIT::


    Sry die Formatierung ist verloren gegangen ... :cursing:

    ik bin der vito c:

  • Uhm....danke.


    Aber ich weiß nicht ob die ganzen Befehle kompatibel mit meinem Selfmade sind, da z.B. tmp etc nicht funktioniert. Und muss ich unter den /invite Befehl noch etwas schreiben, damit der Spieler annehmen muss? Da man bei mir momentan direkt in die Fraktion geht.