Raised This Month: $ Target: $400
 0% 

show_hudmessage 5 times but bring down the variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 01-06-2007 , 23:06   Re: show_hudmessage 5 times but bring down the variables
Reply With Quote #2

I don't know exactly what you want to do, so here's an example: (untested)


Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "stupok69" #define MAX_MESSAGES 3 new message[MAX_MESSAGES][] = {     "lol this is the first message",     "rofl here's the second one",     "ok this is the last one" } new messagenum[33] public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public client_putinserver(id) {     messagenum[id] = 0     set_task(1.0, "hud_function", id, "", 0, "a", 3) } public hud_function(id) {     new name[32]     get_user_name(id, name, 31)         set_hudmessage(200, 100, 0, 0.0, 0.0, 0, 0.0, 2.0, 0.0, 0.0, -1)     show_hudmessage(0, "%s :   %s", name, message[messagenum[id]])         messagenum[id]++ }
stupok is offline
 



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 22:29.


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