Quote (Blue)
How to make hud sprite show on the screen like this? sorry im a newbie start learning the script please teach me or how to make procedure or sample! thanks
Use get_user_msgid("StatusIcon")Added (2012 September 26, 10:22:07)
---------------------------------------------
Try this :
Code
/* Plugin generated by AMXX-Studio */
/* Write this script below in hud.txt :
// showsprite
showsprite 640 showsprite 0 0 0 0
*/
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Show Sprite Hud"
#define VERSION "1.0"
#define AUTHOR "Chocolatos aka. Forcas Cocoa"
new iconstatus;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
iconstatus = get_user_msgid("StatusIcon");
}
public show_spr(id)
{
new spr_name[33];
spr_name = "showsprite";
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(1); // status (0=hide, 1=show, 2=flash)
write_string(spr_name); // sprite name
message_end();
}