Raised This Month: $ Target: $400
 0% 

Example Of Sprite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fraancooo-.
BANNED
Join Date: Aug 2009
Location: CLICK HERE
Old 10-19-2009 , 15:22   Re: Example Of Sprite
Reply With Quote #1

Yes, sorry is that previously did not understand you
Fraancooo-. is offline
Send a message via MSN to Fraancooo-.
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-19-2009 , 15:52   Re: Example Of Sprite
Reply With Quote #2

Untested but compiled:

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

new gSpriteModel[] = "sprites/dot.spr"
new gSprite

new gPlayerSprite[33]

public 
plugin_init()
    
register_plugin"Sprite Follow""1.0""Hawk552" )

public 
plugin_precache()
    
gSprite precache_modelgSpriteModel )

public 
plugin_cfg()
    
register_clcmd"mysprite""CmdMySprite" )

public 
CmdMySpriteid )
{
    if ( 
gPlayerSprite[id] )
    {
        
remove_entitygPlayerSprite[id] )
        
gPlayerSprite[id] = 0
    
}
    else
    {
        new 
ent gPlayerSprite[id] = create_entity"info_target" )
        
entity_set_stringentEV_SZ_classname"env_sprite" )
        
entity_set_intentEV_INT_modelindexgSprite )
        
entity_set_intentEV_INT_rendermode// additive for transparency
        
entity_set_floatentEV_FL_renderamt255.0 // completely solid
        
entity_set_edictentEV_ENT_aimentid )
        
entity_set_intentEV_INT_movetypeMOVETYPE_FOLLOW )
    }
    
    return 
PLUGIN_HANDLED

__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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:44.


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