This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Req] Editing Screen shot ban A.Ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 11-29-2016 , 11:17   [Req] Editing Screen shot ban A.Ban
Reply With Quote #1

i want this plugin to use advanced ban for banning players
ADVANCED BAN PLUGIN <- CLICK HERE

PHP Code:
/***************************************************************************************************
* Copyleft (c)2010 Teascu Dorin & Fysiks
* Plugin Support:
*     - http://forums.alliedmods.net/showthread.php?t=90318
*    or
*    - http://fightersclan.com/forum/f7/amx-ssban-v2-6-%5Bupdate-15-oct-2010%5D-35/
****************************************************************************************************
*  This program is free software; you can redistribute it and/or modify it under the terms
*  of the GNU General Public License as published by the Free Software Foundation; either
*  version 2 of the License, or (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
*  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*  See the GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License along with this program;
*  if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
*  MA 02111-1307 USA
*
*  In addition, as a special exception, the author gives permission to link the code of this
*  program with the Half-Life Game Engine ("HL Engine") and Modified Game Libraries ("MODs")
*  developed by Valve, L.L.C ("Valve"). You must obey the GNU General Public License in all
*  respects for all of the code used other than the HL Engine and MODs from Valve.
*  If you modify this file, you may extend this exception to your version of the file,
*  but you are not obligated to do so. If you do not wish to do so, delete this exception
*  statement from your version.
****************************************************************************************************
* Amx SSBan
* =========
****************************************************************************************************
* Description
* -----------
* - Take snapshots and ban a player (saved on targets PC) or just take snapshots
****************************************************************************************************
* Available CVAR's
* ----------------
* amx_ssdelay "1.0"    - Delay between snapshots (Def.: "1.0") WARNING has to be .0 as is float
* amx_bandelay "10.0"     - Delay before ban is done (Def.: "10.0") WARNING has to be .0 as is float
* amx_ssnumber "3"     - Number of snapshots to take (Def.: "3")
* amx_website ""     - Unban request site (Def.: "https://web.facebook.com/groups/1243058109055659/")
* amx_msg_type "3"     - Info player/admin messages 1 - chat | 2- hud | 3- chat+hud (Def.: "3")
****************************************************************************************************
* Admin Commands
* --------------
* amx_ss <name or #userid> - Make Snapshots on target !
* amx_ssban <name or #userid> <minutes> [reason] - Ban with snapshots (AMXMODX) !
*         If #define AMXBANS is setted to 1 the following console command will be used:
* amx_ssban <minutes> <name or #userid> [reason] - Ban with snapshots (AMXBANS) !
* amx_ssmenu - Displays Snapshot Menu
* amx_ssbanmenu - Displays ban menu
****************************************************************************************************
* Credits
* -------
* Fysiks - ADDED BAN, SS & SSBan MENU and support for AmxBans v6.x - !!! Thank you !!!
* Alka - stock color chat print
* hackandmore - used his plugin to learn how to use amx_msg_type cvar
* AMXX Dev Team for using their amxmodx ban script
* uTg | bigpapajiggs using his plugin (Admin Screen 2) to learn how to use delay and tasks
* Any other plugins authors that made this type of plugin
****************************************************************************************************
* Changelog
* ---------

*     10.Jul.2010 - v2.6 - [ADDED] support for AmxBans v6.x (by Fysiks)
*             [FIXED] lang file by saving it as Unicode without BOM
*     20.Aug.2009 - v2.5 - [ADDED] HUD flashing message to ask reason submission from admin
*     17.Aug.2009 - v2.4 - [FIXED] Amx Mod X banning issue
*     31.Jul.2009 - v2.3 - [ADDED] reason submission for menu bans
*     26.Jul.2009 - v2.2 - [ADDED] menu for taking snapshots - by Fysiks
*             [CHANGED] the plugin name from AMXX SSBan w/ Menu in simple AMX SSBan
*     24.Jul.2009 - v2.1 - [REMOVED] amx_ban_type cvar
*             [CHANGED] the script for easy usage of bantype (optimized by Fysiks)
*     23.Jul.2009 - v2.0 - [ADDED] ban menu - Al the work provided by Fysiks
*     11.May.2009 - v1.9.5 - [ADDED] tasks controlled by cvar for bans
*            [ADDED] cvar amx_bandelay - Delay before ban is done (Def.: 10.0)
*    07.May.2009 - v1.9.1 - [FIXED] the usage of command on immunity admins.
*                     You can take snapshots of admins with immunity
*     06.May.2009 - v1.9 - [ADDED] to AMXX Snapshot a task to take the snapshots with time delay
*            [ADDED] cvar amx_ssdelay - Delay between snapshots (Def.: 1)
*            [ADDED] cvar amx_ssnumber - Number of snapshots to take (Def.: 3)
*            [ADDED] possibility of taking snapshots on immunity admins
*     06.May.2009 - v1.8.1 beta - [REMOVED] NO ACCESS console message as Fysiks said that
*                     'if(!cmd_access...' already does this
*     06.May.2009 - v1.8 beta - [CLEANED] up the plugin (some script arranging)
*            [REMOVED] amx_chattag - it was irelevant... left [AMXX] by default as tag
*            [ADDED] bans by AMXMODX - THX AMXX Dev Team for ban code
*            [ADDED] cvar amx_ban_type - 0- Disabled | 1- AmxModX Ban | 2- AmaBans Ban
*            [ADDED] possibility of taking snapshots and banning admins with immunity
*            (not working for AMXBANS as is used by server_cmd)
*            [ADDED] the console print to inform a player/admin about no acces for command
*    03.May.2009 - v1.7 beta - [ADDED] command amx_ssban to use bans by AMXBANS
*     28.Apr.2009 - v1.6 - [CHANGED] from 'if(get_pcvar_num...' to switch Message type with case
*    18.Apr.2009 - v1.5 - [ADDED] cvar amx_msg_type - 1 - chat | 2- hud | 3- chat+hud (Def: "1")
*            [ADDED] hud message for player data (controled by cvar)
*            [ADDED] Polish translation
*    17.Apr.2009 - v1.4 - [ADDED] to cache SteamID also in the snapshots - THX xPaw
*     17.Apr.2009 - v1.3 - [CHANGED] cvar to pcvar - THX xPaw for pointing that out !
*     17.Apr.2009 - v1.2 - [ADDED] cvar amx_chattag - Make any tag you like in chat
*     16.Apr.2009 - v1.1 - [ADDED] Multilingual
*     15.Apr.2009 - v1.0:- Initial release
***************************************************************************************************/

// Includes
#include <amxmodx>
#include <amxmisc>
#include <geoip>

// Defines
#define VERSION "2.6"


//********** EDIT HERE if you use AMXBANS ***********//
#define AMXBANS 0 // Set this to 1 to enable AmxBans support. (Uses amx_ban <minutes> <userid> [reason])
//***************************************************//


#define MAX_PLAYERS 33 // Maximum number of players (plus 1)

new g_Activityg_Hostnameg_DelaySSg_DelayBang_SnapShotg_UnbanURLg_MsgTypeg_SayText
new g_szBanTime[MAX_PLAYERS][8], g_szBanReason[MAX_PLAYERS][32]
new Array:
g_bantimes

new g_menuPosition[MAX_PLAYERS]
new 
g_menuPlayers[MAX_PLAYERS][32]
new 
g_menuPlayersNum[MAX_PLAYERS]
new 
g_menuOption[MAX_PLAYERS]
new 
g_menuSettings[MAX_PLAYERS]

public 
plugin_init()
{
    
/* Register plugin name and author */
    
register_plugin("AMX SSBan"VERSION"God@Dorin\Fysiks");

    
/* Register plugin version */
    
register_cvar("screen_version"VERSIONFCVAR_SERVER FCVAR_SPONLY);

    
/* Register language file */
    
register_dictionary("screen_message.txt")    // Language file for snapshot messages
    
register_dictionary("admincmd.txt")        // Language file for amxmodx bans

    /* Register cvars */
    
g_Activity get_cvar_pointer("amx_show_activity")
    
g_Hostname get_cvar_pointer("hostname")
    
g_DelaySS register_cvar("amx_ssdelay""1.0")            // Delay between snapshots (Def.: 1.0)
    
g_DelayBan register_cvar("amx_bandelay""10.0")        // Delay before ban is done (Def.: 10.0)
    
g_SnapShot register_cvar("amx_ssnumber""3")            // Number of snapshots to take (Def.: 3)
    
g_UnbanURL register_cvar("amx_website""www.yoursite.com")    // Unban request site (Def.: "www.yoursite.com")
    
g_MsgType register_cvar("amx_msg_type""3")            // 1- chat | 2- hud | 3- chat+hud (Def.: 3)

    /* Register console admin commands */
    
register_concmd("amx_ss""cmdSS",ADMIN_KICK"<name or #userid> - Make snapshots on user !")
#if AMXBANS
    
if( get_cvar_num("amxbans_use_newbancmd") )
        
register_concmd("amx_ssban""cmdBanSS"ADMIN_BAN"<name or #userid> <minutes> [reason] -  - Ban with snapshots! (AmxBans)")
    else
        
register_concmd("amx_ssban""cmdBanSS"ADMIN_BAN"<minutes> <name or #userid> [reason] - Ban with snapshots! (AmxBans)")
#else
    
register_concmd("amx_ssban""cmdBanSS"ADMIN_BAN"<name or #userid> <minutes> [reason] - Ban with snapshots! (AMX Mod X)")
#endif
    
register_clcmd("_BanReason""cmdBanReason")

    
g_SayText get_user_msgid("SayText")

    
/* Register the menu for banning */
    
register_clcmd("amx_ssmenu""cmdSSMenu"ADMIN_KICK" - Displays ScreenShot Menu")
    
register_clcmd("amx_ssbanmenu""cmdBanMenu"ADMIN_BAN" - Displays ScreenShot Ban Menu")
    
register_menucmd(register_menuid("SS Menu"), 1023"actionMenu")

    
/* Set bantimes for the menu */
    
g_bantimes ArrayCreate()

    
ArrayPushCell(g_bantimes0)
    
ArrayPushCell(g_bantimes5)
    
ArrayPushCell(g_bantimes10)
    
ArrayPushCell(g_bantimes30)
    
ArrayPushCell(g_bantimes60)
    
ArrayPushCell(g_bantimes240)
    
ArrayPushCell(g_bantimes1440)

    
register_srvcmd("amx_ssbantimes""ssbanmenu_setbantimes")
}

public 
cmdSS(id,level,cid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED

    
new target[32]
    
read_argv(1target31)
    new 
player cmd_target(idtargetCMDTARGET_OBEY_IMMUNITY)

    if(!
player)
        return 
PLUGIN_HANDLED

    
new name[32], name2[32]
    
get_user_name(idname31)
    
get_user_name(playername231)
    
/* show message in chat to all players by amx_show_activity */
    
switch( get_pcvar_num(g_Activity) )
    {
        case 
2client_printc(0,"%L"LANG_PLAYER"SS_CASE2"namename2)
        case 
1client_printc(0,"%L"LANG_PLAYER"SS_CASE1"name2)
    }

    new 
Param[2]
    
Param[0] = id
    Param
[1] = player
    
/* Set the task to take snapshots */
    
set_task(Float:get_pcvar_float(g_DelaySS), "SS_Task"0Param,2"a"get_pcvar_num(g_SnapShot))
    return 
PLUGIN_HANDLED

}

public 
cmdBanSS(id,level,cid)
{
    if(!
cmd_access(idlevelcid3))
        return 
PLUGIN_HANDLED

    
new target[32]

#if AMXBANS
    
if( get_cvar_num("amxbans_use_newbancmd") )
    {
        
read_argv(1target31)
        
read_argv(2g_szBanTime[id], 7)
    }
    else
    {
        
read_argv(1g_szBanTime[id], 7)
        
read_argv(2target31)
    }
#else
    
read_argv(1target31)
    
read_argv(2g_szBanTime[id], 7)
#endif
    
read_argv(3g_szBanReason[id], 63)

    new 
player cmd_target(idtargetCMDTARGET_OBEY_IMMUNITY)

    if(!
player)
        return 
PLUGIN_HANDLED

    
new Param[2]
    
Param[0] = id
    Param
[1] = player

    
/* Set tasks to take snapshots and ban target */
    
set_task(Float:get_pcvar_float(g_DelaySS), "SS_Task"0Param,2"a"get_pcvar_num(g_SnapShot))
    
set_task(Float:get_pcvar_float(g_DelayBan), "BanSS_Task"0Param2)

    return 
PLUGIN_HANDLED
}

public 
SS_Task(Param[2])
{
    new 
player Param[1]
    new 
id Param[0]
    new 
name[32], timer[32], hostname[64], name2[32], ip[32], authid2[32], country[33], site[64]

    
get_user_name(idname31)
    
get_user_name(playername231)
    
get_user_authid(playerauthid231)
    
get_user_ip(playerip311)

    
geoip_country(ipcountry)
    
get_time("%d/%m/%Y - %H:%M:%S"timer63)
    
get_pcvar_string(g_Hostnamehostnamecharsmax(hostname))
    
get_pcvar_string(g_UnbanURLsitecharsmax(site))

    switch( 
get_pcvar_num(g_MsgType) )
    {
        case 
1:
        {
            
/* Show screen messages in chat */
            
client_printc(player,"%L"player"SS_MSG1"name)
            
client_printc(player,"%L"player"SS_MSG2"timerhostname)
            
client_printc(player,"%L"player"SS_MSG3"name2ipauthid2country)
            
client_printc(player,"%L"player"SS_MSG4"site)
        }
        case 
2:
        {
            
/* Show screen messages in hud */
            
set_hudmessage(1500255, -1.00.100.251.00.00.04)
            
show_hudmessage(player"%L"player"SS_MSG_HUD"timerhostnamename2ipauthid2countrysite)
        }
        case 
3:
        {
            
/* Show screen messages in chat */
            
client_printc(player,"%L"player"SS_MSG1"name)
            
client_printc(player,"%L"player"SS_MSG2"timerhostname)
            
client_printc(player,"%L"player"SS_MSG3"name2ipauthid2country)
            
client_printc(player,"%L"player"SS_MSG4"site)

            
/* Show screen messages in hud */
            
set_hudmessage(1500255, -1.00.100.251.00.00.04)
            
show_hudmessage(player"%L"player"SS_MSG_HUD"timerhostnamename2ipauthid2countrysite)
        }
    }
    
/* Take the snapshots ! */
    
client_cmd(player,"snapshot")
    
/* Confirm for the admin in console that the command was commited */
    
console_print(id,"%L"id"SS_CONSOLE"name2)

    return 
PLUGIN_HANDLED
}

public 
BanSS_Task(Param[])
{
    new 
id Param[0]
    new 
player Param[1]
    new 
minutes[8], reason[32]
    new 
userid2 get_user_userid(player)

    
copy(minutes7g_szBanTime[id])
    
copy(reason31g_szBanReason[id])

#if AMXBANS // Ban "player" using AmxBans
    
if( get_cvar_num("amxbans_use_newbancmd") )
        
client_cmd(id"amx_ban #%d %s ^"%s^""userid2minutesreason)
    else
        
client_cmd(id"amx_ban %s #%d ^"%s^""minutesuserid2reason)
#else
    // Ban "player" using HL Ban Method

    
new authid[32], name2[32], authid2[32], name[32]

    
get_user_authid(playerauthid231)
    
get_user_authid(idauthid31)
    
get_user_name(playername231)
    
get_user_name(idname31)

    
log_amx("Ban: ^"%s<%d><%s><>^" ban and kick ^"%s<%d><%s><>^" (minutes ^"%s^") (reason ^"%s^")"nameget_user_userid(id), authidname2userid2authid2minutesreason)

    new 
temp[64], banned[16], nNum str_to_num(minutes)
    if(
nNum)
    {
        
formatex(temp63"%L"player"FOR_MIN"minutes)
    }
    else
    {
        
formatex(temp63"%L"player"PERM")
    }

    
formatex(banned15"%L"player"BANNED")

    if (
reason[0])
        
server_cmd("kick #%d ^"%(%%s)^""userid2reasonbannedtemp)
    else
        
server_cmd("kick #%d ^"%%s^""userid2bannedtemp)
 
    
server_cmd("banid %s %s"minutesauthid2)
    
server_cmd("writeid")

    
// Display the message to all clients
    
new msg[256]
    new 
len
    
new maxpl get_maxplayers()
    for(new 
1<= maxpli++)
    {
        if(
is_user_connected(i) && !is_user_bot(i))
        {
            
len formatex(msgcharsmax(msg), "%L"i"BAN")
            
len += formatex(msg[len], charsmax(msg) - len" %s "name2)
            if(
nNum)
            {
                
len += formatex(msg[len], charsmax(msg) - len"%L"i"FOR_MIN"minutes)
            }
            else
            {
                
len += formatex(msg[len], charsmax(msg) - len"%L"i"PERM")
            }
            if(
strlen(reason) > 0)
            {
                
formatex(msg[len], charsmax(msg) - len" (%L: %s)"i"REASON"reason)
            }
            
show_activity_id(iidnamemsg)
        }
    }
    
console_print(id"[AMXX] %L"id"CLIENT_BANNED"name2)
#endif
    
return PLUGIN_HANDLED
}

public 
cmdBanMenu(idlevelcid)
{
    if (!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED

    g_menuOption
[id] = 0

    
if (ArraySize(g_bantimes) > 0)
    {
        
g_menuSettings[id] = ArrayGetCell(g_bantimesg_menuOption[id])
    }
    else
    {
        
// should never happen, but failsafe
        
g_menuSettings[id] = 0
    
}
    
displayMenu(idg_menuPosition[id] = 0)

    return 
PLUGIN_HANDLED
}

public 
cmdSSMenu(idlevelcid)
{
    if (!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED

    g_menuOption
[id] = 0

    g_menuSettings
[id] = -1
    displayMenu
(idg_menuPosition[id] = 0)

    return 
PLUGIN_HANDLED
}

displayMenu(idpos)
{
    if (
pos 0)
        return

    
get_players(g_menuPlayers[id], g_menuPlayersNum[id])

    new 
menuBody[512]
    new 
0
    
new i
    
new name[32]
    new 
start pos 7len

    
if (start >= g_menuPlayersNum[id])
        
start pos g_menuPosition[id] = 0

    len 
format(menuBody511"\y%L\R%d/%d^n\w^n"idg_menuSettings[id] == -"SS_MENU" "SSBAN_MENU"pos 1, (g_menuPlayersNum[id] / + ((g_menuPlayersNum[id] % 7) ? 0)))

    new 
end start 7
    
new keys MENU_KEY_0

    
if (end g_menuPlayersNum[id])
        
end g_menuPlayersNum[id]

    for (new 
startend; ++a)
    {
        
g_menuPlayers[id][a]
        
get_user_name(iname31)

        if (
is_user_bot(i) || (access(iADMIN_IMMUNITY) && != id))
        {
            ++
b

            len 
+= format(menuBody[len], 511-len"\d%d. %s^n\w"bname)
        } else {
            
keys |= (1<<b)

            if (
is_user_admin(i))
                
len += format(menuBody[len], 511-len"%d. %s \r*^n\w", ++bname)
            else
                
len += format(menuBody[len], 511-len"%d. %s^n", ++bname)
        }
    }

    if(
g_menuSettings[id] != -1)
    {
        if (
g_menuSettings[id])
            
len += format(menuBody[len], 511-len"^n8. %L^n"id"BAN_FOR_MIN"g_menuSettings[id])
        else
            
len += format(menuBody[len], 511-len"^n8. %L^n"id"BAN_PERM")
        
keys |= MENU_KEY_8
    
}

    if (
end != g_menuPlayersNum[id])
    {
        
format(menuBody[len], 511-len"^n9. %L...^n0. %L"id"MORE"idpos "BACK" "EXIT")
        
keys |= MENU_KEY_9
    
}
    else
        
format(menuBody[len], 511-len"^n0. %L"idpos "BACK" "EXIT")

    
show_menu(idkeysmenuBody, -1"SS Menu")
}

public 
actionMenu(idkey)
{
    switch (
key)
    {
        case 
7:
        {
            ++
g_menuOption[id]
            
g_menuOption[id] %= ArraySize(g_bantimes)

            
g_menuSettings[id] = ArrayGetCell(g_bantimesg_menuOption[id])

            
displayMenu(idg_menuPosition[id])
        }
        case 
8displayMenu(id, ++g_menuPosition[id])
        case 
9displayMenu(id, --g_menuPosition[id])
        default:
        {
            new 
player g_menuPlayers[id][g_menuPosition[id] * key]

            new 
minutes[8]
            
num_to_str(g_menuSettings[id], minutes7)

            
copy(g_szBanTime[id], 7minutes)
            
copy(g_szBanReason[id], 31"_BanReason")

            new 
Param[2]
            
Param[0] = id
            Param
[1] = player

            set_task
(Float:get_pcvar_float(g_DelaySS), "SS_Task"0Param,2"a"get_pcvar_num(g_SnapShot))
            if(
g_menuSettings[id] != -1)
            {
                
messagemode_reason(id)
                
set_task(Float:get_pcvar_float(g_DelayBan), "BanSS_Task"0Param2)
            }

            
// displayMenu(id, g_menuPosition[id]) // Uncomment this line to make menu remain open after banning
        
}
    }

    return 
PLUGIN_HANDLED
}

messagemode_reason(id)
{
    
formatex(g_szBanReason[id], charsmax(g_szBanReason[]), "%L"id"NO_REASON_MENU")
    
    new 
name[32]
    
get_user_name(idname31)
    
    
set_hudmessage(255000.00.2416.012.0)
    
show_hudmessage(id"%L"id"REASON_HUDASK"name)
    
    
client_cmd(id"messagemode _BanReason")
}

public 
cmdBanReason(id)
{
    
// Client has submitted reason.
    
new szArg[sizeof(g_szBanReason[])]
    
read_args(szArgcharsmax(szArg))
    
remove_quotes(szArg)

    if(
szArg[0])
    {
        
formatex(g_szBanReason[id], charsmax(g_szBanReason[]), szArg)
    }
    return 
PLUGIN_HANDLED
}

public 
ssbanmenu_setbantimes()
{
    new 
buff[32]
    new 
args read_argc()

    if (
args <= 1)
    {
        
server_print("usage: amx_ssbantimes <time1> [time2] [time3] ...")
        
server_print("   use time of 0 for permanent.")

        return
    }

    
ArrayClear(g_bantimes)

    for (new 
1argsi++)
    {
        
read_argv(ibuffcharsmax(buff))

        
ArrayPushCell(g_bantimesstr_to_num(buff))

    }

}

/* Stock colors for chat messages */
stock client_printc(const id, const string[], {FloatSqlResul,_}:...) {

    new 
msg[191], players[32], count 1
    vformat
(msgsizeof msg 1string3)

    
replace_all(msg,190,"!g","^4")
    
replace_all(msg,190,"!y","^1")
    
replace_all(msg,190,"!t","^3")

    if(
id)
        
players[0] = id
    
else
        
get_players(players,count,"ch")

    for (new 
count i++)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEg_SayText,_players[i])
            
write_byte(players[i])
            
write_string(msg)
            
message_end()
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1048\\ f0\\ fs16 \n\\ par }
*/ 
__________________

Last edited by Sanjay Singh; 11-29-2016 at 11:18.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 12-01-2016 , 09:28   Re: [Req] Editing Screen shot ban A.Ban
Reply With Quote #2

Good request, best of luck as I would like to impliment this too!
__________________
B3none is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 12-01-2016 , 15:29   Re: [Req] Editing Screen shot ban A.Ban
Reply With Quote #3

Code:
Commands:
amx_ban <nick, #userid, authid> <time in minutes> <reason>
amx_banip <nick, #userid, authid> <time in minutes> <reason>
amx_addban <name> <authid or ip> <time in minutes> <reason>
amx_unban <authid or ip>
amx_banlist
- Shows a list of who is banned
amx_addbanlimit <flags> <time in minutes>
- Adds a max ban time to the list
- Note: Use this command in the amxx.cfg
And just edit amx_ssban using:
PHP Code:
native server_cmd(const command[], any:...); 
__________________

Last edited by Artifact; 12-01-2016 at 15:30.
Artifact is offline
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 12-02-2016 , 06:32   Re: [Req] Editing Screen shot ban A.Ban
Reply With Quote #4

Please can u edit it?
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode