[FilterScript] • RAM - Remote Administration Menu •
#22

Quote:
Originally Posted by Emmet_
Посмотреть сообщение


Seriously, who gives a fuck? Why won't you even say nice to the guy for once? You're only here to tell us the meaning of 'Remote' so you can gain fame with your post-count, when you're just wasting time. We already know, now fuck off pls

Also, you should add one for /rcon ban (Ban Player) at the last one. It's quite easy.

pawn Код:
// Put this somewhere..
ShowPlayerDialog(playerid, 6969, DIALOG_STYLE_INPUT, "Ban Player", "Enter the name / ID of the player you wish to ban.", "Ban", "Cancel");

// OnDialogResponse
if(dialogid == 6969) {
    if(!(response)) return 0;
    else {
        if(inputtext[0]) {
            new
                bool: numeric,
                str [128],
                k;

            do
            {
                if(inputtext[k] >= '0' && inputtext[k] <= '9')
                {
                    numeric = true;
                    break;
                }
                k++;
            }
            while (k < strlen(inputtext));

            if(numeric == true) {
                format(str, sizeof(str), "ban %d", strval(inputtext));
                SendRconCommand(str);
            }
            else {
                new
                    i,
                    pname[24];

                do
                {
                    if(!(i == 65535)) {
                        GetPlayerName(i, pname, 24);
                        if(strfind(inputtext, pname, false) != -1) {
                            format(str, sizeof(str), "ban %d", i);
                            SendRconCommand(str);
                        }
                    }
                    i++;
                }
                while(i < MAX_PLAYERS);
            }
        }
    }
}
Not tested.
I will add ban and kick, dont worry!
Thank you!
Reply


Messages In This Thread
• RAM - Remote Administration Menu • - by fiki574 - 23.11.2011, 16:34
Re: • RAM - Remote Administration Menu • - by BigAl - 23.11.2011, 16:43
Re: • RAM - Remote Administration Menu • - by Biesmen - 23.11.2011, 16:52
Re: • RAM - Remote Administration Menu • - by fiki574 - 23.11.2011, 16:54
Re: • RAM - Remote Administration Menu • - by System64 - 23.11.2011, 17:56
Re: • RAM - Remote Administration Menu • - by juraska - 23.11.2011, 18:01
Re: • RAM - Remote Administration Menu • - by Jochemd - 23.11.2011, 18:20
Re: • RAM - Remote Administration Menu • - by NessaHD - 23.11.2011, 18:23
Re: • RAM - Remote Administration Menu • - by fiki574 - 23.11.2011, 18:32
Re: • RAM - Remote Administration Menu • - by Norn - 23.11.2011, 19:55
Re: • RAM - Remote Administration Menu • - by fiki574 - 23.11.2011, 20:05
Re: • RAM - Remote Administration Menu • - by Norn - 24.11.2011, 01:34
Re: • RAM - Remote Administration Menu • - by Biesmen - 24.11.2011, 07:19
Re: • RAM - Remote Administration Menu • - by Langley - 24.11.2011, 10:27
Re: • RAM - Remote Administration Menu • - by fiki574 - 24.11.2011, 13:03
Re: • RAM - Remote Administration Menu • - by Emmet_ - 24.11.2011, 17:23
Re: • RAM - Remote Administration Menu • - by fiki574 - 24.11.2011, 19:06
Re : • RAM - Remote Administration Menu • - by mehdi-jumper - 24.11.2011, 19:21
Re: • RAM - Remote Administration Menu • - by Norn - 25.11.2011, 16:24
Re: • RAM - Remote Administration Menu • - by fiki574 - 25.11.2011, 18:11
Re: • RAM - Remote Administration Menu • - by Emmet_ - 26.11.2011, 09:12
Re: • RAM - Remote Administration Menu • - by fiki574 - 26.11.2011, 09:22
Re: • RAM - Remote Administration Menu • - by Norn - 26.11.2011, 13:36
Re: • RAM - Remote Administration Menu • - by Emmet_ - 26.11.2011, 14:01
Re: • RAM - Remote Administration Menu • - by fiki574 - 26.11.2011, 16:06
Re: • RAM - Remote Administration Menu • - by Norn - 26.11.2011, 16:16
AW: • RAM - Remote Administration Menu • - by Bosnian - 26.11.2011, 17:02
Re: AW: • RAM - Remote Administration Menu • - by fiki574 - 26.11.2011, 17:19
AW: • RAM - Remote Administration Menu • - by Bosnian - 26.11.2011, 17:50
Re: AW: • RAM - Remote Administration Menu • - by fiki574 - 26.11.2011, 17:57
Re: • RAM - Remote Administration Menu • - by Mr.Faqahat - 26.12.2011, 08:50
Respuesta: • RAM - Remote Administration Menu • - by adri93 - 26.12.2011, 09:36
Re: Respuesta: • RAM - Remote Administration Menu • - by fiki574 - 26.12.2011, 13:20
Re: • RAM - Remote Administration Menu • - by Arsham7 - 26.12.2011, 13:27
Re: • RAM - Remote Administration Menu • - by WarToFar - 26.12.2011, 13:32
Re: • RAM - Remote Administration Menu • - by fiki574 - 26.12.2011, 13:38
Re: • RAM - Remote Administration Menu • - by KeKe98 - 26.12.2011, 17:19
Re: • RAM - Remote Administration Menu • - by fiki574 - 26.12.2011, 18:27
Re: • RAM - Remote Administration Menu • - by Astralis - 26.12.2011, 18:54
Re: • RAM - Remote Administration Menu • - by fiki574 - 26.12.2011, 19:34
Re: • RAM - Remote Administration Menu • - by Adzdon - 23.01.2012, 15:12
Re: • RAM - Remote Administration Menu • - by Niko_boy - 23.01.2012, 15:41
Re: • RAM - Remote Administration Menu • - by fiki574 - 23.01.2012, 18:44
Re: • RAM - Remote Administration Menu • - by grigor - 13.05.2012, 13:01
Re: • RAM - Remote Administration Menu • - by Firo - 13.05.2012, 17:08
Re: • RAM - Remote Administration Menu • - by HaZaRaS™ - 13.05.2012, 17:12
Re: • RAM - Remote Administration Menu • - by fiki574 - 13.05.2012, 21:21
Re: • RAM - Remote Administration Menu • - by Goldilox - 27.05.2012, 18:39

Forum Jump:


Users browsing this thread: 9 Guest(s)