31.12.2011, 18:50
Hello, I want to make list of admins command, if you are an admin you are PlayerInfo[playerid][pGmL] >= 1. How can I list every single connected player in a dialog, I thought it will be easy but then I thought how am I going to format each online admin in to different line in the dialog, so I need help.
And the thing im struggling with is that it needs to be global, I cant use PlayerInfo[playerid], insted of palyerid it needs to check, so can someone help me do this..
pawn Код:
if(strcmp(cmd, "/a", true) == 0)
if(strcmp(cmd, "/a", true) == 0)
{
new text12[256];
new option1[128];
if(PlayerInfo[playerid][pGmL] >= 1)
{
format(option1,sizeof(option1),"%s",WHAT HERE);
format(text12,sizeof(text12),"%s\n%s",option1,option2);
ShowPlayerDialog(playerid, 0504, DIALOG_STYLE_LIST, "Admins:", text12, "", "Ok");
}
}