02.04.2011, 02:11
yes
pawn Code:
CMD:stats(playerid, params[])
{
new AdminRank[30];
new string[128];
new Name[MAX_PLAYER_NAME];
switch (PlayerData[playerid][AdminLevel])
{
case 0: format(AdminRank, 30, "(Not Admin)");
case 1: format(AdminRank, 30, "(Server Moderator)");
case 2: format(AdminRank, 30, "(Global Moderator)");
case 3: format(AdminRank, 30, "(Administrator)");
case 4: format(AdminRank, 30, "(Server Owner)");
}
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
format(string, sizeof(string), " {FFB300}Name: %s \n\n Adminlevel: %d %s\n\n Vip: %d\n\n Cash: %d\n\n Score: %d",Name,PlayerData[playerid][AdminLevel],AdminRank,PlayerData[playerid][vip],GetPlayerMoney(playerid),GetPlayerScore(playerid));
ShowPlayerDialog(playerid,10000,DIALOG_STYLE_MSGBOX, "Stats",string,"Close","");
return 1;
}