17.01.2014, 02:38
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;
}