/stats help
#2

pawn Код:
CMD:stats(playerid, params[])
{
    new player;
    sscanf(params, "R(-1)", player);
    if(player==-1) player = playerid;
   
    new string[37], string2[128], PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(player, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), "%s's Statistics", PlayerName);
    format(string2, sizeof(string2), "Vip Level: %d\nKills: %d\nDeaths: %d\nRatio: %0.2f\nMoney: %d", PlayerInfo[player][pVip], PlayerInfo[player][pKills], PlayerInfo[player][pDeaths], PlayerInfo[player][pCash] );
    ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, string, string2, "Ok", "Cancel");
    return 1;
}
Try that out
Reply


Messages In This Thread
/stats help - by Ryan_Obeles - 21.03.2013, 04:17
Re: /stats help - by [ABK]Antonio - 21.03.2013, 04:40

Forum Jump:


Users browsing this thread: 1 Guest(s)