Raised This Month: $ Target: $400
 0% 

[ES] Alguien tiene el plugin de "say /invis" ?


  
 
 
Thread Tools Display Modes
Author Message
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 04-02-2010 , 13:15   [ES] Alguien tiene el plugin de "say /invis" ?
#1

No quiero editar el kz arg.. toda la paja, lo busque en 15 paginas.. y no esta, graciela
Raddish is offline
Ditoo!
Member
Join Date: Mar 2010
Old 04-02-2010 , 13:17   Re: [ES] Alguien tiene el plugin de "say /invis" ?
#2

Viste que sos un vago :/
Ditoo! is offline
Asdito´^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 04-02-2010 , 13:33   Re: [ES] Alguien tiene el plugin de "say /invis" ?
#3

Si me decís para que sirve ese plugin, porque no juego kz, te ayudo.
__________________
################################
Asdito´^ is offline
Send a message via MSN to Asdito´^
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 04-02-2010 , 13:59   Re: [ES] Alguien tiene el plugin de "say /invis" ?
#4

escribis /invi y te sale un menu para hacer invisible o visible a los players.
Raddish is offline
aagguuu
Senior Member
Join Date: Nov 2009
Old 04-02-2010 , 14:14   Re: [ES] Alguien tiene el plugin de "say /invis" ?
#5

Sale usar el search? lo postoe alucard en un thread
__________________
Scripting: 0% ):

[IMG]http://img340.**************/img340/7371/avrilagu.png[/IMG]


aagguuu is offline
gladius
Veteran Member
Join Date: Jul 2008
Location: Santiago, Chile
Old 04-02-2010 , 14:22   Re: [ES] Alguien tiene el plugin de "say /invis" ?
#6

aqui lo tienes, lo saque del kz arg y cambie un par de cositas pequeñas.
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define IsValidPlayer(%1) (0 > %1 > 33)

new PlayerInvis[33]
new 
WaterInvis[33]
new 
WaterSents[1386]
new 
MapHaveWater

public plugin_init() {
    
register_plugin("Invisibilidad""1.0""GlaDiuS")
    
    
register_forward(FM_AddToFullPack"addToFullPack"1)
    
    
register_clcmd("say /invis""cmdMenuInvis")
}

public 
plugin_cfg()
{
    new 
ent engfuncEngFunc_FindEntityByString, -1"classname""func_water" );
    while(
ent) {
        if(!
MapHaveWater)
            
MapHaveWater true;
        
        
WaterSents[ent] = true;
        
        
ent engfuncEngFunc_FindEntityByStringent"classname""func_water" );
    }
}

public 
client_putinserver(user) {
    
PlayerInvis[user] = false
    WaterInvis
[user] = false
}

public 
addToFullPack(eseenthosthostflagsplayerpSet)
{
    if(
player) {
        if(
IsValidPlayer(host) && IsValidPlayer(ent) && host != ent ) {
            
set_es(esES_SolidSOLID_NOT)
            
            if(
PlayerInvis[host] ) {
                
set_es(esES_RenderFxkRenderFxGlowShell)
                
set_es(esES_RenderColor0.00.00.0)
                
set_es(esES_RenderModekRenderTransAlpha)
                
set_es(esES_RenderAmt0.0)
                
                
set_es(esES_Origin, { 999999999.0999999999.0999999999.0 } )
            }
        }
    }
    
    else if(
WaterInvis[host] ) {
        if(
WaterSents[ent] )
            
set_es(esES_EffectsEF_NODRAW)
    }
    
    return 
FMRES_IGNORED
}

public 
cmdMenuInvis(user) {
    new 
menu menu_create("\rInvis Menu""InvisHandler")
    new 
msgs[3][64]
    
formatex(msgs[0], 63"Jugadores - %s"PlayerInvis[user] == "\yON" "\dOFF")
    
formatex(msgs[1], 63"%sAgua - %s"MapHaveWater "\w" "\d"WaterInvis[user] == "\yON" "\dOFF")
    
formatex(msgs[1], 63"%sJugadores & Agua - %s"MapHaveWater "\w" "\d"WaterInvis[user] == "\yON" "\dOFF")
    
    
menu_additem(menumsgs[0], "1")
    
menu_additem(menumsgs[1], "2")
    
menu_additem(menumsgs[1], "3")
    
    
menu_display(usermenu)
}

public 
InvisHandler(usermenuitem)
{
    if(
item == MENU_EXIT)
        return 
PLUGIN_HANDLED;
    
    new 
data[6], iName[64]
    new 
iaccesscallback
    
    menu_item_getinfo
(menuitemiaccessdata,5iName63callback)
    
    new 
key str_to_num(data)
    
    switch(
key) {
        case 
1:
            
InvisPlayer(user)
        case 
2: {
            if(
MapHaveWater)
                
InvisWater(user)
        }
        case 
3: {
            if(
MapHaveWater)
                
InvisAmbos(user)
        }
    }
    
cmdMenuInvis(user)
    return 
PLUGIN_HANDLED
}    

InvisPlayer(user) {
    
PlayerInvis[user] = !PlayerInvis[user]
}

InvisWater(user) {
    
WaterInvis[user] = !WaterInvis[user]
}

InvisAmbos(user) {
    
PlayerInvis[user] = !PlayerInvis[user]
    
WaterInvis[user] = !WaterInvis[user]

__________________
Proyects
Kreedz Chile Mod [100%] (Fixing some details).

gladius is offline
Send a message via MSN to gladius Send a message via Skype™ to gladius
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode