Raised This Month: $ Target: $400
 0% 

creating sprites..models ??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-08-2009 , 05:18   Re: creating sprites..models ??
Reply With Quote #4

but i cant see anything when i say /sprite
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();
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
where is the problem?
byetovice 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 17:39.


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