Yo Guten Tag Ich wollte mal mein /stats anpassen doch habe ich keine ahnung wie ich das tue
geht dies mit einem programm oder so??
Dialog editor und das soll dann iwi so aussehen
meiner ist jetzt so
PHP
public ShowStats(playerid, targetid)
{
if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))
{
new cash = PlayerInfo[targetid][pCash];
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Deutschland"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Österreich"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Schweiz"; }
new TeamText[20];
if(PlayerInfo[targetid][pMember] == -1 && PlayerInfo[targetid][pLeader] == -1) { TeamText = "Zivilist"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { TeamText = "Drift Access"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { TeamText = "Brigada"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { TeamText = "Medic"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { TeamText = "La Cosa Nostra"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { TeamText = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { TeamText = "FBI"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { TeamText = "Hitman Agency"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { TeamText = "News Reporter"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { TeamText = "Wheelman Agency"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { TeamText = "Fahrschullehrer"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { TeamText = "Regierung"; }
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { TeamText = "Ordnungsamt"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { TeamText = "LS-PD"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { TeamText = "Biker Boys"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { TeamText = "SF-PD"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { TeamText = "Camorra"; }
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { TeamText = "V.L.Aztecas"; }
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19) { TeamText = "Grove Street"; }
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20) { TeamText = "Ballas"; }
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21) { TeamText = "West Coast Customs"; }
else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22) { TeamText = "Triaden"; }
else if(PlayerInfo[targetid][pMember] == 23 || PlayerInfo[targetid][pLeader] == 23) { TeamText = "Red Soldiers"; }
else if(PlayerInfo[targetid][pMember] == 24 || PlayerInfo[targetid][pLeader] == 24) { TeamText = "L.S.Vagos"; }
else if(PlayerInfo[targetid][pMember] == 25 || PlayerInfo[targetid][pLeader] == 25) { TeamText = "Irish Crime Family"; }
else if(PlayerInfo[targetid][pMember] == 26 || PlayerInfo[targetid][pLeader] == 26) { TeamText = "Cali Kartell"; }
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { TeamText = "SF Rifa"; }
new ktext[20];
if(PlayerInfo[targetid][pKrankenkasse] == 1) { ktext = "SA-Krankenkasse"; }
else if(PlayerInfo[playerid][pKrankenkasse] == 0) { ktext = "Keine"; }
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
else if(STDPlayer[targetid] == 2) { dtext = "Tripper"; }
else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
else { dtext = "Keine"; }
new jtext[80];
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Privatdetektiv"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Rechtsvertreter"; }
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Kurtisane"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogendealer"; }
else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Coder"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Taschedieb"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Schusswaffenhändler"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Landwirt"; }
else if(PlayerInfo[targetid][pJob] == 11) { jtext = "Wurstwaren-Händler"; }
// else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Tuner"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Fernlastfahrer"; }
// else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Straßenfeger"; }
else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Pilot"; }
else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Kurierdienstfahrer"; }
else if(PlayerInfo[targetid][pJob] == 20) { jtext = "Fachkraft für Kreislauf- und Abfallwirtschaft"; }
else if(PlayerInfo[targetid][pJob] == 123) { jtext = "Bergwerksarbeiter"; }
else { jtext = "Arbeitslos"; }
new drank[20];
if(PlayerInfo[targetid][pDonatorRank] == 1) { drank = "Premium"; }
else if(PlayerInfo[targetid][pDonatorRank] == 2)
{
drank = "Donator";
}
else { drank = "Normal"; }
new married[24];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
GetPlayerRankText(targetid);
new age = PlayerInfo[targetid][pAlter],
ptime = PlayerInfo[targetid][pConnectTime],
lotto = PlayerInfo[targetid][pLottoNr],
deaths = PlayerInfo[targetid][pDeaths],
fishes = PlayerInfo[targetid][pFishes],
bigfish = PlayerInfo[targetid][pBiggestFish],
crimes = PlayerInfo[targetid][pCrimes],
warrests = PlayerInfo[targetid][pArrestTime]/60,
drugs = PlayerInfo[targetid][pDrugs],
SaveMats = PlayerInfo[targetid][pSaveMats],
SaveDrugs = PlayerInfo[targetid][pSaveDrugs],
mats = PlayerInfo[targetid][pMats],
SaveCodes = PlayerInfo[targetid][pSaveCodes],
Codes = PlayerInfo[targetid][pCodes],
wanted = PlayerInfo[targetid][pWantedLevel],
level = PlayerInfo[targetid][pLevel],
exp = PlayerInfo[targetid][pRespekt],
kills = PlayerInfo[targetid][pKills],
skills = PlayerInfo[targetid][psKills],
Nummer = PlayerInfo[targetid][pNummer],
account = PlayerInfo[targetid][pBank],
nxtlevel = PlayerInfo[targetid][pLevel]+1,
expamount = nxtlevel*levelexp,
costlevel = nxtlevel*levelcost,
housekey = PlayerInfo[targetid][pPhousekey],
bizkey = PlayerInfo[targetid][pBizKey],
intir = GetPlayerInterior(targetid),
local = PlayerInfo[targetid][pLocal],
warns = PlayerInfo[targetid][pWarns],
Float:shealth = PlayerInfo[targetid][pSHealth],
Float:Health,
DrunkLevel = GetPlayerDrunkLevel(targetid),
SQLid = PlayerInfo[targetid][pSQLID],
name[MAX_PLAYER_NAME],
Float:px,
Float:py,
Float:pz;
if(PlayerInfo[targetid][pDonatorRank] == 2)
{
costlevel = costlevel/2;
}
new coordsstring1[50];
new coordsstring2[256];
new coordsstring3[256];
new coordsstring4[256];
new coordsstring5[256];
new coordsstring6[256];
new coordsstring7[256];
new coordsstring8[256];
new coordsstring9[256];
new coordsstring10[256];
new insgesamtstring[2000];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid, Health);
GetPlayerPos(targetid, px, py, pz);
format(coordsstring1, sizeof(coordsstring1),"Stats von %s ",name);
format(coordsstring2, sizeof(coordsstring2), "Level:[%d] Geschlecht:[%s] Alter:[%d] Spawnenergie:[%.1f] Bargeld:[%s$] Bank:[%s$] Tel.:[%d]", level,atext,age,shealth, GetPoint(cash), GetPoint(account), Nummer);
format(coordsstring3, sizeof(coordsstring3), "Accounttyp:[%s] Ehe:[%s] Spielzeit:[%d] Spawn:[%s] Respekt:[%d/%d] NextLevel:[%s$]", drank,married,ptime,otext,exp,expamount,GetPoint(costlevel));
if(PlayerInfo[targetid][pInviteSperre] > 0 || PlayerInfo[targetid][pDonatorZeit] > 10)
{
if(PlayerInfo[targetid][pInviteSperre] > 0 && PlayerInfo[targetid][pDonatorZeit] > 10)
{
new DonatorTimes[4], DonatorTim = PlayerInfo[targetid][pDonatorZeit]-Time();
ConvertSecEx( DonatorTim , DonatorTimes[0] , DonatorTimes[1] , DonatorTimes[2] , DonatorTimes[3]);
new _converts[4], Zeit = PlayerInfo[targetid][pInviteSperre]-Time();
ConvertSecEx( Zeit , _converts[0] , _converts[1] , _converts[2] , _converts[3]);
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] Donator-Restzeit:[%d Tage, %d Stunden %d Minuten] Invitesperre:[%d Tage, %d Stunden %d Minuten] Minuten seit Payday:[%d]", warns, DonatorTimes[3], DonatorTimes[2], DonatorTimes[1], _converts[3], _converts[2], _converts[1], PlayerInfo[targetid][pPayDay]);
}
if(PlayerInfo[targetid][pInviteSperre] == 0 && PlayerInfo[targetid][pDonatorZeit] > 10)
{
new DonatorTimes[4], DonatorTim = PlayerInfo[targetid][pDonatorZeit]-Time();
ConvertSecEx( DonatorTim , DonatorTimes[0] , DonatorTimes[1] , DonatorTimes[2] , DonatorTimes[3]);
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] Donator-Restzeit:[%d Tage, %d Stunden %d Minuten] Invitesperre:[Keine Invitesperre] Minuten seit Payday:[%d]", warns, DonatorTimes[3], DonatorTimes[2], DonatorTimes[1], PlayerInfo[targetid][pPayDay]);
}
if(PlayerInfo[targetid][pInviteSperre] > 0 && PlayerInfo[targetid][pDonatorZeit] < 10)
{
new _converts[4], Zeit = PlayerInfo[targetid][pInviteSperre]-Time();
ConvertSecEx( Zeit , _converts[0] , _converts[1] , _converts[2] , _converts[3]);
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] Invitesperre:[%d Tage, %d Stunden %d Minuten] Minuten seit Payday:[%d]", warns, _converts[3], _converts[2], _converts[1], PlayerInfo[targetid][pPayDay]);
}
}
else
{
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] Invitesperre:[Keine Invitesperre] Minuten seit Payday:[%d]", warns, PlayerInfo[targetid][pPayDay]);
}
format(coordsstring5, sizeof(coordsstring5), "Team:[%s] Organisation:[%s] Rank:[%s] Job:[%s]",TeamText, PlayerInfo[targetid][pOrgaName],RankText,jtext);
format(coordsstring6, sizeof(coordsstring6), "Fische:[%d] Größter Fisch:[%d] Materialien:[%d] Drogen:[%d] SafeMats:[%d] SafeDrugs:[%d] Codes:[%d]",fishes,bigfish,mats,drugs,SaveMats,SaveDrugs,Codes);
format(coordsstring7, sizeof(coordsstring7), "LottoNr:[%d] Kondome:[%d] Krankenkasse:[%s] HackingCodes:[%d(+%d)/100]",lotto,Condom[targetid],ktext,SaveCodes);
format(coordsstring8, sizeof(coordsstring8), "Kills(DM):[%d(%d)] Tode:[%d] WantedLevel:[%d] Verbrechen:[%d] Gefängniszeit:[%d Min.] DM-Rate:[%0.2f]",kills,skills,deaths,wanted,crimes,warrests,Float:PlayerInfo[targetid][psKills]/Float:PlayerInfo[targetid][pConnectTime]);
format(coordsstring9, sizeof(coordsstring9), "Health:[%.1f] Trunkenheitslevel:[%d] Krankheit:[%s]",Health,DrunkLevel,dtext);
if(PlayerInfo[playerid][pAdmin] >= 4)
{
format(coordsstring10, sizeof(coordsstring10), "Haus Schlüssel:[%d] Business Schlüssel:[%d] Interior:[%d] Location:[%d] IP:[%s] SQLID:[%d]", housekey,bizkey,intir,local, PlayerInfo[targetid][pUserIP],SQLid);
}
else
{
format(coordsstring10, sizeof(coordsstring10), "Haus Schlüssel:[%d] Business Schlüssel:[%d] Interior:[%d] Location:[%d] Logverzeichnis:[%d]", housekey,bizkey,intir,local,SQLid);
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(insgesamtstring,sizeof(insgesamtstring), "\n[[Account]]\n%s\n%s\n%s\n\n[[Beruf]]\n%s\n\n[[Besitz]]\n%s\n%s\n\n[[Verbrechen]]\n%s\n\n[[Zustand]]\n%s\n\n[[Zusatz]]\n%s", coordsstring2, coordsstring3, coordsstring4, coordsstring5, coordsstring6, coordsstring7, coordsstring8, coordsstring9, coordsstring10);
ShowPlayerDialog(playerid, StatsDialoge, DIALOG_STYLE_MSGBOX, coordsstring1, insgesamtstring, "Schließen", "");
}
else
{
format(insgesamtstring,sizeof(insgesamtstring),"\n[[Account]]\n%s\n%s\n%s\n\n[[Beruf]]\n%s\n\n[[Besitz]]\n%s\n%s\n\n[[Verbrechen]]\n%s\n\n[[Zustand]]\n%s",coordsstring2, coordsstring3, coordsstring4, coordsstring5, coordsstring6, coordsstring7, coordsstring8,coordsstring9);
ShowPlayerDialog(playerid, StatsDialoge, DIALOG_STYLE_MSGBOX, coordsstring1, insgesamtstring, "Schließen", "");
}
}
}
Alles anzeigen
soll z.b so aussehen