Posts: 112
Threads: 8
Joined: Jan 2013
Quote:
Originally Posted by Infinity90
pawn Код:
CMD:annrestart(playerid, params[]) { if(PlayerInfo[playerid][pAdminLevel] >= 3) { for(new i=0; i < MAX_PLAYERS; i++) { new string[128]; strcat(string, "There is going to be a restart\nPlease /q to save your stats before the restart"); ShowPlayerDialog(i ,100, DIALOG_STYLE_MSGBOX, "Server Restarting Soon", string, "Close", ""); } return 1; } return 1; }
Wouldn't that work ?
|
you have forgotten the if statement
pawn Код:
if(IsPlayerConnected(i)){
to optimize the for loop because you don't want to create this Dialog for Player who 're not online