how to make this ?
#1

Solved
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, 0, 1, "Caption", "Text", "Okay", "");
Reply
#3

I know the dialog ...
Reply
#4

Quote:
Originally Posted by Krx17
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid, 0, 1, "Caption", "Text", "Okay", "");
Dude he wants to know how to make a command that shows the online admins -.-
Reply
#5

Try this but I have no idea if it will work or not.

pawn Код:
CMD:admins(playerid, params[])
{
     for(new i; i<MAX_PLAYERS; i++); // loops through all the players
     {
         if(PlayerInfo[i][pAdmin] >= 1)
         {
             new name[24];// creating a variable for the players name
             GetPlayerName(i, name, sizeof(name));// gets the players name and stores it to the variable name
             format(string,sizeof(string), " %s\r\n ", name);
             ShowPlayerDialog(playerid, 0, 1, "Admins Online", string, "Close", "");
         }
     }
     return 1;
}
Reply
#6

I solved it by himself, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)