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(id, CSW_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.