STATS command.
#2

Here:

PHP код:
if (strcmp("/stats"cmdtexttrue5) == 0)
{
    
SendClientMessage(playerid0xFFFFFFFF" |- - - - - - - - - - - - - - - - - - - |");
    new 
string[128];
    new 
aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridaname,sizeof(aname));
    
format(string,sizeof(string), "%s These are your stats:"aname);
     
SendClientMessage(playerid0xFFFFFFFF,string);
     
format(string,sizeof(string), "- Cash: %i"GetPlayerMoney(playerid));
      
SendClientMessage(playerid0xFFFFFFFFstring);
      
format(string,sizeof(string), "- Kills: %i"PlayerInfo[playerid][pKills]);
       
SendClientMessage(playerid0xFFFFFFFFstring);
       
format(string,sizeof(string), "- Deaths: %i"PlayerInfo[playerid][pDeaths]);
       
SendClientMessage(playerid0xFFFFFFFFstring);
       
format(string,sizeof(string), "- Admin Level: %i"PlayerInfo[playerid][pAdmin]);
    
SendClientMessage(playerid0xFFFFFFFFstring);
    
SendClientMessage(playerid0xFFFFFFFF" |- - - - - - - - - - - - - - - - - - - |");
    return 
1;

Reply


Messages In This Thread
STATS command. - by Bug. - 27.10.2012, 14:32
Re: STATS command. - by gtakillerIV - 27.10.2012, 14:36
Re: STATS command. - by Bug. - 27.10.2012, 14:41
Re: STATS command. - by Bug. - 27.10.2012, 14:49
Re: STATS command. - by gtakillerIV - 27.10.2012, 14:54
Re: STATS command. - by Bug. - 27.10.2012, 14:56
Re: STATS command. - by gtakillerIV - 27.10.2012, 14:57
Re: STATS command. - by Bug. - 27.10.2012, 15:03
Re: STATS command. - by CmZxC - 27.10.2012, 15:05
Re: STATS command. - by Bug. - 27.10.2012, 15:07

Forum Jump:


Users browsing this thread: 2 Guest(s)