Hey leute,
ich habe ein Problem ich will das /stats in dialog angezeigt wird aber ich weiß nicht wie ich es machen soll.
Hier alles was mit den Stats zu tuhen hat.
Zitatdcmd_stats(playerid,params[])
{
#pragma unused params
showstats(playerid,playerid);
return 1;
}
stock showstats(playerid,forplayerid)
{
new i[128],name[MAX_PLAYER_NAME],Float:xxhp;
GetPlayerHealth(playerid,xxhp);
GetPlayerName(playerid,name,sizeof name);
format(i,sizeof i,"----- %s -----",name);
SendClientMessage(forplayerid,cWhite,i);
format(i,sizeof i,"Level:[%d] Respektpunkte:[%d/%d] Health:[%f]",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pRP],PlayerInfo[playerid][pLevel]+1,xxhp);
SendClientMessage(forplayerid,cGrey,i);
format(i,sizeof i,"Kills:[%d] Tode:[%d] Geld:[%d] Bank:[%d]",PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],PlayerInfo[playerid][pCash],PlayerInfo[playerid][pBank]);
SendClientMessage(forplayerid,cGrey,i);
format(i,sizeof i,"Fraktion:[%s] Rank:[%d/%s] Leader:[%d] Funkkanal:[%d]",teamname[PlayerInfo[playerid][pTeam]],PlayerInfo[playerid][pRank],teamrank[PlayerInfo[playerid][pTeam]][PlayerInfo[playerid][pRank]],PlayerInfo[playerid][pFunk]);
SendClientMessage(forplayerid,cGrey,i);
format(i,sizeof i,"Wantedlevel:[%d] Telefon:[%d] Alter:[%d] Knastzeit:[%d]",PlayerInfo[playerid][pWanted],PlayerInfo[playerid][pNumber],PlayerInfo[playerid][pAlter],PlayerInfo[playerid][pJailTime]);
SendClientMessage(forplayerid,cGrey,i);
format(i,sizeof i,"----- %s -----",gamemodename);
SendClientMessage(forplayerid,cWhite,i);
}