Raised This Month: $ Target: $400
 0% 

ExecuteHamB, inflictor.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-25-2010 , 14:13   Re: ExecuteHamB, inflictor.
Reply With Quote #2

Because you cant create an entity with a custom classname, so the ent is not created.
Create a info_target, and then alter the classname.
Actually you pass Ent == 0 == world.

If you need this at different places in your plugin and with different classes you can use this stock :

PHP Code:
create_custom_entity(const weaponDescription[])
{
    new 
iEnt create_entity("info_target")
    if( 
iEnt )
    {
        
set_pev(iEntpev_classnameweaponDescription)
    }
    return 
iEnt

Then :

new Ent = create_custom_entity(weaponDescription);
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-25-2010 at 14:15.
ConnorMcLeod is offline
 



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:17.


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