Hey, was ist dadran falsch?
if(strcmp(cmd, "/gmnachricht", true) == 0 || strcmp(cmd, "/gmnachricht", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] >=1) { SendClientMessage(playerid, COLOR_GREY, " Du bist kein Leader einer Gang/Mafia!"); return 1; } if(PlayerInfo[playerid][pRank] < 5) { SendClientMessage(playerid, COLOR_GREY, " Du brauchst Rang 5 !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "Benutze: (/gmnachricht) [text]"); return 1; } SendClientMessageToAll(COLOR_WHITE, "|___________ Nachricht ___________|"); if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Ballas BigBoss %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Ballas Underboss %s: %s", sendername, result); } SendClientMessageToAll(COLOR_PURPLE, string); } else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "LCN Don %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "LCN Destra %s: %s", sendername, result); } SendClientMessageToAll(COLOR_BLACK, string); } else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "DF President %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "DF Vice President %s: %s", sendername, result); } SendClientMessageToAll(COLOR_GOLD, string); } else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Yakuza Oyabun %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Yakuza Komon %s: %s", sendername, result); } SendClientMessageToAll(COLOR_WHITE, string); } else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Straccie Family Leader %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Straccie Family Co Leader %s: %s", sendername, result); } SendClientMessageToAll(COLOR_DBLUE, string); } else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "GS BigBoss %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "GS Underboss %s: %s", sendername, result); } SendClientMessageToAll(COLOR_GREEN, string); } else if(PlayerInfo[playerid][pLeader] == 18) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "LV El Jefé %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "LV La Vice Jefé %s: %s", sendername, result); } SendClientMessageToAll(COLOR_YELLOW, string); } else if(PlayerInfo[playerid][pLeader] == 17) { if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Scarfo El Jefé %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Scarfo La Vice Jefé %s: %s", sendername, result); } SendClientMessageToAll(COLOR_DBLUE, string); } } return 1; }
Ingame kommt immer: "Du bist kein Leader einer Gang/Mafia" ..
Errors zeigts auch nicht an.