Raised This Month: $ Target: $400
 0% 

How to show permanent sprite?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-13-2012 , 08:58   Re: How to show permanent sprite?
Reply With Quote #6

Well, Help please

Quote:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /sprite","ShowSprite")
}
public plugin_precache()
{
sprite = precache_model("sprites/weapon.spr")
}
public ShowSprite(id){
static ent
ent = create_entity("info_target")
if(ent)
{
entity_set_string(ent,EV_SZ_classname,"info_s prite") // entity classname, put what do you want here or leave it info_sprite...
entity_set_model(ent,"sprites/weapon.spr") // path to the sprite

entity_set_int(ent,EV_INT_solid,SOLID_NOT) // not solid
entity_set_int(ent,EV_INT_movetype,MOVETYPE_N ONE) // don't move

set_rendering(ent, kRenderFxNoDissipation, 0,0,0, kRenderGlow, 255) // put this to remove the black background of the sprite

entity_set_origin(ent,Float:{0.0,0.0,0.0}) // put your origin here : Float:{X , Y , Z}
}
}
Randomize 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 00:29.


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