/ld
if(strcmp(cmd, "/ld", true) == 0 strcmp(cmd, "/leaderchat", true) == 0)
{
if(IsPlayerConnected(playerid))
{
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++;
}
if(!ldchat)
{
SendClientMessage(playerid, COLOR_GRAD2, "Der Leaderchat wurde ausgestellt");
return 1;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: (/ld)(Leader-Chat) [TEXT]");
return 1;
}
if(PlayerInfo[playerid][pLeader] >=1)
{
if(PlayerInfo[playerid][pLeader] == 1) { format(string, sizeof(string), "** LSPD-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 2) { format(string, sizeof(string), "** FBI-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 3) { format(string, sizeof(string), "** Army-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 4) { format(string, sizeof(string), "** Medic-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 5) { format(string, sizeof(string), "** LCN-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 6) { format(string, sizeof(string), "** Yakuza-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 7) { format(string, sizeof(string), "** Praesident %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == { format(string, sizeof(string), "** Unknown %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 9) { format(string, sizeof(string), "** News Reporter-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 10) { format(string, sizeof(string), "** Taxi-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 11) { format(string, sizeof(string), "** Fahrschul-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 12) { format(string, sizeof(string), "** Hacker-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 13) { format(string, sizeof(string), "** Crips-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 14) { format(string, sizeof(string), "** Groove-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 15) { format(string, sizeof(string), "** Los Santos Biker-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 16) { format(string, sizeof(string), "** Los Santos Vagos-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 17) { format(string, sizeof(string), "** Aztecas-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 18) { format(string, sizeof(string), "** Vatos Locos-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 19) { format(string, sizeof(string), "** LSGD-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 20) { format(string, sizeof(string), "** Terror-Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 21) { format(string, sizeof(string), "** Wheelmen Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 22) { format(string, sizeof(string), "** SWAT Leader %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 23) { format(string, sizeof(string), "** Russische Mafia %s: %s **", sendername, result); }
else if(PlayerInfo[playerid][pLeader] == 24) { format(string, sizeof(string), "** OAmt-Leader %s: %s **", sendername, result); }
else
{
format(string, sizeof(string), "** Noob %s: %s, Ende. **", sendername, result);
}
SendLeaderMessage(1, 0xD7AD62FF, string);
SendLeaderMessage(2, 0xD7AD62FF, string);
SendLeaderMessage(3, 0xD7AD62FF, string);
SendLeaderMessage(4, 0xD7AD62FF, string);
SendLeaderMessage(5, 0xD7AD62FF, string);
SendLeaderMessage(6, 0xD7AD62FF, string);
SendLeaderMessage(7, 0xD7AD62FF, string);
SendLeaderMessage(8, 0xD7AD62FF, string);
SendLeaderMessage(9, 0xD7AD62FF, string);
SendLeaderMessage(10, 0xD7AD62FF, string);
SendLeaderMessage(11, 0xD7AD62FF, string);
SendLeaderMessage(12, 0xD7AD62FF, string);
SendLeaderMessage(13, 0xD7AD62FF, string);
SendLeaderMessage(14, 0xD7AD62FF, string);
SendLeaderMessage(15, 0xD7AD62FF, string);
SendLeaderMessage(16, 0xD7AD62FF, string);
SendLeaderMessage(17, 0xD7AD62FF, string);
SendLeaderMessage(18, 0xD7AD62FF, string);
SendLeaderMessage(19, 0xD7AD62FF, string);
SendLeaderMessage(20, 0xD7AD62FF, string);
SendLeaderMessage(21, 0xD7AD62FF, string);
SendLeaderMessage(22, 0xD7AD62FF, string);
SendLeaderMessage(23, 0xD7AD62FF, string);
SendLeaderMessage(24, 0xD7AD62FF, string);
printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, " Du bist kein Leader!.");
return 1;
}
}
return