01.06.2014, 04:10
Help me i wait to change this to dialog instead of sendclientmessage
Change this to dialog
Код:
CMD:admins(playerid, params[]) { new online, string[128]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] < 1) SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command!"); foreach(Player, i) { if(PlayerInfo[i][pHelper]) { online ++; } } format(string, sizeof(string), "|_____Philippine Roleplay[0.3z] Admins Team_____|"); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); foreach(Player, i) { if(PlayerInfo[i][pAdmin]) { format(string, sizeof(string), " %s %s ", RPALN(i), RPN(i)); SendClientMessage(playerid, COLOR_DARKRED, string); } } return 1; }