if(strcmp(cmdtext,"/stats",true)==0)
{
new fname[128],jobname[128];
new FRang[150],ACCDatei[100],respektname[40];
new levelupkost;
new string[150],string1[255],string2[255],string3[255];
new string4[196]/*string5[255]*/;
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fname="Keine";}
case 1:{fname=fraktname1;}
case 2:{fname=fraktname2;}
case 3:{fname=fraktname3;}
case 4:{fname=fraktname4;}
case 5:{fname=fraktname5;}
case 6:{fname=fraktname6;}
case 7:{fname=fraktname7;}
case 8:{fname=fraktname8;}
case 9:{fname=fraktname9;}
case 10:{fname=fraktname10;}
case 11:{fname=fraktname11;}
case 12:{fname=fraktname12;}
case 13:{fname=fraktname13;}
case 14:{fname=fraktname14;}
case 15:{fname=fraktname15;}
case 16:{fname=fraktname16;}
case 17:{fname=fraktname17;}
}
switch(GetPVarInt(playerid,"Job"))
{
case 0:{jobname="Keine";}
case 1:{jobname=jobname1;}
case 2:{jobname=jobname2;}
case 3:{jobname=jobname3;}
case 4:{jobname=jobname4;}
case 5:{jobname=jobname5;}
case 6:{jobname=jobname6;}
case 7:{jobname=jobname7;}
case 8:{jobname=jobname8;}
case 9:{jobname=jobname9;}
case 10:{jobname=jobname10;}
}
switch(GetPlayerScore(playerid))
{
case 0:{respektname=RESNAME1;levelupkost=1000;}
case 1:{respektname=RESNAME2;levelupkost=1500;}
case 2:{respektname=RESNAME3;levelupkost=3000;}
case 3:{respektname=RESNAME4;levelupkost=5000;}
case 4:{respektname=RESNAME5;levelupkost=7500;}
case 5:{respektname=RESNAME6;levelupkost=10500;}
case 6:{respektname=RESNAME7;levelupkost=14000;}
case 7:{respektname=RESNAME8;levelupkost=18000;}
case 8:{respektname=RESNAME9;levelupkost=22500;}
case 9:{respektname=RESNAME10;levelupkost=27500;}
case 10:{respektname=RESNAME11;levelupkost=33000;}
case 11:{respektname=RESNAME12;levelupkost=39000;}
case 12:{respektname=RESNAME13;levelupkost=45500;}
case 13:{respektname=RESNAME14;levelupkost=52500;}
case 14:{respektname=RESNAME15;levelupkost=59000;}
case 15:{respektname=RESNAME16;levelupkost=67000;}
case 16:{respektname=RESNAME17;levelupkost=75500;}
case 17:{respektname=RESNAME18;levelupkost=84500;}
case 18:{respektname=RESNAME19;levelupkost=94000;}
case 19:{respektname=RESNAME20;levelupkost=104000;}
case 20:{respektname=RESNAME21;levelupkost=114500;}
}
format(ACCDatei,100,"/Statistiken/%s.ini",SpielerName(playerid));
format(string,150,"Statistiken von: %s",SpielerName(playerid)); //GELB
if(GetPVarInt(playerid,"Perso") == 1)
{
format(string1,255,"[Vorname: %s] [Alter: %d] [Level: %d] [Geld: %d$] [Bank: %d$]",dini_Get(ACCDatei,"Vorname"),GetPVarInt(playerid,"PersoAlter"),GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPVarInt(playerid,"Bank"));
}
else
{
format(string1,255,"[Vorname: Kein Perso] [Alter: Kein Perso] [Level: %d] [Geld: %d$] [Bank: %d$]",GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPVarInt(playerid,"Bank"));
}
format(string2,255,"[Respekt: %d%s] [Kosten für das nächste Level Up: %d$] [Payday: %d/60 Minuten]",GetPVarInt(playerid,"Respekt"),respektname,levelupkost,GetPVarInt(playerid,"PayDay"));
format(string4,196,"[Material: %d] [Werkzeug: %d] [Draht: %d]",GetPVarInt(playerid,"Material"),GetPVarInt(playerid,"Werkzeug"),GetPVarInt(playerid,"Draht"));
format(FRang,150,"/FraktionRang/%s_Rang_%d.ini",fname,GetPVarInt(playerid,"FRank"));
if(dini_Exists(FRang))
{
format(string3,255,"[Fraktion: %s] [Fraktionrang: %s] [Job: %s] [Kills: %d] [Tode: %d] [Wanteds: %d]",fname,dini_Get(FRang,"RangName"),jobname,GetPVarInt(playerid,"Kills"),GetPVarInt(playerid,"Tote"),GetPVarInt(playerid,"Wanted"));
}
else
{
format(string3,255,"[Fraktion: %s] [Fraktionrang: Kein Rang] [Job: %s] [Kills: %d] [Tode: %d] [Wanteds: %d]",fname,jobname,GetPVarInt(playerid,"Kills"),GetPVarInt(playerid,"Tote"),GetPVarInt(playerid,"Wanted"));
}
/*for(new biz = 0; biz<MAX_BIZZ; biz++)
{
if(GetPVarInt(playerid,"Bizz") == 1)
{
new BizzDatei[20];
format(BizzDatei,20,"/Bizz/%d.txt",biz);
if(strcmp(bInfo[biz][Besitzer],SpielerName(playerid),false) == 0)
{
if(GetPVarInt(playerid,"Heiraten") == 1)
{
if(GetPVarInt(playerid,"Handy") == 1)
{
format(string5,255,"[Verheiratet mit: %s] [Biz: %s] [HandyNummer: %d] [Spielzeit insgesamt: %d Minuten]",dini_Get(ACCDatei,"Verheiratet"),dini_Get(BizzDatei,"Name"),GetPVarInt(playerid,"HandyNR"),GetPVarInt(playerid,"Spielzeit"));
}
else
{
format(string5,255,"[Verheiratet mit: %s] [Biz: %s] [HandyNummer: Kein Handy] [Spielzeit insgesamt: %d Minuten]",dini_Get(ACCDatei,"Verheiratet"),dini_Get(BizzDatei,"Name"),GetPVarInt(playerid,"Spielzeit"));
}
}
else
{
if(GetPVarInt(playerid,"Handy") == 1)
{
format(string5,255,"[Verheiratet mit: Niemand] [Biz: %s] [HandyNummer: %d] [Spielzeit insgesamt: %d Minuten]",dini_Get(BizzDatei,"Name"),GetPVarInt(playerid,"HandyNR"),GetPVarInt(playerid,"Spielzeit"));
}
else
{
format(string5,255,"[Verheiratet mit: Niemand] [Biz: %s] [HandyNummer: Kein Handy] [Spielzeit insgesamt: %d Minuten]",dini_Get(BizzDatei,"Name"),GetPVarInt(playerid,"Spielzeit"));
}
}
}
}
else
{
if(GetPVarInt(playerid,"Heiraten") == 1)
{
if(GetPVarInt(playerid,"Handy") == 1)
{
format(string5,255,"[Verheiratet mit: %s] [Biz: Kein Biz] [HandyNummer: %d] [Spielzeit insgesamt: %d Minuten]",dini_Get(ACCDatei,"Verheiratet"),GetPVarInt(playerid,"HandyNR"),GetPVarInt(playerid,"Spielzeit"));
}
else
{
format(string5,255,"[Verheiratet mit: %s] [Biz: Kein Biz] [HandyNummer: Kein Handy] [Spielzeit insgesamt: %d Minuten]",dini_Get(ACCDatei,"Verheiratet"),GetPVarInt(playerid,"Spielzeit"));
}
}
else
{
if(GetPVarInt(playerid,"Handy") == 1)
{
format(string5,255,"[Verheiratet mit: Niemand] [Biz: Kein Biz] [HandyNummer: %d] [Spielzeit insgesamt: %d Minuten]",GetPVarInt(playerid,"HandyNR"),GetPVarInt(playerid,"Spielzeit"));
}
else
{
format(string5,255,"[Verheiratet mit: Niemand] [Biz: Kein Biz] [HandyNummer: Kein Handy] [Spielzeit insgesamt: %d Minuten]",GetPVarInt(playerid,"Spielzeit"));
}
}
}
}*/
SendClientMessage(playerid,GELB,string);
SendClientMessage(playerid,WEISS,string1);
SendClientMessage(playerid,WEISS,string2);
SendClientMessage(playerid,WEISS,string3);
SendClientMessage(playerid,WEISS,string4);
//SendClientMessage(playerid,WEISS,string5);
return 1;
Etwas lang