Raised This Month: $ Target: $400
 0% 

ham help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-14-2008 , 20:12   ham help
Reply With Quote #1

Ok
ham_give_weapon(id, "weapon_ak47");

if(user_has_weapon(id, CSW_M4A1))
{
ham_strip_weapon(id, "weapon_m4a1");
}

so can you do something like this

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>

public plugin_init() {
 
register_plugin("Roast Beef Stripper""1.0""NcB Plugin team")
 
 
register_cvar("rbs_strip""1")
 
}
public 
rbs_strips(id)
{
 if(!
user_has_weapon(idCSW_KNIFE))
{
    
ham_strip_weapon(id"weapon_m4a1"); // Strip all weapons but knife.

The strip weapon event i wasnt sure how you would write that part so i left the original part in there.
Doc-Holiday 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:38.


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