Expression [REP]
#8

PHP код:
CMD:stats(playeridparams[])
{
    new 
str[900], str2[70], giveidAdminRank[30], weaponset[30];
    if (
sscanf(params"u"giveid)) return SendClientMessage(playerid0x6FFF00FF"{F07F1D}USAGE: {BBFF00}/stats ");
    if (
giveid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1""RED"ERROR: "GREY"Invalid player ID!");
    switch (
PlayerInfo[giveid][Admin])
    {
        case 
0AdminRank "Regular Player";
        case 
1AdminRank "{15C257}Moderator";
        case 
2AdminRank "{EDD628}Administrator";
        case 
3AdminRank "{3D77F5}Head Administrator";
        case 
4AdminRank "{F55F3D}Server Owner";
    }
    switch (
PlayerInfo[giveid][WeaponSet])
    {
        case 
0weaponset "Standard";
        case 
1weaponset "Advanced";
        case 
2weaponset "Expert";
        case 
3weaponset "Custom";
    }
    if(
PlayerInfo[playerid][Admin] >= 1)
    {
        
format(str,sizeof(str),""ORANGE"IP Address: \t\t"WHITE"["STEELBLUE"%s"WHITE"]\n",GetIP(giveid));
        
format(str,sizeof(str),""ORANGE"Account ID: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][AccID]);
        
format(str,sizeof(str),""ORANGE"Score:    \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",GetPlayerScore(giveid));
        
format(str,sizeof(str),""ORANGE"Money:    \t\t"WHITE"["STEELBLUE"$%i"WHITE"]\n",GetPlayerMoney(giveid));
        
format(str,sizeof(str),""ORANGE"Bank Cash: \t\t"WHITE"["STEELBLUE"$%i"WHITE"]\n",Bank_Balance[playerid]);
        
format(str,sizeof(str),""ORANGE"Admin Level: \t\t"WHITE"["STEELBLUE"%i"WHITE"] - "WHITE"[%s"WHITE"]\n",PlayerInfo[giveid][Admin]);
        
format(str,sizeof(str),""ORANGE"V.I.P. Level: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][VIP]);
        
format(str,sizeof(str),""ORANGE"Member since: \t\t"WHITE"["STEELBLUE"%s"WHITE"]\n",PlayerInfo[giveid][RegOn]);
        
format(str,sizeof(str),""ORANGE"Weaponset: \t\t"WHITE"["STEELBLUE"%s"WHITE"]\n",weaponset);
        
format(str,sizeof(str),""ORANGE"Skin ID: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",GetPlayerSkin(giveid));
        
format(str,sizeof(str),""ORANGE"Kills: \t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][Kills]);
        
format(str,sizeof(str),""ORANGE"Deaths: \t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][Deaths]);
        
format(str,sizeof(str),""ORANGE"Money bags found: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][MBsFound]);
        
format(str,sizeof(str),""ORANGE"Reaction test won:\t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][ReactionsWon]);
        
format(str,sizeof(str),""ORANGE"LMS events won: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",LMSWins(giveid));
        
format(str,sizeof(str),""ORANGE"Fallouts Won: \t\t"WHITE"["STEELBLUE"%d"WHITE"]\n",PlayerInfo[giveid]FalloutsWon]);
    }
    else
    {
        
format(str,sizeof(str),""ORANGE"Account ID: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][AccID]);
        
format(str,sizeof(str),""ORANGE"Score:    \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",GetPlayerScore(giveid));
        
format(str,sizeof(str),""ORANGE"Money:    \t\t"WHITE"["STEELBLUE"$%i"WHITE"]\n",GetPlayerMoney(giveid));
        
format(str,sizeof(str),""ORANGE"Admin Level: \t\t"WHITE"["STEELBLUE"%i"WHITE"] - "WHITE"[%s"WHITE"]\n",PlayerInfo[giveid][Admin]);
        
format(str,sizeof(str),""ORANGE"V.I.P. Level: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][VIP]);
        
format(str,sizeof(str),""ORANGE"Member since: \t\t"WHITE"["STEELBLUE"%s"WHITE"]\n",PlayerInfo[giveid][RegOn]);
        
format(str,sizeof(str),""ORANGE"Weaponset: \t\t"WHITE"["STEELBLUE"%s"WHITE"]\n",weaponset);
        
format(str,sizeof(str),""ORANGE"Skin ID: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",GetPlayerSkin(giveid));
        
format(str,sizeof(str),""ORANGE"Kills: \t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][Kills]);
        
format(str,sizeof(str),""ORANGE"Deaths: \t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][Deaths]);
        
format(str,sizeof(str),""ORANGE"Money bags found: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][MBsFound]);
        
format(str,sizeof(str),""ORANGE"Reaction test won:\t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",PlayerInfo[giveid][ReactionsWon]);
        
format(str,sizeof(str),""ORANGE"LMS events won: \t\t"WHITE"["STEELBLUE"%i"WHITE"]\n",LMSWins(giveid));
        
format(str,sizeof(str),""ORANGE"Fallouts Won: \t\t"WHITE"["STEELBLUE"%d"WHITE"]\n",PlayerInfo[giveid]FalloutsWon]);
    }
    
format(str2sizeof(str2), " {%06x}%s(%i)'s account statistics\n\n%s", (GetPlayerColor(giveid) >>> 8), GetName(giveid), giveid,str);
    
ShowPlayerDialog(playeridDIALOG_STATSDIALOG_STYLE_MSGBOXstr2str"OK""");
    return 
1;

Reply


Messages In This Thread
Expression [REP] - by fireranger11 - 20.05.2017, 10:59
Re: Expression [REP] - by Aly - 20.05.2017, 11:10
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:14
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:18
Re: Expression [REP] - by Aly - 20.05.2017, 11:18
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:21
Re: Expression [REP] - by Aly - 20.05.2017, 11:27
Re: Expression [REP] - by StrikerZ - 20.05.2017, 11:30
Re: Expression [REP] - by fireranger11 - 20.05.2017, 11:35
Re: Expression [REP] - by Aly - 20.05.2017, 11:37

Forum Jump:


Users browsing this thread: 1 Guest(s)