AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   xPaw Santa Hat (Please add Remove command) (https://forums.alliedmods.net/showthread.php?t=249875)

ORGANNER 10-13-2014 15:25

xPaw Santa Hat (Please add Remove command)
 
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 );
        }
    }



HENNESSY 10-13-2014 16:34

Re: xPaw Santa Hat (Please add Remove command)
 
Add a classname to the entity and use this to find the entity and remove it from player.


All times are GMT -4. The time now is 17:31.

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