15.09.2012, 10:24
Here is a script I made for "stats" just remove the extras or get an idea of how it's done:
pawn Code:
CMD:stats(playerid, params[])
{
new str[256], pName[24], IP[16];
new Money = GetPlayerMoney(playerid);
PlayerNameGet(playerid, pName, 24);
GetPlayerIp(playerid,IP,sizeof IP);
format(str, 256, "--||========================================-|%s's Stats|-=======================================", pName);
SendClientMessage(playerid,COLOR_WHITE,str);
format(str,128, ">"#COL_WHITE"%s: IP[%s] - Money[$%i] - Kills[%i] - Deaths[%i] - Admin[%i] - Skin[%i] - Score[%i] - Team[%i]",pName, IP, Money, PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pAdmin], GetPlayerSkin(playerid), PlayerInfo[playerid][pScore], PlayerInfo[playerid][pTeam]);
SendClientMessage(playerid,COLOR_WHITE,str);
return 1;
}