Raised This Month: $12 Target: $400
 3% 

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:10   Example Of Sprite
Reply With Quote #1

Someone give me an example on how to make a sprite to a player?

From already thank you very much

Sorry For my bad English
Fraancooo-. is offline
Send a message via MSN to Fraancooo-.
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-19-2009 , 15:14   Re: Example Of Sprite
Reply With Quote #2

Quote:
Originally Posted by Fraancooo-. View Post
Someone give me an example on how to make a sprite to a player?

From already thank you very much

Sorry For my bad English
You mean one that follows a player? Do you want it as a message or an entity?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Fraancooo-.
BANNED
Join Date: Aug 2009
Location: CLICK HERE
Old 10-19-2009 , 15:15   Re: Example Of Sprite
Reply With Quote #3

As an entity, to put many sprites on a menu and you can buy, such as the powers of the Super Hero
Fraancooo-. is offline
Send a message via MSN to Fraancooo-.
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-19-2009 , 15:16   Re: Example Of Sprite
Reply With Quote #4

Quote:
Originally Posted by Fraancooo-. View Post
As an entity, to put many sprites on a menu and you can buy, such as the powers of the Super Hero
What do you want the entity to do? Follow a player?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Fraancooo-.
BANNED
Join Date: Aug 2009
Location: CLICK HERE
Old 10-19-2009 , 15:22   Re: Example Of Sprite
Reply With Quote #5

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 #6

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
Fraancooo-.
BANNED
Join Date: Aug 2009
Location: CLICK HERE
Old 10-19-2009 , 16:04   Re: Example Of Sprite
Reply With Quote #7

thanks testing now
Fraancooo-. is offline
Send a message via MSN to Fraancooo-.
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 06:12.


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