remover objetivo de bomba tipo hns
#1
necesito un plugin que me ayude a remover los objetivos de bomba tipo hidenseek para que no puedan plantar la bomba.
Responder
#2
si no mal recuerdo era asi;

Código PHP:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"

new const g_RemoveEnts[][] = { 
    
"func_bomb_target"
    
"info_bomb_target"/*, 
    "info_vip_start", 
    "func_vip_safetyzone", 
    "func_escapezone", 
    "hostage_entity", 
    "monster_scientist", 
    "func_hostage_rescue", 
    "info_hostage_rescue", 
    "item_longjump", 
    "func_vehicle",
    "armoury_entity"*/
}

new 
g_fwSpawn

public plugin_precache()
    
g_fwSpawn register_forward(FM_Spawn"fw_Spawn")

public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
unregister_forward(FM_Spawng_fwSpawn)
    
}

public 
fw_Spawn(entity)
{
    if (!
pev_valid(entity)) return FMRES_IGNORED

    
new classname[32], size sizeof g_RemoveEnts
    
    pev
(entitypev_classnameclassnamecharsmax(classname))

    for (new 
0sizei++) {
        
        if (
equal(classnameg_RemoveEnts[i])) {
            
            
engfunc(EngFunc_RemoveEntityentity)
            
            return 
FMRES_SUPERCEDE
        
}
    }

    return 
FMRES_IGNORED

Hi Milashkasiya CrabCrab

Soy un #Panda.. Soy solo un tipo que parece #común pero soy todo lo contrario; alguien #atípico en esta sociedad actual

[Imagen: xl0jvd-5.png]
Link
Responder
#3
Muchas gracias Gran sonrisa!
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)