View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-04-2011 , 01:14   Re: Ghost after death
Reply With Quote #6

Then yes, can be disabled from client_PostThink forward.

So following code should block any kind of use :
PHP Code:
public client_PostThink(id)
{
    if( 
is_user_alive(id) )
    {
        new 
iButton
        
if( (iButton pev(idpev_button)) & IN_USE )
        {
            
set_pev(idpev_buttoniButton & ~IN_USE)
        }
        if( (
iButton get_pdata_int(idm_afButtonPressedXO_PLAYER)) & IN_USE )
        {
            
set_pdata_int(idm_afButtonPressediButton & ~IN_USEXO_PLAYER)
        }
        if( (
iButton get_pdata_int(idm_afButtonReleasedXO_PLAYER)) & IN_USE )
        {
            
set_pdata_int(idm_afButtonReleasediButton & ~IN_USEXO_PLAYER)
        }
    }


About plugin, fakemeta_util is not used, don't include it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline