Raised This Month: $ Target: $400
 0% 

How to show sprites


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-07-2012 , 10:27   Re: How to show sprites
Reply With Quote #5

Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
new sprite;

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define TE_SPRITE                   17       
public plugin_init() {
 register_plugin(PLUGIN, VERSION, AUTHOR)
 register_clcmd("say /sprite","cmdtest")
 
}
public plugin_precache()
{
sprite = precache_model("sprites/flame.spr") 
}
public cmdtest(id)
{
new origin[3];
origin[0] = get_user_origin(id,origin,0)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
write_byte(TE_SPRITE);
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2]);
write_short(sprite);
write_byte(1);
write_byte(127);
message_end();
}
This code is correct?
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