View Single Post
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 - 2314 views - 2.8 KB)
File Type: inc synchm.inc (267 Bytes, 899 views)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 08-15-2009 at 17:03.
Alka is offline