if (strcmp("/stats", cmdtext, true, 10) == 0)
{
new string[128], Name[MAX_PLAYER_NAME], Geld = GetPlayerMoney(playerid), Score = GetPlayerScore(playerid), Kills = GetPVarInt(playerid), Deaths = GetPVarInt(playerid), AdminLevel = GetPVarInt(playerid);
GetPlayerName(playerid,Name,sizeof Name);
format(string, sizeof(string), "[Stats von %s]\n Name: %s\n Geld: %d\n Score: %d\n Kills: %i\n Deaths: %i\n AdminLevel: %d", Name, Name, Geld, Score, Kills,Deaths, AdminLevel);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"{FFFFFF}Stats",string,"OK","");
return 1;
}
Stock SpielSpeichern
dini_IntSet(Spielerdatei,"Kills",GetPVarInt(playerid,"Kills"));
dini_IntSet(Spielerdatei,"Deaths",GetPVarInt(playerid,"Deaths"));
Stock Register
dini_IntSet(Spielerdatei,"Kills",0);
dini_IntSet(Spielerdatei,"Deaths",0);
Stock SpielerLaden
SetPVarInt(playerid,"Kills",dini_Int(Spielerdatei,"Kills"));
SetPVarInt(playerid,"Deaths",dini_Int(Spielerdatei,"Deaths"));
Work
Name
Geld
Score
Not Work
Kills
Deaths
AdminLevel
Wie das ingame aus Sieht