Raised This Month: $ Target: $400
 0% 

Banshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Denmla
Member
Join Date: Jul 2007
Old 11-06-2007 , 04:03   Banshot
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Ban with proof"
#define VERSION "1.0.4"
#define AUTHOR "[lego]F34R"

static const banurl[] = ""

new Bantype

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_banshot","banwithproof",ADMIN_BAN,"<Ban username with screenshot 1=IP 2=Steamid 3=Amxbans 4=Not ban")
    
register_cvar("amx_banurl",banurl)
    
Bantype register_cvar("amx_banshot_type""1")    
}


public 
banwithproof(id,level,cid){
    if(!
cmd_access(id,level,cid,2))
        return 
PLUGIN_HANDLED;

    new 
authid[32], ipadd[32], name[32],CurrentTime[9], hostname[64] ,banurl[64]
    new 
arg[32], arg2[32], temp[2]
    
    
read_argv(1,arg,31)
    
read_argv(2,arg2,31)
    
    new 
target cmd_target(id,arg,1)
    
    if (!
target) return PLUGIN_HANDLED
    
    get_user_ip
(target,ipadd,31)
    
get_cvar_string("hostname",hostname,63
    
get_user_name(target,name,31)
    
get_user_authid(target,authid,31)
    
get_cvar_string("amx_banurl"banurl,63)
    
    
log_to_file("BannedwithSS.txt","    %s | STEAMID: %s^n",name,authid)
    
    
client_print(target,print_chat"[Banned] %s",hostname)
    
client_print(target,print_chat"[Banned] %s [Steamid] %s @ IP - %s",name,authid,ipadd
    
    
get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
    
    
client_print(target,print_chat"[Banned] %s",CurrentTime)
    
client_print(target,print_chat"[Banned] Visit %s to be unbanned",banurl)
    
    
console_print(target,"[Banned] %s",hostname)
    
console_print(target,"[Banned] %s [Steamid] %s @ IP - %s",name,authid,ipadd
    
console_print(target,"[Banned] %s",CurrentTime)
    
console_print(target,"[Banned] Visit %s to be unbanned",banurl)
    
    
server_cmd(target,"wait;wait;snapshot;wait;snapshot")
    
    
temp[0] = target
    temp
[1] = str_to_num(arg2)
    
    
set_task(0.5,"persontoban"targettemp2)
    
    return 
PLUGIN_HANDLED
}

public 
persontoban(arg[]){
    new 
name2[32]
    
    new 
target arg[0]
    new 
bantime arg[1]
    
    
get_user_name(target,name2,31)
    
    switch (
get_pcvar_num(Bantype)){
        case 
1:{
            
server_cmd("amx_ban %s %d",name2,bantime)
        }
        case 
2:{
            
server_cmd("amx_banip %s %d",name2,bantime)
        }
        case 
3:{
            
server_cmd("amx_ban %d %s",bantime,name2)
        }
        case 
4:{
            
server_cmd("amx_say Visit %s",banurl)
        }
    }
    


Can anyone make that plugin will make screenshot on server? Example: cstrike/screenshots/ on server? and then i can download screenshots when i want?
Denmla is offline
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 00:33.


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