Make a huge string and format with all the info. Just how you display a normal stats function.
|
Stop trying to get others to do the coding for you. If you don't know about strings and variables, learn. Don't just edit scripts, actually learn pawn.
|
dcmd_stats(playerid,params[])
{
new string[128];
new level = PlayerInfo[playerid][Level]; // admin level
format(string,128,"Admin Level: %d",level); // %d represents the level variable we created, which substitutes PlayerInfo[playerid][Level]
SendClientMessage(playerid,-1,string);
return 1;
}
new StringMenu[1024]; format(StringMenu,sizeof(StringMenu),"%d\t{33cc33}MODE_EXIT\n",GetPVarInt(playerid,"OE_MODE_EXIT")); format(StringMenu,sizeof(StringMenu),"%s%d\t{33cc33}MODE_SWITCH\n",StringMenu,GetPVarInt(playerid,"OE_MODE_SWITCH")); format(StringMenu,sizeof(StringMenu),"%s%d\t{33cc33}MOVE_X_POS\n",StringMenu,GetPVarInt(playerid,"OE_MOVE_X_POS")); format(StringMenu,sizeof(StringMenu),"%s%d\t{33cc33}MOVE_X_NEG\n",StringMenu,GetPVarInt(playerid,"OE_MOVE_X_NEG")); format(StringMenu,sizeof(StringMenu),"%s%d\t{33cc33}MOVE_Y_POS\n",StringMenu,GetPVarInt(playerid,"OE_MOVE_Y_POS")); format(StringMenu,sizeof(StringMenu),"%s%d\t{33cc33}MOVE_Y_NEG\n",StringMenu,GetPVarInt(playerid,"OE_MOVE_Y_NEG")); format(StringMenu,sizeof(StringMenu),"%s%d\t{33cc33}MOVE_Z_POS\n",StringMenu,GetPVarInt(playerid,"OE_MOVE_Z_POS")); format(StringMenu,sizeof(StringMenu),"%s%d\t{33cc33}MOVE_Z_NEG\n",StringMenu,GetPVarInt(playerid,"OE_MOVE_Z_NEG")); format(StringMenu,sizeof(StringMenu),"%s%d\t{cccc33}RESET\n",StringMenu,GetPVarInt(playerid,"OE_RESET")); format(StringMenu,sizeof(StringMenu),"%s%d\t{cccc33}ALIGN\n",StringMenu,GetPVarInt(playerid,"OE_ALIGN")); ShowPlayerDialog(playerid,MenuConfig,DIALOG_STYLE_LIST,"Select Key to assign",StringMenu,"Select","Cancel");