Raised This Month: $ Target: $400
 0% 

Strip weapons and block buy commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lazarev
Veteran Member
Join Date: Sep 2008
Old 11-02-2009 , 15:00   Re: Strip weapons and block buy commands
Reply With Quote #5

PHP Code:
#include < amxmodx >
#include < engine >
#include < fakemeta >
#include < fun >
#include < hamsandwich >
 
public plugin_init()
{
    
register_plugin"Strip weapons & block buying""1.0" "Juice" );
    
    
RegisterHamHam_Spawn"player""HamPlayerSpawn");
    
    
register_forwardFM_ClientKill"FwdClientKill" );
    
    new 
iEnt = -1;
    while ( ( 
iEnt find_ent_by_classiEnt"func_buyzone" ) ) )
                
entity_set_intiEntEV_INT_team);
}

public 
HamPlayerSpawnid ) {
    if( 
is_user_connectedid ) && is_user_aliveid ) )
        
strip_user_weaponsid );
}


public 
FwdClientKillid ) {
    
client_printidprint_chat"You can't use kill command!" );
    return 
FMRES_SUPERCEDE;


Last edited by lazarev; 11-02-2009 at 15:03. Reason: added "kill" command block
lazarev is offline
 



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 17:38.


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