AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ban weapons (https://forums.alliedmods.net/showthread.php?t=189119)

99red99 07-03-2012 15:58

Ban weapons
 
I have this problem I would like to ban all weapons and not to me I tried a couple of plugin and I tried not to re restmenu.amxx I had to disable all and nothing could be told? I need it to mod hidden. I also tried this plugin

PHP Code:

#include < amxmodx > 
#include < fakemeta_util > 

const CS_TEAM_CT 

public plugin_init( )  

    
register_plugin"Block Weapons""1.0""Pur3" 
    
register_event"ResetHUD""ev_ResetHud""b" 
    
register_forwardFM_Touch"fw_Touch_Pre" 


public 
ev_ResetHudid 

    if( !
is_user_aliveid ) ) 
        return; 
         
    
fm_strip_user_weaponsid 
     
    if( 
get_user_teamid ) == CS_TEAM_CT 
        
fm_give_itemid"weapon_knife" 


public 
fw_Touch_PreiEntid 

    if( !
is_user_connectedid ) || !is_user_aliveid ) ) 
        return 
FMRES_IGNORED
     
    new 
g_szClassname32 
    
peviEntpev_classnameg_szClassname31 
     
    if( 
equalig_szClassname"weaponbox" ) || equalig_szClassname"armoury_entity" ) ) 
            return 
FMRES_SUPERCEDE
     
    return 
FMRES_IGNORED


but every time I connect I choose my team and kicks it and type this
Cs^DjOles is joining the Terrorist force
Cs^DjOles overflowed
Reliable channel overflowed

pls help me Thanks

wickedd 07-03-2012 17:10

Re: Ban weapons
 
What??


All times are GMT -4. The time now is 14:58.

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