Raised This Month: $32 Target: $400
 8% 

[Native]Sync HUD Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-15-2009 , 05:36   [Native]Sync HUD Messages
Reply With Quote #1

Sync HUD Messages

  • This API was intended to work with alot of messages and 1 channel and save the others. If you want to show like 3 messages in channel 1, just call the native SyncHudMessage() 3 times for channel 1 with what params you want. Also support individual params for each message.
  • The messages will be showed in order, after the last one showed is gone.
  • So if you have 3 plugins that show hud messages on same channel and all use SyncHudMessage, messages will be showed in order, will not overwrite.

Maybe this isn't the best way,but as i can see worked fine until now.

Native: SyncHudMessage(id, red, green, blue, Float: x, Float:y, effects, Float:fxtime, Float:holdtime, Float:fadeintime, Float:fadeouttime, channel, text[], any:...)

Feel free to report any possible bugs/optimizations.

Attached Files
File Type: sma Get Plugin or Get Source (sync_hudmessages.sma - 2284 views - 2.8 KB)
File Type: inc synchm.inc (267 Bytes, 886 views)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 08-15-2009 at 17:03.
Alka is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-15-2009 , 06:07   Re: Sync HUD Messages
Reply With Quote #2

Cool
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2009 , 06:10   Re: Sync HUD Messages
Reply With Quote #3

Nice. I will probably use it for a plugin. ( Damn I've totally forgot to test it when you have asked me.. )
__________________

Last edited by Arkshine; 08-15-2009 at 06:13.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-15-2009 , 07:13   Re: Sync HUD Messages
Reply With Quote #4

You could enable the second color and alpha (for both colors), you would need to send SVC_TEMPENTITY instead of show_hudmessage then, but would be awesome.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 08-15-2009 , 07:24   Re: Sync HUD Messages
Reply With Quote #5

that lead too much params to pass, better to control params less than 7
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-15-2009 , 07:47   Re: Sync HUD Messages
Reply With Quote #6

@Arkshine - Np, it was a minor fix.
@Connor - Like jim said, too much params...but ofc will be nice.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-15-2009 , 11:07   Re: Sync HUD Messages
Reply With Quote #7

Wow, good job alka...

But i dont understand at all how to use it, cuz i thinked that the plugin is an example but no... so, if i want to use it on a plugin, i have to use the include and your plugin enabled?

Thx, and sry for my english.
Alucard^ is offline
Send a message via Skype™ to Alucard^
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-15-2009 , 17:03   Re: Sync HUD Messages
Reply With Quote #8

It's a native, install the plugin attached on your server, then use the native showed above in any plugin you want :-D
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-15-2009 , 19:07   Re: [Native]Sync HUD Messages
Reply With Quote #9

Ok, thx to much and... other question... a plugin that use this native (that requires your plugin and the .inc) can be approved? Or is only for a "personal purpose"?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-15-2009 , 19:26   Re: [Native]Sync HUD Messages
Reply With Quote #10

Of course it can be approved. I released this so that people can use it...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Reply


Thread Tools
Display Modes

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 10:49.


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