stats Command
#4

Try it:
PHP код:
CMD:stats(playerid,params[])
{
    new    
name[MAX_PLAYER_NAME],string[80];
    
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    
format(string,80,"[------------------------------ %s ------------------------------]",name);
    
SendClientMessage(playerid,COLOR_GREEN,string);
    
format(string,80,"Kills : %i     Deaths : %i     Suicides : %i     Ratio : %.f",pInfo[playerid][Kills],pInfo[playerid][Deaths],pInfo[playerid][Suicides],pInfo[playerid][Kills]/pInfo[playerid][Deaths]);
    
SendClientMessage(playerid,COLOR_RED,string);
    
format(string,80,"Money : %i      Score : %i     Rank : %i",pInfo[playerid][Money],pInfo[playerid][Scores],pInfo[playerid][Rank]+1);
    
SendClientMessage(playerid,COLOR_RED,string);
    
format(string,80,"Play Time : %i Hours, %i Minutes, %i Seconds .",pInfo[playerid][Hour],pInfo[playerid][Min],pInfo[playerid][Sec]);
    
SendClientMessage(playerid,COLOR_RED,string);
    
format(string,80,"Admin : %s     Admin Level : %i",pInfo[playerid][AdminLevel]?("Yes"):("No"),pInfo[playerid][AdminLevel]);
    
SendClientMessage(playerid,COLOR_RED,string);
    
format(string,80,"VIP : %s     VIP Level : %i",pInfo[playerid][VIPLevel]?("Yes"):("No"),pInfo[playerid][VIPLevel]);
    
SendClientMessage(playerid,COLOR_RED,string);
    return 
1;

Reply


Messages In This Thread
stats Command - by Opah - 17.01.2014, 02:02
Re: stats Command - by WantedBot - 17.01.2014, 02:11
Re: stats Command - by Excelize - 17.01.2014, 02:30
Re: stats Command - by Snir_sofer - 17.01.2014, 02:38
Re: stats Command - by Opah - 17.01.2014, 20:36
Re: stats Command - by Opah - 17.01.2014, 20:40
Re: stats Command - by donhu789 - 21.01.2014, 01:21
Re: stats Command - by Opah - 22.01.2014, 03:58
Re: stats Command - by donhu789 - 26.01.2014, 06:14

Forum Jump:


Users browsing this thread: 1 Guest(s)