lil question
#7

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;
}
Reply


Messages In This Thread
lil question - by tanush - 02.04.2011, 01:37
Re: lil question - by -Rebel Son- - 02.04.2011, 01:39
Re: lil question - by tanush - 02.04.2011, 01:48
Re: lil question - by -Rebel Son- - 02.04.2011, 01:53
Re: lil question - by tanush - 02.04.2011, 02:00
Re: lil question - by -Rebel Son- - 02.04.2011, 02:04
Re: lil question - by tanush - 02.04.2011, 02:11
Re: lil question - by -Rebel Son- - 02.04.2011, 02:15
Re: lil question - by tanush - 02.04.2011, 03:08
Re: lil question - by Joe Staff - 02.04.2011, 06:35
Re: lil question - by tanush - 02.04.2011, 13:05
Re: lil question - by tanush - 02.04.2011, 14:13
Re: lil question - by SchurmanCQC - 02.04.2011, 14:16
Re: lil question - by -Rebel Son- - 02.04.2011, 14:53
Re: lil question - by tanush - 03.04.2011, 20:37
Re: lil question - by tanush - 05.04.2011, 19:41
Re: lil question - by gamer931215 - 05.04.2011, 23:28

Forum Jump:


Users browsing this thread: 5 Guest(s)