01/03/2019, 01:48 PM
hola, encontre este plugin q su funcion es desaparecer cualquier arma q caiga del suelo, pero lo q yo quiero es que solo desaparesca armas especificas como la ak47 y la m4a1
Código PHP:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new cvar_removedropped
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_SetModel, "fw_SetModel")
cvar_removedropped = register_cvar("cs_remove_dropped", "1")
}
public fw_SetModel(entity, const model[])
{
static Float:removeweapons
removeweapons = get_pcvar_float(cvar_removedropped)
if (removeweapons > 0.0)
{
static class[10]
pev(entity, pev_classname, class, sizeof class - 1)
if (equal(class, "weaponbox"))
{
set_pev(entity, pev_nextthink, get_gametime() + removeweapons)
return;
}
}
}