HE bloqueo mapa
#1
Saludos muchachos en este caso quisiera un plugin o una ayuda que me den sobre un plugin que bloquee ejemplo la HE en un solo mapa , quisiera bloquear la HE en De_dust2 y todo los demas mapas que este la HE
Responder
#2
Osea que lo que queres es evitar que puedan comprar una HE, en el mapa que vos pre-configures?
Responder
#3
Si exacto osea en de_dust nadie podra comorar HE pero en de_dust2 si y en los demas si solo uno solo
Responder
#4
Bloquear una compra específica es medio tedioso, te recomiendo que te descargues el plugin de Connor que te permite utilizar la forward client_buy, y con eso es fácil bloquearlo.

Una manera mas redundante pero rápida y que te puede servir hasta que desarrolles el plugin que te sugerí, puede ser así:

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

const m_iId 43;
const 
m_iType 34;
const 
m_iMoney 115;
const 
ARMOURY_HEGRENADE 15;
const 
EXTRAOFFSET_WEAPONS 4;

new const 
g_szMaps[ ][ ] = { "de_dust2""de_nuke" };

public 
plugin_init( )
{
    
register_plugin"Block HE Grenades, the SWAG way""1.0""Manu" );
    
    new 
szMap16 ],iEntget_mapnameszMapcharsmaxszMap ) );
    
    for( new 
isizeof g_szMapsi++ )
    {
        if( 
equaliszMapg_szMaps] ) )
        {
            
RegisterHamHam_AddPlayerItem"player""fw_PlayerItem_Pre"false );
            
            while( ( 
iEnt engfuncEngFunc_FindEntityByStringiEnt"classname""armoury_entity" ) ) != )
            {
                if( 
get_pdata_intiEntm_iTypeEXTRAOFFSET_WEAPONS ) == ARMOURY_HEGRENADE )
                    
engfuncEngFunc_RemoveEntityiEnt );
            }
            
            break;
        }
    }
}

public 
fw_PlayerItem_PreiIndexiWeapon )
{
    if( 
get_pdata_intiWeaponm_iIdEXTRAOFFSET_WEAPONS ) == CSW_HEGRENADE )
    {
        
set_pdata_intiIndexm_iMoneyget_pdata_intiIndexm_iMoney ) + 300 );
        
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;

No hago trabajos privados. Si necesitás ayuda, abrí un nuevo tema.
¿Buscás un ejemplo o algún modo de juego? Podés echarle un vistazo a mis aportes
.
Responder
#5
(11/08/2015, 08:32 PM)Treki escribió: Bloquear una compra específica es medio tedioso, te recomiendo que te descargues el plugin de Connor que te permite utilizar la forward client_buy, y con eso es fácil bloquearlo.

Una manera mas redundante pero rápida y que te puede servir hasta que desarrolles el plugin que te sugerí, puede ser así:

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

const m_iId 43;
const 
m_iType 34;
const 
m_iMoney 115;
const 
ARMOURY_HEGRENADE 15;
const 
EXTRAOFFSET_WEAPONS 4;

new const 
g_szMaps[ ][ ] = { "de_dust2""de_nuke" };

public 
plugin_init( )
{
    
register_plugin"Block HE Grenades, the SWAG way""1.0""Manu" );
    
    new 
szMap16 ],iEntget_mapnameszMapcharsmaxszMap ) );
    
    for( new 
isizeof g_szMapsi++ )
    {
        if( 
equaliszMapg_szMaps] ) )
        {
            
RegisterHamHam_AddPlayerItem"player""fw_PlayerItem_Pre"false );
            
            while( ( 
iEnt engfuncEngFunc_FindEntityByStringiEnt"classname""armoury_entity" ) ) != )
            {
                if( 
get_pdata_intiEntm_iTypeEXTRAOFFSET_WEAPONS ) == ARMOURY_HEGRENADE )
                    
engfuncEngFunc_RemoveEntityiEnt );
            }
            
            break;
        }
    }
}

public 
fw_PlayerItem_PreiIndexiWeapon )
{
    if( 
get_pdata_intiWeaponm_iIdEXTRAOFFSET_WEAPONS ) == CSW_HEGRENADE )
    {
        
set_pdata_intiIndexm_iMoneyget_pdata_intiIndexm_iMoney ) + 300 );
        
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;


En este caso que hace este plugin.
Responder
#6
(11/08/2015, 09:43 PM)diegosm120 escribió:
(11/08/2015, 08:32 PM)Treki escribió: Bloquear una compra específica es medio tedioso, te recomiendo que te descargues el plugin de Connor que te permite utilizar la forward client_buy, y con eso es fácil bloquearlo.

Una manera mas redundante pero rápida y que te puede servir hasta que desarrolles el plugin que te sugerí, puede ser así:

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

const m_iId 43;
const 
m_iType 34;
const 
m_iMoney 115;
const 
ARMOURY_HEGRENADE 15;
const 
EXTRAOFFSET_WEAPONS 4;

new const 
g_szMaps[ ][ ] = { "de_dust2""de_nuke" };

public 
plugin_init( )
{
    
register_plugin"Block HE Grenades, the SWAG way""1.0""Manu" );
    
    new 
szMap16 ],iEntget_mapnameszMapcharsmaxszMap ) );
    
    for( new 
isizeof g_szMapsi++ )
    {
        if( 
equaliszMapg_szMaps] ) )
        {
            
RegisterHamHam_AddPlayerItem"player""fw_PlayerItem_Pre"false );
            
            while( ( 
iEnt engfuncEngFunc_FindEntityByStringiEnt"classname""armoury_entity" ) ) != )
            {
                if( 
get_pdata_intiEntm_iTypeEXTRAOFFSET_WEAPONS ) == ARMOURY_HEGRENADE )
                    
engfuncEngFunc_RemoveEntityiEnt );
            }
            
            break;
        }
    }
}

public 
fw_PlayerItem_PreiIndexiWeapon )
{
    if( 
get_pdata_intiWeaponm_iIdEXTRAOFFSET_WEAPONS ) == CSW_HEGRENADE )
    {
        
set_pdata_intiIndexm_iMoneyget_pdata_intiIndexm_iMoney ) + 300 );
        
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;


En este caso que hace este plugin.

Justo lo que pediste ?)
NO RESPONDO MP POR SOPORTE
Responder
#7
Código PHP:
new const g_szMaps[ ][ ] = { "de_dust2""de_nuke" }; 

bloquea 2 mapas, el pidió 1 :3
[Imagen: ZzZDalwinZzZ.png]
[Imagen: 76561198147929879.png]
Mod :3
Creando mod para CS 30%
nombre: NewWorld - Global
mod: nuevo
Bugs: 5% (reparando......)
De que trata?: Es un mod como cualquier otro, pero es una recopilación de muchos, se divide entre zombie y normal(clásico).

Definiciones de las rondas:

1 zombie(veloz) tiene que matar a todos los humanos, pero no se infectan simplemente mueren, su objetivo es matar a todos los humanos y sobrevivir.

1 sniper tendrá que matar a todos los TT, pero sera muy difícil ya que sera furien, es decir que los TT serán muy rápidos, su objetivo es matar a los TT y sobrevivir.

snipers vs assassin Todos los jugadores serán transformados de una forma ramdom, el objetivo de los equipos es aniquilar el otro equipo y sobrevivir.

Nemesis su objetivo es matar a los humanos y sobrevivir. (como no sobrevivir con 150k de vida xD)

predator igualmente matar a los humanos, pero con solo 3k de vida y mucha velocidad....

assassin igualmente matar a todos los humanos, pero con 20k y mucha velocidad (escóndete mientras mientas D: )
survivor matar a todos los zombies....

plaga todos los mods(menos predator). es decir humanos, snipers, survivors, vs zombies, assassin, nemesis, sera una aniquilación entre ambos bandos.

nuevas ideas serán añadidas.
Responder
#8
(11/08/2015, 08:32 PM)Treki escribió: Bloquear una compra específica es medio tedioso, te recomiendo que te descargues el plugin de Connor que te permite utilizar la forward client_buy, y con eso es fácil bloquearlo.

Una manera mas redundante pero rápida y que te puede servir hasta que desarrolles el plugin que te sugerí, puede ser así:

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

const m_iId 43;
const 
m_iType 34;
const 
m_iMoney 115;
const 
ARMOURY_HEGRENADE 15;
const 
EXTRAOFFSET_WEAPONS 4;

new const 
g_szMaps[ ][ ] = { "de_dust2""de_nuke" };

public 
plugin_init( )
{
    
register_plugin"Block HE Grenades, the SWAG way""1.0""Manu" );
    
    new 
szMap16 ],iEntget_mapnameszMapcharsmaxszMap ) );
    
    for( new 
isizeof g_szMapsi++ )
    {
        if( 
equaliszMapg_szMaps] ) )
        {
            
RegisterHamHam_AddPlayerItem"player""fw_PlayerItem_Pre"false );
            
            while( ( 
iEnt engfuncEngFunc_FindEntityByStringiEnt"classname""armoury_entity" ) ) != )
            {
                if( 
get_pdata_intiEntm_iTypeEXTRAOFFSET_WEAPONS ) == ARMOURY_HEGRENADE )
                    
engfuncEngFunc_RemoveEntityiEnt );
            }
            
            break;
        }
    }
}

public 
fw_PlayerItem_PreiIndexiWeapon )
{
    if( 
get_pdata_intiWeaponm_iIdEXTRAOFFSET_WEAPONS ) == CSW_HEGRENADE )
    {
        
set_pdata_intiIndexm_iMoneyget_pdata_intiIndexm_iMoney ) + 300 );
        
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;


Redundante? Es buenísima Oh god why
Responder
#9
a lo burriao y con flojera (?

Código PHP:
#include <amxmodx>
#include <hamsandwich>
#include <engine>

#define PLUGIN "Nuevo Plugin"
#define VERSION "1.0"
#define AUTHOR "NONE"

new const MAP[] = "de_dust2"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    new 
mapname[sizeof MAP ]
    
get_mapname(mapnamecharsmax(mapname))
    if(
equali(MAPmapname))
    {
        
register_clcmd("hegren""fw_grenade")
        
RegisterHam(Ham_Spawn"weapon_hegrenade""HM_he_grenade_spawn"1)
    }
}
public 
fw_grenade(id)
{
    if(!
is_user_connected(id)) return PLUGIN_HANDLED
    
    client_print
(idprint_center"Granada Bloqueada Bitch!!!")
    
    return 
PLUGIN_HANDLED
}
public 
HM_he_grenade_spawn(e)
    
remove_entity(e
Yao ming
pero funciona Yao ming
Competitive/Face it Pick Up Game (PUG) servidor de prueba: 45.77.94.109:27016 Click para Entrar
[Imagen: b_350_20_5A6C3E_383F2D_D2E1B5_2E3226.png]

(14/08/2015, 10:15 PM)Sugisaki escribió: "El mundo es caotico, irracional e injusto. No tiene ningun significado"
Palabras que desde hace mucho tiempo he buscado para describir, ¿Que es el mundo?
Crab

Código PHP:
if(ayuda && free)
{
    exit();

Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)