/stats cmd with showplayerdialog
#3

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
PHP код:
CMD:stats(playeridparams[])
{
    new 
string[500], title[32], playerName[MAX_PLAYER_NAME]; 
   
    
GetPlayerName(playeridplayerNamesizeof(playerName));
    
format(titlesizeof(title), "%s"playerName);   
 
     
format(string,sizeof(string),"[General] - [Money: %d] | [Deaths: %d] | [Kills: %d] | [Score: %d] | [Admin 
     Level: %d]"
,PlayerInfo[playerid][pCash],PlayerInfo[playerid][pDeaths],PlayerInfo[playerid]
     [
pKills],PlayerInfo[playerid][pScore],PlayerInfo[playerid][pAdmin]);
     
ShowPlayerDialog(playeridDIALOG_STATSDIALOG_STYLE_MSGBOXtitlestring"kill""");
    return 
true;

I recommend making a return name function.
oh i see didn't think of making it this way! thanks
Reply


Messages In This Thread
/stats cmd with showplayerdialog - by MrCesar - 26.06.2017, 07:00
Re: /stats cmd with showplayerdialog - by Kane - 26.06.2017, 07:18
Re: /stats cmd with showplayerdialog - by MrCesar - 26.06.2017, 07:26

Forum Jump:


Users browsing this thread: 4 Guest(s)