Raised This Month: $ Target: $400
 0% 

Damage Sprite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 05-31-2014 , 20:51   Damage Sprite
Reply With Quote #1

Hi,
How can I do to show this sprite:



I try with this, but doesn't work for me:
PHP Code:
new g_Message_Damage;

g_Message_Damage get_user_msgid("Damage");

message_begin(MSG_ONE_UNRELIABLEg_Message_Damage_id);
write_byte(0);
write_byte(0);
write_long(DMG_BULLET);
write_coord(0);
write_coord(0);
write_coord(0);
message_end(); 

I try to show that sprite when you receive damage from an entity, like this:
PHP Code:
ExecuteHam(Ham_TakeDamagevictim0entity1.0DMG_BULLET);
// show the 'sprite' 

Thanks in advanced!
__________________


Last edited by Kiske; 05-31-2014 at 20:53.
Kiske is offline
Send a message via Skype™ to Kiske
Rirre
Veteran Member
Join Date: Nov 2006
Old 06-03-2014 , 06:29   Re: Damage Sprite
Reply With Quote #2

Not much info, but this works:
Code:
#include <fakemeta> new gmsgDamage; public plugin_init() {     gmsgDamage = get_user_msgid("Damage"); } public function(id) {     message_begin( MSG_ONE, gmsgDamage, _, id );     write_byte( 0 );     write_byte( 1 );     write_long( DMG_BULLET );     write_coord( 0 );     write_coord( 0 );     write_coord( 0 );     message_end(); }

Last edited by Rirre; 06-03-2014 at 06:30.
Rirre is offline
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 09:42.


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