AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Continuous hud message? (https://forums.alliedmods.net/showthread.php?t=129901)

GXLZPGX 06-18-2010 03:55

Continuous hud message?
 
How could I make a hud message continuous?

PHP Code:

set_hudmessage(2552552550.60.0206.04.0


DragosHh 06-18-2010 05:30

Re: Continuous hud message?
 
You must create a task to make this.

Code:

#include <amxmodx>

#define PLUGIN "Continuous HUD Message"
#define VERSION "1.0"
#define AUTHOR "U"

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
   
    set_task(1.0,"message",_,_,_,"b")
}

public message(){
    set_hudmessage(255, 255, 255, 0.6, 0.02, 0, 6.0, 4.0)
    show_hudmessage(0,"Continuous HUD Message")
}


GXLZPGX 06-18-2010 05:44

Re: Continuous hud message?
 
Quote:

Originally Posted by DragosHh (Post 1212287)
You must create a task to make this.

Code:

#include <amxmodx>

#define PLUGIN "Continuous HUD Message"
#define VERSION "1.0"
#define AUTHOR "U"

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
   
    set_task(1.0,"message",_,_,_,"b")
}

public message(){
    set_hudmessage(255, 255, 255, 0.6, 0.02, 0, 6.0, 4.0)
    show_hudmessage(0,"Continuous HUD Message")
}


Already thought of that, didn't know if there was a different way. Thanks.


All times are GMT -4. The time now is 14:45.

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