View Single Post
T.N.T
Junior Member
Join Date: Jan 2009
Old 02-21-2009 , 11:26   Re: [Request] Remove weapon entity/Block weapon pickup
Reply With Quote #7

Erm I dont really get what you are talking about Can you edit the original plugin from Sn!ff3r including ur codes? Ty.\

Like this:

Quote:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_SetModel,"fw_setmodel",1)
// Add your code here...
}

public fw_setmodel(ent,model[])
{
if(!pev_valid(ent))
return FMRES_IGNORED

if(contain(model,"_c4") != -1 || contain(model,"_scout") != -1 || contain(model,"_weaponbox") != -1 || contain(model,"_knife") != -1 || contain(model,"_back") != -1)
return FMRES_IGNORED

static classname[33]; pev(ent,pev_classname,classname,32)

if(equal(classname,"weaponbox") || equal(classname,"armoury_entity") || contain(classname,"weapon_") != -1)
{
engfunc(EngFunc_RemoveEntity,ent)
return FMRES_SUPERCEDE

}
return FMRES_IGNORED
}
It's working! But when I drop scout and pickup other weapons I get ammo so I get ammo for scout too >_< How to fix?

Last edited by T.N.T; 02-21-2009 at 12:11.
T.N.T is offline