new FraktionInfo[19][7][24] = {
{"Zivilist", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//0. Zivilist (einfach ignorieren)
{"Polizei", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//1. Polizei
{"FBI", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//2. FBI
{"Army", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//3. Army
{"SWAT", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//4. SWAT
{"Medic", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//5. Medic
{"Feuerwehr", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//6. Feuerwehr
{"Praesi", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//7. Praesi
{"OAmt", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//8. OAmt
{"CNN", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//9. CNN
{"LCN", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//10. LCN
{"Grove", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//11. Grove
{"Aztecas", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//12. Aztecas
{"RS", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//13. RS
{"Fahrschule", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//14. Fahrschule
{"Wheelman", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//15. Wheelman
{"Hitman", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//16. Hitman
{"RMafia", "rang1", "rang2", "rang3", "rang4", "rang5", "rang6"},//18. RMafia
};
dcmd_giverang(playerid, params[])
{
new pID, NeuerRang;
if(!isPlayerAdmin(playerid, 5))return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin!");
if(sscanf(params,"ud",pID,NeuerRang))return SendClientMessage(playerid,COLOR_GREY,"Benutze: /giverang [pID] [neuerrang]");
if(NeuerRang > 6 || NeuerRang < 1)return SendClientMessage(playerid,COLOR_RED,"Nicht kleiner als 1 und nicht höher als 6!");
if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"Ungültiger Spieler!");
if(pPlayer[pID][pFraktion] == 0) return SendClientMessage(playerid,COLOR_RED,"Der angegebene Spieler ist in keiner Fraktion!");
pPlayer[pID][pRang] = NeuerRang;
new str[128], name[MAX_PLAYER_NAME];
format(str, sizeof(str), "Du bist nun %s(%d) in der Fraktion %s.", FraktionInfo[pPlayer[pID][pFraktion]][NeuerRang], NeuerRang, FraktionInfo[pPlayer[pID][pFraktion]][0]);
SendClientMessage(pID,COLOR_LIGHTBLUE,str);
GetPlayerName(pID, name, sizeof(name));
format(str, sizeof(str), "Du hast %s den Rang %s(%d) in der Fraktion %s gegeben.", name, FraktionInfo[pPlayer[pID][pFraktion]][NeuerRang], NeuerRang, FraktionInfo[pPlayer[pID][pFraktion]][0]);
SendClientMessage(playerid,COLOR_LIGHTBLUE,str);
return 1;
}