Restart Server not working?
#1

Hello i made in my admin script.And i maked Dialog when you type restert server didnt restart

pawn Код:
COMMAND:rconcon(playerid, params[])
{
   if(IsPlayerAdmin(playerid))
   {
      ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"{787878}Rcon {FFB400}Console","{FFB400}Restart Server","Ok","Cancel");
   }
   return 1;
}
And this is OnDialogResponse
pawn Код:
switch(123)
    {
        case 1:
        {
            if(!response)
            {
                SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
                return 1;
            }

            switch(listitem)
            {
                case 0:
                {
                   SendRconCommand("gmx");
                   SendClientMessageToAll(0xFF000000, "Server Is Re-Starting, Please Wait.........");
                }

            }

        }
        // rest of dialogs here!

    }
Reply
#2

Didn't this helped?
Reply
#3

Thanks man i was cant find it thanks again
Reply
#4

No problem. Goodluck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)