Raised This Month: $32 Target: $400
 8% 

spawn invisible help pls :)


Post New Thread Reply   
 
Thread Tools Display Modes
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 06-14-2011 , 06:15   Re: spawn invisible help pls :)
Reply With Quote #11

new id = read_data(1) actually is the killer id right? not the dead one
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
nicolaus1111
Junior Member
Join Date: May 2008
Location: Santa de mallorca
Old 06-14-2011 , 07:55   Re: spawn invisible help pls :)
Reply With Quote #12

So someone is gonna fix this is source ?
nicolaus1111 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-14-2011 , 11:42   Re: spawn invisible help pls :)
Reply With Quote #13

Updated my code to a different approach.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 03-07-2012 , 16:12   Re: spawn invisible help pls :)
Reply With Quote #14

Quote:
Originally Posted by Exolent[jNr] View Post
Fixed.

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

new g_bInvis;

#define SetInvis(%1) g_bInvis |= (1<<(%1&31))
#define GetInvis(%1) (g_bInvis & (1<<(%1&31)))
#define RemoveInvis(%1) g_bInvis &= ~(1<<(%1&31))

public plugin_init( )
{
    
register_plugin"Invisible on Spawn""0.0.1""Exolent" );
    
    
register_forwardFM_AddToFullPack"FwdAddToFullPackPost");
    
    
RegisterHamHam_Spawn"player""FwdPlayerSpawnPost");
    
RegisterHamHam_Killed"player""FwdPlayerKilledPost");
}

public 
client_disconnectiPlayer )
{
    
remove_taskiPlayer );
    
    
RemoveInvisiPlayer );
}

public 
FwdAddToFullPackPostesHandleeiEntityiHostiHostFlagsiPlayerpSet )
{
    if( 
iPlayer )
    {
        if( 
iHost != iEntity
        
&&  get_orig_retval( )
        &&  
is_user_aliveiHost )
        &&  
is_user_aliveiEntity )
        &&  
GetInvisiEntity ) )
        {
            
set_esesHandleES_OriginFloat:{ 9999999.0999999.0999999.0 } );
            
            
set_esesHandleES_Effects, ( get_esesHandleES_Effects ) | EF_NODRAW ) );
        }
    }
}

public 
FwdPlayerSpawnPostiPlayer )
{
    if( 
is_user_aliveiPlayer ) )
    {
        
SetInvisiPlayer );
        
        
remove_taskiPlayer );
        
set_task10.0"TaskRemoveInvis"iPlayer );
    }
}

public 
FwdPlayerKilledPostiPlayer )
{
    
remove_taskiPlayer );
    
    
RemoveInvisiPlayer );
}

public 
TaskRemoveInvisiPlayer )
{
    
RemoveInvisiPlayer );

Nice plugin, can you add hud timer for remaining seconds?
Lolz0r is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-07-2012 , 17:08   Re: spawn invisible help pls :)
Reply With Quote #15

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

#define MAX_PLAYERS 32

#define SPAWN_DELAY 1.0

new g_bInvis;

#define SetInvis(%1) g_bInvis |= (1<<(%1&31))
#define GetInvis(%1) (g_bInvis & (1<<(%1&31)))
#define RemoveInvis(%1) g_bInvis &= ~(1<<(%1&31))

new g_iTimerMAX_PLAYERS ];

new 
g_pCvarTimer;

public 
plugin_init( )
{
    
register_plugin"Invisible on Spawn""0.0.1""Exolent" );
    
    
register_forwardFM_AddToFullPack"FwdAddToFullPackPost");
    
    
RegisterHamHam_Spawn"player""FwdPlayerSpawnPost");
    
RegisterHamHam_Killed"player""FwdPlayerKilledPost");
    
    
g_pCvarTimer register_cvar"spawn_invis_time""10" );
}

public 
client_disconnectiPlayer )
{
    
remove_taskiPlayer );
    
    
RemoveInvisiPlayer );
}

public 
FwdAddToFullPackPostesHandleeiEntityiHostiHostFlagsiPlayerpSet )
{
    if( 
iPlayer
    
&&  iHost != iEntity
    
&&  GetInvisiEntity )
    &&  
get_orig_retval( )
    &&  
is_user_aliveiHost ) )
    {
        
set_esesHandleES_OriginFloat:{ 9999999.0999999.0999999.0 } );
        
        
set_esesHandleES_Effects, ( get_esesHandleES_Effects ) | EF_NODRAW ) );
    }
}

public 
FwdPlayerSpawnPostiPlayer )
{
    if( 
is_user_aliveiPlayer ) )
    {
        
SetInvisiPlayer );
        
        new 
iTime get_pcvar_numg_pCvarTimer ) + 1;
        
        
remove_taskiPlayer );
        
set_taskfloatiTime ) + SPAWN_DELAY"TaskRemoveInvis"iPlayer );
        
        
g_iTimeriPlayer ] = iTime;
        
set_taskSPAWN_DELAY"TaskStartTimer"iPlayer );
    }
}

public 
FwdPlayerKilledPostiPlayer )
{
    
remove_taskiPlayer );
    
    
RemoveInvisiPlayer );
}

public 
TaskStartTimeriPlayer )
{
    
set_task1.0"TaskShowTimer"iPlayer__"a"g_iTimeriPlayer ] - );
    
    
TaskShowTimeriPlayer );
}

public 
TaskShowTimeriPlayer )
{
    
g_iTimeriPlayer ]--;
    
    
set_hudmessage255255255, .holdtime 1.0, .channel );
    
show_hudmessageiPlayer"Invisible for %d more second%s"g_iTimeriPlayer ], ( g_iTimeriPlayer ] == ) ? "" "s" );
}

public 
TaskRemoveInvisiPlayer )
{
    
RemoveInvisiPlayer );

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 03-13-2012 at 21:31.
Exolent[jNr] is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 03-07-2012 , 17:28   Re: spawn invisible help pls :)
Reply With Quote #16

How to change the position of hud message?

Code:
set_hudmessage( 255, 255, 255, .holdtime = 1.0, .channel = 3 );
-->

?

Thanks, and make a cvar for time?
Lolz0r is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-07-2012 , 20:43   Re: spawn invisible help pls :)
Reply With Quote #17

Quote:
Originally Posted by Lolz0r View Post
How to change the position of hud message?

Code:
set_hudmessage( 255, 255, 255, .holdtime = 1.0, .channel = 3 );
-->

?

Thanks, and make a cvar for time?
Add the parameters like this:
PHP Code:
set_hudmessage255255255, -1.00.35, .holdtime 1.0, .channel ); 
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 03-07-2012 at 20:44.
drekes is offline
Send a message via MSN to drekes
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 03-08-2012 , 02:06   Re: spawn invisible help pls :)
Reply With Quote #18

@Drekes, thanks for information.

Last edited by Lolz0r; 03-08-2012 at 14:17.
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 03-08-2012 , 14:17   Re: spawn invisible help pls :)
Reply With Quote #19

@Exolent, you're plugin not compile: http://prikachi.com/images/912/4496912r.jpg

Maybe could to add cvar for time for hide?
Lolz0r is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-08-2012 , 14:25   Re: spawn invisible help pls :)
Reply With Quote #20

There. Added cvar and fixed compile error.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

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 21:23.


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