Mein problem ist, bei dem gta sichtis gamemode, wie man da die army wieder reinpackt. /makeleader den befehl habe ich schon da alles entfernt, aber trotzdem kommt wenn /makeleader im spiel macht keine army
if(strcmp(cmd, "/makeleader", true) == 0){if(IsPlayerConnected(playerid)){tmp = strtok(cmdtext, idx);if(!strlen(tmp)){SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: /makeleader [SpielerID/TeildesNamens] [Nummer(1-23)]");SendClientMessage(playerid, COLOR_GRAD2, "|1 LSPD |2 SWAT |3 Army |4 Medic |5 Grove |6 Yakuza |7 Mayor |8 Hitmen |9 News");SendClientMessage(playerid, COLOR_GRAD2, "|10 Taxi |11 Fahrschule |12 SFPD |13 Yellows |14 Rock'n |15 Pilot |16 Farmer");SendClientMessage(playerid, COLOR_GRAD2, "|17 Transporter |18 Police Chief |19 SID |20 Hells |21 Müll |22 Trucker |23 ADAC");return 1;}new para1;new level;para1 = ReturnUser(tmp);tmp = strtok(cmdtext, idx);level = strval(tmp);if(level > 23 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Die Nummer darf nicht unter 0 und über 23 sein!"); return 1; }if (PlayerInfo[playerid][pAdmin] >= 1335){if(IsPlayerConnected(para1)){if(para1 != INVALID_PLAYER_ID){if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255){SendClientMessage(playerid, COLOR_GREY, "Dieser Spieler ist in einer Organisation / Familie!");return 1;}GetPlayerName(para1, giveplayer, sizeof(giveplayer));GetPlayerName(playerid, sendername, sizeof(sendername));if(level==3) { return 1; }if(level == 19) { return 1; }PlayerInfo[para1][pLeader] = level;format(string, sizeof(string), "Du wurdest von %s zum Leader gemacht.", sendername);SendClientMessage(para1, COLOR_LIGHTBLUE, string);format(string, sizeof(string), "Du hast %s zum Leader Level %d gemacht.", giveplayer,level);SendClientMessage(playerid, COLOR_LIGHTBLUE, string);if(level == 0) { PlayerInfo[para1][pChar] = 206; }else if(level == 1) { PlayerInfo[para1][pChar] = 283; } //Police LSPDelse if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATFelse if(level == 3) { return 1; /*PlayerInfo[para1][pChar] = 287;*/ } //National Guardelse if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulanceelse if(level == 5) { PlayerInfo[para1][pChar] = 0; } //Grovestreetelse if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Yakuzaelse if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayorelse if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmanselse if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporterselse if(level == 10) { PlayerInfo[para1][pChar] = 290; } //Taxi Cab Companyelse if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Instructorelse if(level == 12) { PlayerInfo[para1][pChar] = 283; } //SFPDelse if(level == 13) { PlayerInfo[para1][pChar] = 108; } //Yellowelse if(level == 14) { PlayerInfo[para1][pChar] = 82; } //Rock´n Car Crusierelse if(level == 15) { PlayerInfo[para1][pChar] = 61; } //Pilotelse if(level == 16) { PlayerInfo[para1][pChar] = 158; } //Farmerelse if(level == 17) { PlayerInfo[para1][pChar] = 295; } //MTelse if(level == 18) { PlayerInfo[para1][pChar] = 288; } //Policechiefelse if(level == 19) { return 1; /*PlayerInfo[para1][pChar] = 163;*/ } //Special Forceselse if(level == 20) { PlayerInfo[para1][pChar] = 100; } //Hells Angelselse if(level == 21) { PlayerInfo[para1][pChar] = 153; } // Müllabfuhrelse if(level == 22) { PlayerInfo[para1][pChar] = 72; } // Truckerelse if(level == 22) { PlayerInfo[para1][pChar] = 50; } // ADACgTeam[para1] = 11;PlayerInfo[para1][pTeam] = 11;SetPlayerJSkin(para1,1);new pppname[MAX_PLAYER_NAME], ppiname[MAX_PLAYER_NAME];GetPlayerName(playerid, pppname, sizeof(pppname));GetPlayerName(para1, ppiname, sizeof(ppiname));format(string, sizeof(string), "%s /makeleader %s %d", pppname, ppiname,level);AdmCmdLog(playerid,string);}}//not connected}else{SendClientMessage(playerid, COLOR_GRAD1, "Dir ist es nicht erlaubt, diesen Befehl zu benutzen!");}}return 1;}
hab ich so verändert in
if(strcmp(cmd, "/makeleader", true) == 0){if(IsPlayerConnected(playerid)){tmp = strtok(cmdtext, idx);if(!strlen(tmp)){SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: /makeleader [SpielerID/TeildesNamens] [Nummer(1-23)]");SendClientMessage(playerid, COLOR_GRAD2, "|1 LSPD |2 SWAT |3 Army |4 Medic |5 Grove |6 Yakuza |7 Mayor |8 Hitmen |9 News");SendClientMessage(playerid, COLOR_GRAD2, "|10 Taxi |11 Fahrschule |12 SFPD |13 Yellows |14 Rock'n |15 Pilot |16 Farmer");SendClientMessage(playerid, COLOR_GRAD2, "|17 Transporter |18 Police Chief |19 SID |20 Hells |21 Müll |22 Trucker |23 ADAC");return 1;}new para1;new level;para1 = ReturnUser(tmp);tmp = strtok(cmdtext, idx);level = strval(tmp);if(level > 23 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Die Nummer darf nicht unter 0 und über 23 sein!"); return 1; }if (PlayerInfo[playerid][pAdmin] >= 1335){if(IsPlayerConnected(para1)){if(para1 != INVALID_PLAYER_ID){if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255){SendClientMessage(playerid, COLOR_GREY, "Dieser Spieler ist in einer Organisation / Familie!");return 1;}GetPlayerName(para1, giveplayer, sizeof(giveplayer));GetPlayerName(playerid, sendername, sizeof(sendername));if(level==3) { return 1; }if(level == 19) { return 1; }PlayerInfo[para1][pLeader] = level;format(string, sizeof(string), "Du wurdest von %s zum Leader gemacht.", sendername);SendClientMessage(para1, COLOR_LIGHTBLUE, string);format(string, sizeof(string), "Du hast %s zum Leader Level %d gemacht.", giveplayer,level);SendClientMessage(playerid, COLOR_LIGHTBLUE, string);if(level == 0) { PlayerInfo[para1][pChar] = 206; }else if(level == 1) { PlayerInfo[para1][pChar] = 283; } //Police LSPDelse if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATFelse if(level == 3) { return 1; PlayerInfo[para1][pChar] = 287; } //National Guardelse if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulanceelse if(level == 5) { PlayerInfo[para1][pChar] = 0; } //Grovestreetelse if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Yakuzaelse if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayorelse if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmanselse if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporterselse if(level == 10) { PlayerInfo[para1][pChar] = 290; } //Taxi Cab Companyelse if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Instructorelse if(level == 12) { PlayerInfo[para1][pChar] = 283; } //SFPDelse if(level == 13) { PlayerInfo[para1][pChar] = 108; } //Yellowelse if(level == 14) { PlayerInfo[para1][pChar] = 82; } //Rock´n Car Crusierelse if(level == 15) { PlayerInfo[para1][pChar] = 61; } //Pilotelse if(level == 16) { PlayerInfo[para1][pChar] = 158; } //Farmerelse if(level == 17) { PlayerInfo[para1][pChar] = 295; } //MTelse if(level == 18) { PlayerInfo[para1][pChar] = 288; } //Policechiefelse if(level == 19) { return 1; PlayerInfo[para1][pChar] = 163; } //Special Forceselse if(level == 20) { PlayerInfo[para1][pChar] = 100; } //Hells Angelselse if(level == 21) { PlayerInfo[para1][pChar] = 153; } // Müllabfuhrelse if(level == 22) { PlayerInfo[para1][pChar] = 72; } // Truckerelse if(level == 22) { PlayerInfo[para1][pChar] = 50; } // ADACgTeam[para1] = 11;PlayerInfo[para1][pTeam] = 11;SetPlayerJSkin(para1,1);new pppname[MAX_PLAYER_NAME], ppiname[MAX_PLAYER_NAME];GetPlayerName(playerid, pppname, sizeof(pppname));GetPlayerName(para1, ppiname, sizeof(ppiname));format(string, sizeof(string), "%s /makeleader %s %d", pppname, ppiname,level);AdmCmdLog(playerid,string);}}//not connected}else{SendClientMessage(playerid, COLOR_GRAD1, "Dir ist es nicht erlaubt, diesen Befehl zu benutzen!");}}return 1;}
Ich hoffe ihr könnt mir helfen, bin gerade nur erstmal am testen..
Mfg Bauby