Raised This Month: $ Target: $400
 0% 

Free Defuser Kit


Post New Thread Reply   
 
Thread Tools Display Modes
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 04-29-2009 , 08:31   Re: Free Defuser Kit
Reply With Quote #11

Nice with that color change.
PS: You don't need to return something.
__________________

anakin_cstrike is offline
beckham9224
Senior Member
Join Date: Feb 2009
Location: Asia, Mongolia
Old 04-29-2009 , 09:05   Re: Free Defuser Kit
Reply With Quote #12

naise!
beckham9224 is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 04-29-2009 , 12:36   Re: Free Defuser Kit
Reply With Quote #13

Quote:
Originally Posted by beckham9224 View Post
naise!
grr
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Airlangga7
Junior Member
Join Date: Mar 2011
Location: Dunno lol
Old 08-30-2011 , 22:11   Re: Free Defuser Kit
Reply With Quote #14

Can u remove the defuser kit on map when CT dead?
_______________________
Sorry for my bad English
Airlangga7 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-31-2011 , 01:16   Re: Free Defuser Kit
Reply With Quote #15

Quote:
Originally Posted by Airlangga7 View Post
Can u remove the defuser kit on map when CT dead?
_______________________
Sorry for my bad English
Try this :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

const XO_PLAYER 5
const m_bSpectatedPlayerHasDefuser  103
const m_iTeam   114
const OFFSET_DEFUSE_PLANT   193
const has_defuser 1<<2

public plugin_init()
{
    
register_plugin("Free DefuseKit""1.2""tuty")

    
RegisterHam(Ham_Spawn"player""CBasePlayer_Spawn_Pre"false)
    
RegisterHam(Ham_Killed"player""CBasePlayer_Killed_Pre"false)
}

public 
CBasePlayer_Killed_Preid )
{
    
set_user_defuser(idfalse)
}

public 
CBasePlayer_Spawn_Preid )
{
    if( 
is_user_aliveid ) &&  get_pdata_int(idm_iTeamXO_PLAYER) == )
    {
        
set_user_defuser(idtrue)
        
set_pdata_int(idm_bSpectatedPlayerHasDefuserfalseXO_PLAYER)
    }
}

set_user_defuser(idbDefuser)
{
    new 
_defuse_plant get_pdata_int(idOFFSET_DEFUSE_PLANTXO_PLAYER)
    if( 
bDefuser )
    {
        if(  ~
_defuse_plant has_defuser )
        {
            
set_pdata_int(idOFFSET_DEFUSE_PLANT_defuse_plant has_defuserXO_PLAYER)
        }
    }
    else if(  
_defuse_plant has_defuser )
    {
        
set_pdata_int(idOFFSET_DEFUSE_PLANT_defuse_plant & ~has_defuserXO_PLAYER)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Airlangga7
Junior Member
Join Date: Mar 2011
Location: Dunno lol
Old 09-01-2011 , 03:53   Re: Free Defuser Kit
Reply With Quote #16

Quote:
Originally Posted by ConnorMcLeod View Post
Try this :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

const XO_PLAYER 5
const m_bSpectatedPlayerHasDefuser  103
const m_iTeam   114
const OFFSET_DEFUSE_PLANT   193
const has_defuser 1<<2

public plugin_init()
{
    
register_plugin("Free DefuseKit""1.2""tuty")

    
RegisterHam(Ham_Spawn"player""CBasePlayer_Spawn_Pre"false)
    
RegisterHam(Ham_Killed"player""CBasePlayer_Killed_Pre"false)
}

public 
CBasePlayer_Killed_Preid )
{
    
set_user_defuser(idfalse)
}

public 
CBasePlayer_Spawn_Preid )
{
    if( 
is_user_aliveid ) &&  get_pdata_int(idm_iTeamXO_PLAYER) == )
    {
        
set_user_defuser(idtrue)
        
set_pdata_int(idm_bSpectatedPlayerHasDefuserfalseXO_PLAYER)
    }
}

set_user_defuser(idbDefuser)
{
    new 
_defuse_plant get_pdata_int(idOFFSET_DEFUSE_PLANTXO_PLAYER)
    if( 
bDefuser )
    {
        if(  ~
_defuse_plant has_defuser )
        {
            
set_pdata_int(idOFFSET_DEFUSE_PLANT_defuse_plant has_defuserXO_PLAYER)
        }
    }
    else if(  
_defuse_plant has_defuser )
    {
        
set_pdata_int(idOFFSET_DEFUSE_PLANT_defuse_plant & ~has_defuserXO_PLAYER)
    }

Didn't work
_______________________
Sorry for my bad English
Airlangga7 is offline
Reply



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 07:33.


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