Das Problem ist das der nicht Leader Posten Speichert und Rank System von Fraktion auch nicht
und bei Job system Sagt der nur die nummer im Stats Dialog da soll der Job Name stehen
Frak Rank PWN Code
ocmd:giverank(playerid,params[])
{
if(!PlayerRang(playerid,6))return SendClientMessage(playerid,ROT,"[Fehler]{FFFFFF} Dazu bist du nicht befugt.");
new pID,rangid,string[125];
if(sscanf(params,"ui",pID,rangid))return SendClientMessage(playerid,ROT,"[Hilfe]{FFFFFF} Benutze /giverank [ID/Teilname] [Rangnr.]");
SetPVarInt(pID,"Fraktionsrang",rangid);
format(string,sizeof(string),"[Fraktions Information]{FFFFFF} %s hat dir einen neuen Rang geben.",SpielerName(playerid));
SendClientMessage(pID,Grün,string);
return 1;
}
Makeleader PWN Code wird nicht gespeichert
ocmd:makeleader(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,4))return SendClientMessage(playerid,ROT,"[Fehler]{FFFFFF} Dazu bist du nicht befugt.");
SendClientMessage(playerid,Weis,"-----------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,Grün,"1. LSPD");
SendClientMessage(playerid,Grün,"2. Yakuza");
SendClientMessage(playerid,Grün,"3. Medic");
SendClientMessage(playerid,Grün,"4. Ballas");
SendClientMessage(playerid,Grün,"5. Grove Street");
SendClientMessage(playerid,Grün,"6. Transport GmBH");
SendClientMessage(playerid,Grün,"7. Oamt (Kommt noch!)");
SendClientMessage(playerid,Weis,"-----------------------------------------------------------------------------------------------------------------");
new pID,fID;
if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,ROT,"[Hilfe]{FFFFFF} Benutze /makeleader [ID/Teilname] [FraktionsID]");
SetPVarInt(pID,"Fraktion",fID);
SetPVarInt(playerid,"PlayerRank",6);
new string[128];
new FrakName[40];
if(fID == 1) { FrakName = fraktname1; }
else if(fID == 2) { FrakName = fraktname2; }
else if(fID == 3) { FrakName = fraktname3; }
else if(fID == 4) { FrakName = fraktname4; }
else if(fID == 5) { FrakName = fraktname5; }
else if(fID == 6) { FrakName = fraktname6; }
SpielerSpeichern(pID);
format(string,sizeof(string),"[Admin Information] {FFFFFF}Du hast %s zum Leader der Fraktion %s gemacht.",SpielerName(pID),FrakName);
SendClientMessage(playerid,Grün,string);
new string1[128];
format(string,sizeof(string1),"[Admin Information]{FFFFFF} Du wurdest von %s zum Leader der Fraktion %s gemacht",SpielerName(pID),FrakName);
SendClientMessage(pID,Grün,string1);
return 1;
}
Das Job System PWN Code
ocmd:job(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,5.0,362.4828,173.7526,1008.3828))
ShowPlayerDialog(playerid,DIALOG_JOB,DIALOG_STYLE_LIST,"Arbeitsamt","Mechanicker\nPilot\nBusfahrer\nStraßenreiniger\nTrucker\nTaxifahrer\nFischer\nKündigen"," "," ");
return 1;
}
Das Stats Dialog Job Wir gezeigt und es steht mein name mit so ein China zeichen
ocmd:stats(playerid,params[])
{
new string[400];
new FrakName[40];
new AdminName[40];
if(GetPVarInt(playerid,"Fraktion") == 1) { FrakName = fraktname1; }
else if(GetPVarInt(playerid,"Fraktion") == 2) { FrakName = fraktname2; }
else if(GetPVarInt(playerid,"Fraktion") == 3) { FrakName = fraktname3; }
else if(GetPVarInt(playerid,"Fraktion") == 4) { FrakName = fraktname4; }
else if(GetPVarInt(playerid,"Fraktion") == 5) { FrakName = fraktname5; }
else if(GetPVarInt(playerid,"Fraktion") == 6) { FrakName = fraktname6; }
if(GetPVarInt(playerid,"Adminlevel") == 0) { AdminName = "Kein Admin"; }
else if(GetPVarInt(playerid,"Adminlevel") == 1) { AdminName = "Probe Supporter"; }
else if(GetPVarInt(playerid,"Adminlevel") == 2) { AdminName = "Supporter"; }
else if(GetPVarInt(playerid,"Adminlevel") == 3) { AdminName = "Admin"; }
else if(GetPVarInt(playerid,"Adminlevel") == 4) { AdminName = "Stellv Projektleiter"; }
else if(GetPVarInt(playerid,"Adminlevel") == 5) { AdminName = "Projektleiter"; }
format(string,sizeof(string),"{FFFFFF}Statistiken von {FF6E00}%s{FFFFFF}\n\n{FF6E00}Name {FFFFFF}[%s] \n{FF6E00}Kills {FFFFFF}[%d] \n{FF6E00}Adminlevel {FFFFFF}[%s] \n{FF6E00}Geld {FFFFFF}[%d]{FF6E00}\nJob {FFFFFF}[%s]\n{FF6E00}Fraktion{FFFFFF} [%s]",SpielerName(playerid),SpielerName(playerid),GetPlayerScore(playerid),AdminName,GetPlayerMoney(playerid),GetPVarInt(playerid,"Job"),FrakName);
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Informationen", string, "Schließen", "");
return 1;
}