SA-MP Forums Archive
irccmd :checkban - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: irccmd :checkban (/showthread.php?tid=564285)



irccmd :checkban - LazyB0y - 20.02.2015

Hi I need a cmd for irc !checkban
if I type !checkban [playername]
it tells whether the player is banned or not and if he is banned so it tells at which time and date he was banned..
I am still using the samp.ban file for banning
and this cmd for banning player..
pawn Код:
IRCCMD:ban(botid, channel[], user[], host[], params[])
    {
            if (IRC_IsOp(botid, channel, user))
            {
                    new playerid, reason[64];
                    if (sscanf(params, "dS(No reason)[64]", playerid, reason))
                    {
                            return 1;
                    }
                    if (IsPlayerConnected(playerid))
                    {
                            new msg[128], name[MAX_PLAYER_NAME];
                            GetPlayerName(playerid, name, sizeof(name));
                            format(msg, sizeof(msg), "02*** %s has been banned by %s on IRC. (%s)", name, user, reason);
                            IRC_GroupSay(groupID, channel, msg);
                            format(msg, sizeof(msg), "*** %s has been banned by %s on IRC. (%s)", name, user, reason);
                            SendClientMessageToAll(0x0000FFFF, msg);
                            // Ban the player
                            BanEx(playerid, reason);
                    }
            }
            return 1;
    }



Re: irccmd :checkban - LazyB0y - 20.02.2015

Please Urgent!


Re: irccmd :checkban - Vince - 20.02.2015

You cannot search the samp.ban file.


Re: irccmd :checkban - LazyB0y - 20.02.2015

hm oh sorry but what if I am using LuxAdmin?


Re: irccmd :checkban - LazyB0y - 21.02.2015

****** can you made one for me?