Raised This Month: $ Target: $400
 0% 

ExecuteHamB, inflictor.


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-25-2010 , 20:36   Re: ExecuteHamB, inflictor.
Reply With Quote #11

Quote:
Originally Posted by 01101101 View Post
@xbatista

You better edit that before yami captures your crab.
He's not asking for support for it.
He clearly said it works for Non-Steam and is trying to get it to work for Steam.
We should only ban for asking to help Non-Steam, not just for using it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-25-2010 , 21:16   Re: ExecuteHamB, inflictor.
Reply With Quote #12

Quote:
Originally Posted by xbatista View Post
About non-steam is for testing purpose.
Ok, I'll go steal a car to test it out, I need one that can go through all the snow better.
__________________
fysiks is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-25-2010 , 21:49   Re: ExecuteHamB, inflictor.
Reply With Quote #13

Quote:
Originally Posted by fysiks View Post
Ok, I'll go steal a car to test it out, I need one that can go through all the snow better.
You made me giggle, how dare you.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-25-2010 , 22:16   Re: ExecuteHamB, inflictor.
Reply With Quote #14

Quote:
Originally Posted by wrecked_ View Post
You made me giggle, how dare you.
I know! Snow is so funny.
__________________
fysiks is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-25-2010 , 23:12   Re: ExecuteHamB, inflictor.
Reply With Quote #15

Quote:
Originally Posted by fysiks View Post
I know! Snow is so funny.
It seems you've done it again. No matter, I shall win this battle in the end and exterminate your existence on this feeble planet of ours.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-26-2010 , 07:29   Re: ExecuteHamB, inflictor.
Reply With Quote #16

Quote:
xbatista killed [P0D]Infected_Derek (97) with id` (`player_steamid`), KEY `
Quote:
xbatista killed [P0D]Infected_Gordon (100) with t.mdl
LOOOOOOOOOOOOOOOOOOOL what the hell???

1-st main plugin :
PHP Code:
// plugin init
g_FakeEnt create_entity"trigger_hurt" );

// plugin natives
register_native("dmg_kill_player""Dmg_Kill_Player"1);

// other
public Dmg_Kill_Player(idattackerFloat:damageweaponDescription[])
{
    if( 
is_user_alive(id) && is_user_alive(attacker) ) 
    {
        if ( 
pev_valid g_FakeEnt ) )
        {
            
entity_set_edictg_FakeEntEV_ENT_ownerattacker)
            
entity_set_stringg_FakeEntEV_SZ_classnameweaponDescription)
        }
        
ExecuteHamBHam_TakeDamageidg_FakeEntattackerdamageDMG_GENERIC );
     }

.INC :
PHP Code:
native dmg_kill_player(idattackerFloat:damageweaponDescription[]) 
2-nd plugin :
PHP Code:
dmg_kill_player(enemyid50.0 "holy_freeze"); 
LOOOOOOOOOOOOOOOOOOOOOOOOOLLLLLLLLLLLLLLLLLLL LLLL
It copies random words from a plugin and I have this in my plugin :
PHP Code:
// xbatista killed [P0D]Infected_Derek (97) with id` (`player_steamid`), KEY `
new const szTables[][] =  

    
"CREATE TABLE IF NOT EXISTS `d2_data` ( `player_id` int(8) unsigned NOT NULL auto_increment, `player_steamid` varchar(25) NOT NULL default '', `player_ip` varchar(20) NOT NULL default '', `player_name` varchar(35) NOT NULL default '', `player_data` varchar(4096) NOT NULL default '', PRIMARY KEY  (`player_id`), KEY `player_name` (`player_name`), KEY `player_ip` (`player_ip`), KEY `player_steamid` (`player_steamid`), KEY `player_data` (`player_data`) ) TYPE=MyISAM;" 


// xbatista killed [P0D]Infected_Gordon (100) with t.mdl
formatexMdl_Pathsizeof Mdl_Path 1"models/player/%s/%st.mdl"Custom_Models[i], Custom_Models[i]) 
__________________

Last edited by xbatista; 01-26-2010 at 07:39.
xbatista is offline
Send a message via Skype™ to xbatista
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-26-2010 , 08:21   Re: ExecuteHamB, inflictor.
Reply With Quote #17

Problem solved :
PHP Code:
public Dmg_Kill_PlayeriPluginiParams 
{
    new 
id get_param)
    new 
attacker get_param )
    new 
Float:damage get_param_f )
    new 
weaponDescription[32];
    
get_string4weaponDescriptionsizeof weaponDescription ) - );
    
    if( 
is_user_alive(id) && is_user_alive(attacker) ) 
    {
        
ExecuteForwardg_DamagedbySkillg_iReturnidattackerdamage);

        if ( 
pev_valid g_FakeEnt ) )
        {
            
entity_set_edictg_FakeEntEV_ENT_ownerattacker);
            
entity_set_stringg_FakeEntEV_SZ_classnameweaponDescription);
        }
        
        
ExecuteHamBHam_TakeDamageidg_FakeEntattackerdamageDMG_GENERIC );
    }

__________________
xbatista is offline
Send a message via Skype™ to xbatista
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-26-2010 , 14:23   Re: ExecuteHamB, inflictor.
Reply With Quote #18

You shouldn't need to check if pev is valid if you are sure you created it, also, you may want to reset classname to something specific after the code is executed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-26-2010 , 14:24   Re: ExecuteHamB, inflictor.
Reply With Quote #19

Quote:
Originally Posted by ConnorMcLeod View Post
you may want to reset classname to something specific after the code is executed.
why ?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-26-2010 , 14:34   Re: ExecuteHamB, inflictor.
Reply With Quote #20

dunno, just consider it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 17:25.


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