Raised This Month: $ Target: $400
 0% 

strip weapon then give weapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-25-2008 , 13:17   Re: strip weapon then give weapon
Reply With Quote #2

Try this (not tested):
PHP Code:
#include <amxmodx>
#include <fun>
 
public plugin_init()
{
        
register_plugin("AWP Strip""1.0""hleV"// Credits for SuicideDog/MattOG/DaSoul
 
        
register_clcmd("awp""BuyWeapon"
        
register_clcmd("magnum""BuyWeapon")
 
        
register_menucmd(-31, (1<<4), "MenuChoose")
        
register_menucmd(-31, (1<<5), "MenuChoose")
        
register_menucmd(register_menuid("BuyRifle"1), (1<<4), "MenuChoose")
        
register_menucmd(register_menuid("BuyRifle"1), (1<<5), "MenuChoose")
 
        
register_event("WeapPickup""WeapPickup""b""1=18")
}
 
public 
DropAndGive(id)
{
        
engclient_cmd(id"drop""awp")
        
give_item(id"weapon_scout")
}
 
public 
MenuChoose(id)
        
set_task(0.5"DropAndGive"id)
 
public 
WeapPickup(id)
        
set_task(0.5"DropAndGive"id
__________________
hleV 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 05:30.


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