02.06.2014, 12:40
(
Последний раз редактировалось Rittik; 02.06.2014 в 12:46.
Причина: missed out something.
)
Код:
CMD:stats(playerid, params[]) { new str[956], yes[2][50]; if(pInfo[playerid][Logged] == 0) return SendClientMessage(playerid, COLOR_RED, "[Error]: You must be logged in to use this command!"); GetPlayerIp(playerid, pInfo[playerid][Ip], 16); switch(pInfo[playerid][NoPM]) { case 0: yes[0] = "Disable"; case 1: yes[0] = "Enable"; } switch(pInfo[playerid][PlayerTele]) { case 0: yes[1] = "Disable"; case 1: yes[1] = "Enable"; } format(str,sizeof(str), "{15D4ED}Player Name: %s\nIp Address: %s\nAdmin: %i\nVIP: %i\nDrugs: %i || Herione: %i || Cocaine: %i\nMoney: $%i\nScore: %i\nCookies: %i\nSkinID: %i\nPM: %s\nPlayer Teleport: %s\nBank Balance: $%i\nKills: %i || Deaths: %i || Ratio: NaN\n", GetName(playerid),pInfo[playerid][Ip],pInfo[playerid][Admin],pInfo[playerid][VIP],pInfo[playerid][Drugs], pInfo[playerid][Heroine], pInfo[playerid][Cocaine],GetPlayerMoney(playerid),GetPlayerScore(playerid),pInfo[playerid][Cookies],pInfo[playerid][SaveSkin],yes[0],yes[1],pInfo[playerid][BankWealth],pInfo[playerid][Kills], pInfo[playerid][Deaths]); ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, ""white"Stats", str, "Close", ""); SendAdminCMD(playerid, "stats"); return 1;