Raised This Month: $ Target: $400
 0% 

xPaw Santa Hat (Please add Remove command)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ORGANNER
New Member
Join Date: Oct 2014
Old 10-13-2014 , 15:25   xPaw Santa Hat (Please add Remove command)
Reply With Quote #1

Sorry my english is bad.

Title ^^

(Please add a Remove command)

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

public plugin_precache( )
{
    
precache_model"models/hat1.mdl" );
}

public 
plugin_init( )
{
    new const 
VERSION[ ] = "1.3";
    
    
register_plugin"Santa Hat"VERSION"xPaw" );
    
    
    new 
iEntity,
        
iMaxPlayers get_maxplayers( ),
        
iInfoTarget engfuncEngFunc_AllocString"info_target" );
    
    new const 
MODEL[ ] = "models/hat1.mdl";
    
    for( new 
id 1id <= iMaxPlayersid++ )
    {
        
iEntity engfuncEngFunc_CreateNamedEntityiInfoTarget );
        
        if( 
pev_validiEntity ) )
        {
            
engfuncEngFunc_SetModeliEntityMODEL );
            
set_peviEntitypev_movetypeMOVETYPE_FOLLOW );
            
set_peviEntitypev_aimentid );
            
set_peviEntitypev_ownerid );
        }
    }

ORGANNER is offline
HENNESSY
Member
Join Date: Sep 2013
Location: Russian Federation, Bela
Old 10-13-2014 , 16:34   Re: xPaw Santa Hat (Please add Remove command)
Reply With Quote #2

Add a classname to the entity and use this to find the entity and remove it from player.
HENNESSY 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 17:31.


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