Raised This Month: $51 Target: $400
 12% 

[REQUEST] Semiclip for admins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 05-06-2008 , 00:42   [REQUEST] Semiclip for admins
Reply With Quote #1

Can some1 make a semiclip plugin for admin for adming flag A plz.
hcxx is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 05-18-2008 , 12:35   Re: [REQUEST] Semiclip for admins
Reply With Quote #2

some1?
hcxx is offline
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 05-18-2008 , 17:56   Re: [REQUEST] Semiclip for admins
Reply With Quote #3

Try this :

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

new semiclip 1

public plugin_init() {
    
register_plugin("Semiclip""1.0""ZombieMan")
    
register_concmd("amx_semiclip","cmd_semiclip",ADMIN_LEVEL_A,"<1|0>")
    
register_clcmd("fullupdate""clcmd_fullupdate"
    
register_event("ResetHUD""ResetHUD""b")
    
register_event("HLTV""new_round""a""1=0""2=0")
}

public 
clcmd_fullupdate() {
    return 
PLUGIN_HANDLED_MAIN
}  

public 
cmd_semiclip(id,level,cid) {
    if(!
cmd_access(id,level,cid,2))
        return 
PLUGIN_HANDLED
    
    
new name[32]
    new 
arg1[32]
    
read_argv(1,arg1,31)
    new 
cvarnum str_to_num(arg1)
    
semiclip cvarnum
    get_user_name
(id,name,31)
    
    new 
players[32], pnum 
    get_players
(players,pnum,"a"
    
    if(
semiclip) {
        for(new 
i=0;i<pnum;++i) {
            
entity_set_int(iEV_INT_solidSOLID_TRIGGER)
        }
        
client_print(0,print_chat,"[AMXX] ADMIN %s: set semiclip on",name)
    }
    else if(!
semiclip) {
        for(new 
i=0;i<pnum;++i) {
            
entity_set_int(iEV_INT_solidSOLID_BBOX)
        }
        
client_print(0,print_chat,"[AMXX] ADMIN %s: unset semiclip off",name)
    }
    return 
PLUGIN_HANDLED
}

public 
ResetHUD(id) {
    if(
semiclip)
        
entity_set_int(idEV_INT_solidSOLID_TRIGGER)
    else if(!
semiclip)
        
entity_set_int(idEV_INT_solidSOLID_BBOX)
}

public 
new_round() {
    new 
players[32], pnum 
    get_players
(players,pnum,"a"
    
    if(
semiclip) {
        for(new 
i=0;i<pnum;++i) {
            
entity_set_int(iEV_INT_solidSOLID_TRIGGER)
        }
    }
    else if(!
semiclip) {
        for(new 
i=0;i<pnum;++i) {
            
entity_set_int(iEV_INT_solidSOLID_BBOX)
        }
    }
    return 
PLUGIN_HANDLED

__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 05-20-2008 , 04:27   Re: [REQUEST] Semiclip for admins
Reply With Quote #4

thx, but how can I set it that admin has always semiclip?
hcxx is offline
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 05-20-2008 , 07:55   Re: [REQUEST] Semiclip for admins
Reply With Quote #5

Quote:
Originally Posted by hcxx View Post
thx, but how can I set it that admin has always semiclip?
Yeap ... already have
__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 05-20-2008 , 13:46   Re: [REQUEST] Semiclip for admins
Reply With Quote #6

strange this plugin set to all players semiclip and I cant kill no one and other players to cant kill no one :/
hcxx is offline
Old 05-26-2008, 05:50
hcxx
This message has been deleted by YamiKaitou. Reason: bump
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 05-29-2008 , 14:06   Re: [REQUEST] Semiclip for admins
Reply With Quote #7

some1? :S
hcxx is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-29-2008 , 14:14   Re: [REQUEST] Semiclip for admins
Reply With Quote #8

PHP Code:
public ResetHUD(id) {
    if(
semiclip && ADMIN_LEVEL_A)
        
entity_set_int(idEV_INT_solidSOLID_TRIGGER)
    else if(!
semiclip || !ADMIN_LEVEL_A)
        
entity_set_int(idEV_INT_solidSOLID_BBOX)

Try that

Zombeh set it so only an admin can turn it on, he didn't set it to check for admin when changing for semiclip
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 05-29-2008 , 15:22   Re: [REQUEST] Semiclip for admins
Reply With Quote #9

thx you but still all users got semiclip and no one cant kill nobody.
hcxx is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 05-29-2008 , 16:56   Re: [REQUEST] Semiclip for admins
Reply With Quote #10

Required Hamsandwich and fakemeta
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

public plugin_init()
{
    
register_plugin("Admin NO Clip""1.0""[A]tomen")
    
RegisterHam(Ham_Spawn"player""fwd_Ham_Spawn_post"1)
}

public 
fwd_Ham_Spawn_post(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_A && pev(idpev_solid) != SOLID_TRIGGER)
        
set_pev(idpev_solidSOLID_TRIGGER)

    return 
HAM_IGNORED

__________________

Last edited by atomen; 05-29-2008 at 16:58.
atomen is offline
Send a message via MSN to atomen
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 12:10.


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