Hey , wie schon gesagt brauche hilfe.
Fraktions ID wird angezeigt Kein Fraktionsname.(bei job auch)
Textdraw's :
new ss[50];
format(ss,50,"Fraktion: %d",GetPVarInt(playerid,"Fraktion"));
Textdraw2 = TextDrawCreate(5.000000, 309.000000, ss);
TextDrawBackgroundColor(Textdraw2, 65535);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
format(ss,50,"Fraktion: %d",GetPVarInt(playerid,"Fraktion"));
Textdraw2 = TextDrawCreate(5.000000, 309.000000, ss);
TextDrawBackgroundColor(Textdraw2, 65535);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
new s[50];
format(s,50,"Level: %d",GetPlayerScore(playerid));
Textdraw3 = TextDrawCreate(4.000000, 294.000000, s);
TextDrawBackgroundColor(Textdraw3, 65535);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);
format(s,50,"Level: %d",GetPlayerScore(playerid));
Textdraw3 = TextDrawCreate(4.000000, 294.000000, s);
TextDrawBackgroundColor(Textdraw3, 65535);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);
new sss[50];
format(sss,50,"Job: %d",GetPVarInt(playerid,"Job"));
Textdraw4 = TextDrawCreate(6.000000, 325.000000, sss);
TextDrawBackgroundColor(Textdraw4, 65535);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
format(sss,50,"Job: %d",GetPVarInt(playerid,"Job"));
Textdraw4 = TextDrawCreate(6.000000, 325.000000, sss);
TextDrawBackgroundColor(Textdraw4, 65535);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
Code bei Stats(zeigt da Job & Frakt name an.) :
if(strcmp(cmdtext,"/stats",true)==0)
{
new statsstring[500];
new fraktname[500];
new jobname[500];
switch(GetPVarInt(playerid,"Job"))
{
case 0:{jobname="------";}
case 1:{jobname=jobname1;}
case 2:{jobname=jobname2;}
case 3:{jobname=jobname3;}
}
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname="Keine";}
case 1:{fraktname=fraktname1;}
case 2:{fraktname=fraktname2;}
case 3:{fraktname=fraktname3;}
case 4:{fraktname=fraktname4;}
case 5:{fraktname=fraktname5;}
case 6:{fraktname=fraktname6;}
case 7:{fraktname=fraktname7;}
//case 8:{fraktname=fraktname8;}
//case 9:{fraktname=fraktname9;}
//case 10:{fraktname=fraktname10;}[/expander]
}
format(statsstring,sizeof(statsstring),"{FFFFFF}Allgemein\n{00FF00}Fraktion: {FFFFFF}%s\n{00FF00}Level: {FFFFFF}%d\n{00FF00}Adminlevel: {FFFFFF}%i\n{00FF00}Zeit Bis Payday: {FFFFFF}%i/40 Minuten\n{00FF00}Geld: {FFFFFF}%d\n{00FF00}Ping: {FFFFFF}%d\n{00FF00}Job: {FFFFFF}%s",fraktname,GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),GetPVarInt(playerid,"Paytime"),GetPlayerMoney(playerid),GetPlayerPing(playerid),jobname);
ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Statistiken:",statsstring,"Schließen", "");
return 1;
}[/expander][/expander][/expander][/expander]
{
new statsstring[500];
new fraktname[500];
new jobname[500];
switch(GetPVarInt(playerid,"Job"))
{
case 0:{jobname="------";}
case 1:{jobname=jobname1;}
case 2:{jobname=jobname2;}
case 3:{jobname=jobname3;}
}
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname="Keine";}
case 1:{fraktname=fraktname1;}
case 2:{fraktname=fraktname2;}
case 3:{fraktname=fraktname3;}
case 4:{fraktname=fraktname4;}
case 5:{fraktname=fraktname5;}
case 6:{fraktname=fraktname6;}
case 7:{fraktname=fraktname7;}
//case 8:{fraktname=fraktname8;}
//case 9:{fraktname=fraktname9;}
//case 10:{fraktname=fraktname10;}[/expander]
}
format(statsstring,sizeof(statsstring),"{FFFFFF}Allgemein\n{00FF00}Fraktion: {FFFFFF}%s\n{00FF00}Level: {FFFFFF}%d\n{00FF00}Adminlevel: {FFFFFF}%i\n{00FF00}Zeit Bis Payday: {FFFFFF}%i/40 Minuten\n{00FF00}Geld: {FFFFFF}%d\n{00FF00}Ping: {FFFFFF}%d\n{00FF00}Job: {FFFFFF}%s",fraktname,GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),GetPVarInt(playerid,"Paytime"),GetPlayerMoney(playerid),GetPlayerPing(playerid),jobname);
ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Statistiken:",statsstring,"Schließen", "");
return 1;
}[/expander][/expander][/expander][/expander]