- 0
Ajutor /stats
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Marius Adrian Mihaila
Salut
Care ma poate ajuta si pe mine sa adaug la comanda /stats , bizz , house , si cate masini am ex: 7/10 si sa le pun pe ultimul rand si sa put toate spin Points/roll/gift etc intro categorie .
function ShowStats(playerid,targetid) {
if(!IsPlayerConnected(playerid) || !IsPlayerConnected(targetid)) return true;
new
string[500],
atext[20],
ttext[180],
rtext[180],
jtext[100],
drank[20],
vtext[20],
playersip[180],
radios[64],
drugs = PlayerInfo[targetid][pDrugs],
mats = PlayerInfo[targetid][pMats],
level = PlayerInfo[targetid][pLevel],
exp = PlayerInfo[targetid][pExp],
nxtlevel = PlayerInfo[targetid][pLevel],
expamount,
costlevel,
pnumber = PlayerInfo[targetid][pPhone],
rob = PlayerInfo[targetid][pRob],
warn = PlayerInfo[targetid][pWarns],
clan = PlayerInfo[targetid][pClan];
if(PlayerInfo[targetid][pMember] == 0) ttext = "None";
else format(ttext, sizeof(ttext), "%s (rank %d)", FactionName(PlayerInfo[targetid][pMember]), PlayerInfo[targetid][pRank]);
if(PlayerInfo[targetid][pSex] == 1) atext = "Male";
else if(PlayerInfo[targetid][pSex] == 2) atext = "Female";
if(PlayerInfo[targetid][pRank] != 0) format(rtext, 256, GetRankName(targetid));
else rtext = "-";
if(PlayerInfo[targetid][pJob] == 0) jtext = "None";
else format(jtext, sizeof(jtext), "%s", JobInfo[PlayerInfo[targetid][pJob]][jName]);
if(PlayerInfo[targetid][pPremiumAccount] == 0) { drank = "No"; }
else if(PlayerInfo[targetid][pPremiumAccount] == 1) { drank = "Yes"; }
else { drank = "Nu"; }
if(PlayerInfo[targetid][pVip] == 0) { vtext = "No"; }
else if(PlayerInfo[targetid][pVip] == 1) { vtext = "Yes"; }
expamount = nxtlevel*levelexp;
costlevel = nxtlevel*levelcost;
if(WTChannel[playerid] == 0) radios = "Disabled";
else format(radios, sizeof(radios), "#%d khz", WTChannel[playerid]);
format(string, sizeof(string), "General:{ffffff} Total hours %0.2f | Warns: %d/3 | Money: $%s | Bank: $%s | Phone: %d", PlayerInfo[targetid][pConnectTime], warn, GetCashStr(targetid), GetBankMoney(targetid), pnumber);
SCM(playerid, COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "Account:{ffffff} Level: %d | Respect Points: %d/%d | Next level: $%s | Premium Account: %s | Vip Account: %s | Premium Points: %d", level,exp,expamount,FormatNumber(costlevel),drank,vtext,PlayerInfo[targetid][pPremiumPoints]);
SCM(playerid, COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "Player:{ffffff} Crimes: %d | Drugs: %d | Mats: %d | Freq: %s | Rob: %d/10 | Escape: %d/20 | CPoints: %s | GiftPoints: %d/200 | Spin: %d/200 ", PlayerInfo[targetid][pCrimes], drugs,mats,radios,rob,PlayerInfo[targetid][pEscapePoints], FormatNumber(PlayerInfo[targetid][pCPoints]), PlayerInfo[targetid][pGiftPoints], PlayerInfo[targetid][pSpinPoints]);
SCM(playerid, COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "Points:{ffffff} Roll: %d/200", PlayerInfo[targetid][pRollPoints]);
SCM(playerid, COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "Other:{ffffff} Faction: %s | Faction Warns: %d/3 | Faction Punish: %d/30 | Referral: %d", ttext,PlayerInfo[targetid][pFACWarns], PlayerInfo[targetid][pFpunish], PlayerInfo[targetid][pSQLID]);
SCM(playerid, COLOR_LIGHTBLUE,string);
if(clan != 0) {
if(PlayerInfo[targetid][pClanRank] < 6) format(string, sizeof(string), "Clan:{ffffff} Clan: %s (%d) | Tag: %s | Rank: %d | Clan Warns: %d/3", ClanInfo[clan][clName], clan, ClanInfo[clan][clTag], PlayerInfo[targetid][pClanRank], PlayerInfo[targetid][pClanWarn]);
else format(string, sizeof(string), "Clan:{ffffff} Clan: %s (%d) | Tag: %s | Rank: %d | Clan Warns: %d/3 | Clan Days: %d", ClanInfo[clan][clName], clan, ClanInfo[clan][clTag], PlayerInfo[targetid][pClanRank], PlayerInfo[targetid][pClanWarn], ClanInfo[clan][clDays]);
SCM(playerid, COLOR_LIGHTBLUE, string);
}
if(PlayerInfo[targetid][pAdmin] != 0) {
format(string, sizeof(string), "AW: %d/3", PlayerInfo[targetid][pAW]);
}
if(PlayerInfo[targetid][pHelper] != 0) {
format(string, sizeof(string), "HW: %d/3", PlayerInfo[targetid][pHW]);
}
if(PlayerInfo[targetid][pLeader] != 0) {
format(string, sizeof(string), "LW: %d/3", PlayerInfo[targetid][pLW]);
}
if(PlayerInfo[targetid][pAdmin] >= 1) {
GetPlayerIp(targetid,playersip,sizeof(playersip));
format(string, sizeof(string), "Seconds: %.0f | AFK: %d | Interior ID: %d | Virtual World: %d | SQLID: %d | %s",PlayerInfo[targetid][pSeconds],AFKSeconds[targetid],GetPlayerInterior(targetid),GetPlayerVirtualWorld(targetid),PlayerInfo[targetid][pSQLID], string);
SCM(playerid, COLOR_LIGHTRED,string);
}
return true;
}
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now