Raised This Month: $ Target: $400
 0% 

help with give item and restrict all weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zpoke
Senior Member
Join Date: Aug 2009
Location: Sweden
Old 08-07-2010 , 19:44   Re: help with give item and restrict all weapons
Reply With Quote #3

or this one..

Tell me if im whrong

PHP Code:
#include < amxmodx >
#include < cstrike >
#include < fun >
#include < hamsandwich >
static const g_szBuyCmds[ ][ ] = {
    
"usp""glock""deagle""p228""elites""fn57""m3""xm1014""mp5""tmp""p90""mac10""ump45""ak47"
    
"galil""famas""sg552""m4a1""aug""scout""awp""g3sg1""sg550""m249""vest""vesthelm""flash""hegren",
    
"sgren""defuser""nvgs""shield""primammo""secammo""km45""9x19mm""nighthawk""228compact""12gauge",
    
"autoshotgun""smg""mp""c90""cv47""defender""clarion""krieg552""bullpup""magnum""d3au1""krieg550",
    
"buyammo1""buyammo2"

public 
plugin_init( ) {
    
register_plugin"Strip Weapons""1.0""Zpoke" );
 
    
RegisterHamHam_Spawn"player""FwdHamSpawnPlayer_Post");    
 
    for( new 
isizeof g_szBuyCmdsi++ )
        
register_clcmdg_szBuyCmds], "BlockBuyCmd" 
}
public 
BlockBuyCmdid ) return PLUGIN_HANDLED;
public 
FwdHamSpawnPlayer_Postid ) {
    if( 
is_user_aliveid ) ) {
        
strip_user_weaponsid );
        
cs_set_user_moneyid);
        
give_itemid"weapon_knife" );
    }

Zpoke 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 00:12.


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