Hallo.
Ich habe gescriptet das alle leader einer Fraktion /gov machen können doch beim Compailen stürtz der Compailer ab wegen Probleme oder so
if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInFrac(playerid, 1)&& IsPlayerInFrac(playerid, 2)&& IsPlayerInFrac(playerid, 3)&& !IsPlayerInFrac(playerid, 4)&& !IsPlayerInFrac(playerid, 5)&& !IsPlayerInFrac(playerid, 6)&& !IsPlayerInFrac(playerid, 7)&& !IsPlayerInFrac(playerid, 8)&& !IsPlayerInFrac(playerid, 9)&& !IsPlayerInFrac(playerid, 10)&& !IsPlayerInFrac(playerid, 11)&& !IsPlayerInFrac(playerid, 12)&& !IsPlayerInFrac(playerid, 13)&& !IsPlayerInFrac(playerid, 14)&& !IsPlayerInFrac(playerid, 14)&& !IsPlayerInFrac(playerid, 15)&& !IsPlayerInFrac(playerid, 16)&& !IsPlayerInFrac(playerid, 17)&& !IsPlayerInFrac(playerid, 18)&& !IsPlayerInFrac(playerid, 19)&& !IsPlayerInFrac(playerid, 20)&& !IsPlayerInFrac(playerid, 21)&& !IsPlayerInFrac(playerid, 23)&& !IsPlayerInFrac(playerid, 24)&&
{
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Leader einer Fraktion !");
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: (/gov)ernment [text]");
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Los Santos Police Department ___________|");
if(PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Federal Bureau of Investigation ___________|");
if(PlayerInfo[playerid][pLeader] == 2)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ United States of Army ___________|");
if(PlayerInfo[playerid][pLeader] == 3)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Notdienst ___________|");
if(PlayerInfo[playerid][pLeader] == 4)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ La Cosa Nostra ___________|");
if(PlayerInfo[playerid][pLeader] == 5)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Yakuza ___________|");
if(PlayerInfo[playerid][pLeader] == 6)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Regierung ___________|");
if(PlayerInfo[playerid][pLeader] == 7)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Hitman Agency ___________|");
if(PlayerInfo[playerid][pLeader] == 8)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Center News Network ___________|");
if(PlayerInfo[playerid][pLeader] == 9)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Taxi Company ___________|");
if(PlayerInfo[playerid][pLeader] == 10)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Fahrschule ___________|");
if(PlayerInfo[playerid][pLeader] == 11)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Triaden ___________|");
if(PlayerInfo[playerid][pLeader] == 12)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Grove Street Family ___________|");
if(PlayerInfo[playerid][pLeader] == 13)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Front Yard Ballas ___________|");
if(PlayerInfo[playerid][pLeader] == 14)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Biker Club ___________|");
if(PlayerInfo[playerid][pLeader] == 15)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Vagos ___________|");
if(PlayerInfo[playerid][pLeader] == 16)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Atzecas ___________|");
if(PlayerInfo[playerid][pLeader] == 17)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Rifas ___________|");
if(PlayerInfo[playerid][pLeader] == 18)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Red Soldiers ___________|");
if(PlayerInfo[playerid][pLeader] == 19)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Terrorist ___________|");
if(PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Wheelman Agency ___________|");
if(PlayerInfo[playerid][pLeader] == 21)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Brigada ___________|");
if(PlayerInfo[playerid][pLeader] == 23)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Ordnungsamt ___________|");
if(PlayerInfo[playerid][pLeader] == 24)
{
format(string, sizeof(string), "Bundespräsident %s: %s", sendername, result);
}
return 1;
}
Mein Gov System [ Die Namen wollte ich noch ändern also diese Bundespräsident; wollte ich Editieren