LongJump Icon
3 Attachment(s)
Description: Displays LJ icon, if player has it.
Screenshot
Changelog:
|
Re: LongJump Icon
Looking at the HL code, it does already show the icon, what is the point of your plugin ?
With your code, it hooks when the message ItemPickup is sent, to sent again the message... It doesn't make sense. Don't use EngFunc_RegUserMsg because such message is already registered, you should use get_user_msgid. And there is no point to use EngFunc_MessageBegin here instead of message_begin. |
Re: LongJump Icon
Quote:
Code:
L 02/20/2012 - 15:46:02: Plugin called message_begin with an invalid message id (0). Quote:
Code:
L 02/20/2012 - 15:49:06: Plugin called message_begin with an invalid message id (101). |
Re: LongJump Icon
Don't know what you've done but here the code (edit : why hooking in precache ?)
Code:
And you don't understand register_event("ItemPickup","showicon","b","1 &item_longjump") means AMXX hooks ItemPickup message, meaning this message is already registered and can be hooked. In other words, ItemPickup is sent, Amxx catches it, then you send again the message.. What is the point ? |
Re: LongJump Icon
I don't understand you. I just hooking ItemPickup for lj pickup. I registering StatusIcon message, because there is no in hl.
Look plugin with this hook |
Re: LongJump Icon
I guess you don't know what you're doing and your plugin doesn't make sense.
If you don't understand what I've said, I don't how I could explain. Will try again : - Such message is already sent by the game. - Your code hooks when such message is sent by the game, and you send again the message. - About RegUserMsg, just don't hook an event in precache time. Really, what are you doing ? Unapproved. |
Re: LongJump Icon
|
Re: LongJump Icon
Just seen, you send StatusIcon and not ItemPickup. What a big fail. My bad. I thought you were sending again ItemPickup, that's why I did not understand at all. Sorry.
So, yes the code is correct since the client supports StatusIcon but the server doesn't register it. Do you use EngFunc_MessageBegin because of a specific reason ? |
Re: LongJump Icon
Quote:
message_begin works only with defaults messages. |
Re: LongJump Icon
Quote:
|
All times are GMT -4. The time now is 22:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.