24.05.2016, 17:02
Quote:
Originally Posted by WatchDog
Hi Can You Do Changes In One Of The Code And Show Me
Here Is The Linkhttps://sampforum.blast.hk/showthread.php?tid=607842 |
PHP Code:
CMD:moderators(playerid, params[])
{
new count = 0, string[256];
//SendClientMessage(playerid, blue,"Current online moderators:");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][Helper] == 1)
{
strcat(string,"Moderator: [%d]%s \n\r", i, PlayerName2(i));
count++;
}
ShowPlayerDialog(playerid, 542, DIALOG_STYLE_MSGBOX, "Current online Moderators: ", string, "OK", "");
//ShowPlayerDialog(playerid, DIALOG ID, DIALOG STYLE, HEADING, MESSAGE, BUTTON 1, BUTTON 2);
}
}
if(count == 0)
{
ShowPlayerDialog(playerid, 542, DIALOG_STYLE_MSGBOX, "Current Online Moderators: ", "No Mods Online!", "OK", "");
}
return 1;
}