AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hudmessages (https://forums.alliedmods.net/showthread.php?t=113453)

Mxnn 12-27-2009 00:37

Hudmessages
 
I want to show 2 hudmessages but only one the servers prints to me..
My stuff:
PHP Code:

        set_hudmessage(12164224, -1.00.5506.05.0)
        
show_hudmessage(0"%s asd"id)
        
set_hudmessage(12164224, -1.00.6006.02.5)
        
show_hudmessage(0"Map Restart in 6"


platzpatrone 12-27-2009 00:47

Re: Hudmessages
 
do synchronized huds or set a timer

K.K.Lv 12-27-2009 06:52

Re: Hudmessages
 
make sure the hudmessage channel are different !

Hasler 12-27-2009 07:00

Re: Hudmessages
 
PHP Code:

#include <amxmodx>

public plugin_init() {
    
register_plugin("asda""1.0""asd")
    
    
register_clcmd("say /hud","open")
}
public 
open(id){
        new 
zName[32]
        
get_user_name(id,zName,31)
        
set_hudmessage(12164224, -1.00.5506.05.0)
        
show_hudmessage(0"%s asd"zName)
        
set_task(1.0,"open2",id)
}
public 
open2(id){
        
set_hudmessage(12164224, -1.00.6006.02.5)
        
show_hudmessage(0"Map Restart in 6")



K.K.Lv 12-27-2009 07:04

Re: Hudmessages
 
PHP Code:

public open(id){
 new 
zName[32]
 
get_user_name(id,zName,31)
 
set_hudmessage(12164224, -1.00.5506.05.00.10.21)
 
show_hudmessage(0"%s asd"zName)
 
set_hudmessage(12164224, -1.00.6006.02.50.10.22)
 
show_hudmessage(0"Map Restart in 6")


set_hudmessage(12, 164, 224, -1.0, 0.55, 0, 6.0, 5.0, 0.1, 0.2, 1)
set_hudmessage(12, 164, 224, -1.0, 0.60, 0, 6.0, 2.5, 0.1, 0.2, 2)

just look at the last parament !

Hasler 12-27-2009 07:06

Re: Hudmessages
 
Quote:

Originally Posted by K.K.Lv (Post 1032634)
PHP Code:

public open(id){
 new 
zName[32]
 
get_user_name(id,zName,31)
 
set_hudmessage(12164224, -1.00.5506.05.00.10.21)
 
show_hudmessage(0"%s asd"zName)
 
set_hudmessage(12164224, -1.00.6006.02.50.10.22)
 
show_hudmessage(0"Map Restart in 6")


set_hudmessage(12, 164, 224, -1.0, 0.55, 0, 6.0, 5.0, 0.1, 0.2, 1)
set_hudmessage(12, 164, 224, -1.0, 0.60, 0, 6.0, 2.5, 0.1, 0.2, 2)

just look at the last parament !

yes, I did that for me, but as it does not work on it so I did .. but is the same as the task is 1 second

K.K.Lv 12-27-2009 07:11

Re: Hudmessages
 
1 Attachment(s)
it work fine !

Hasler 12-27-2009 07:34

Re: Hudmessages
 
Quote:

Originally Posted by K.K.Lv (Post 1032638)
it work fine !

Yes.

Mxnn 12-27-2009 12:01

Re: Hudmessages
 
Quote:

Originally Posted by K.K.Lv (Post 1032634)
PHP Code:

public open(id){
 new 
zName[32]
 
get_user_name(id,zName,31)
 
set_hudmessage(12164224, -1.00.5506.05.00.10.21)
 
show_hudmessage(0"%s asd"zName)
 
set_hudmessage(12164224, -1.00.6006.02.50.10.22)
 
show_hudmessage(0"Map Restart in 6")


set_hudmessage(12, 164, 224, -1.0, 0.55, 0, 6.0, 5.0, 0.1, 0.2, 1)
set_hudmessage(12, 164, 224, -1.0, 0.60, 0, 6.0, 2.5, 0.1, 0.2, 2)

just look at the last parament !

Thanks but, returns me a warning:
Code:

Warning: Tag mismatch on line 101
Warning: Tag mismatch on line 103
Warning: Tag mismatch on line 112
Warning: Tag mismatch on line 114

//The lines are "set_hudmessage" if i delete the las parameter the warning dissapear


Hasler 12-27-2009 13:11

Re: Hudmessages
 
PHP Code:

#include <amxmodx>

public plugin_init() {
    
register_plugin("asda""1.0""asd")
    
    
register_clcmd("say /hud","open")
}
public 
open(id){
    new 
zName[32]
    
get_user_name(id,zName,31)
    
set_hudmessage(12164224, -1.00.5506.05.00.10.21)
    
show_hudmessage(0"%s asd"zName)
    
set_hudmessage(12164224, -1.00.6006.02.50.10.22)
    
show_hudmessage(0"Map Restart in 6")




All times are GMT -4. The time now is 04:15.

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