Raised This Month: $ Target: $400
 0% 

show_hudmessage problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 03-16-2012 , 12:35   show_hudmessage problem
Reply With Quote #1

I'm trying to add hudmessage in one plugin when the client connect.
But the message is not displayed.

PHP Code:
public client_connect(id)
{
 
set_hudmessage(2552552550.280.26506.01.0)
 
show_hudmessage(id"***********************************************");
 
show_hudmessage(id" * Message *");
 
show_hudmessage(id" * Message *");
 
show_hudmessage(id"***********************************************");
 
show_hudmessage(id" * Message *");
 
show_hudmessage(id" ***********************************************");

pepe_thugs is offline
killergirl
Senior Member
Join Date: Jul 2010
Old 03-16-2012 , 12:45   Re: show_hudmessage problem
Reply With Quote #2

PHP Code:
new n
new const list[][] =
{
    
"Hello !",
    
"AAAAAAAAAAAAAAAAA",
    
"BBBBBBBBBBBBBBBBB"
}

//after client entered the server.
public client_putinserver(id){
    
set_task(1.0"msg"id__"a"sizeof(list))
}

public 
msg(id){
    if(!
is_user_connected(id))
        return 
PLUGIN_HANDLED
    
    set_hudmessage
(2552552550.280.26506.01.0)
    
show_hudmessage(id, list[n])
    
    
n++
    
    if(
== sizeof(list))
        
0
    
    
return PLUGIN_HANDLED
}

// While player is connectING to the server, he will not see anything.
public client_connect(id){
    static 
name[32]
    
get_user_name(idname31)
    
    
client_print(0print_chat"%s is connecting to the server."name)
    
//This message will be printed to players chat who is CONNECTED to the server.

killergirl is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 03-16-2012 , 14:06   Re: show_hudmessage problem
Reply With Quote #3

Quote:
Originally Posted by killergirl View Post
PHP Code:
new n
new const list[][] =
{
    
"Hello !",
    
"AAAAAAAAAAAAAAAAA",
    
"BBBBBBBBBBBBBBBBB"
}
 
//after client entered the server.
public client_putinserver(id){
    
set_task(1.0"msg"id__"a"sizeof(list))
}
 
public 
msg(id){
    if(!
is_user_connected(id))
        return 
PLUGIN_HANDLED
 
    set_hudmessage
(2552552550.280.26506.01.0)
    
show_hudmessage(id, list[n])
 
    
n++
 
    if(
== sizeof(list))
        
0
 
    
return PLUGIN_HANDLED
}
 
// While player is connectING to the server, he will not see anything.
public client_connect(id){
    static 
name[32]
    
get_user_name(idname31)
 
    
client_print(0print_chat"%s is connecting to the server."name)
    
//This message will be printed to players chat who is CONNECTED to the server.


Thank's killergirl
But I think do not explained myself very well
Attached Files
File Type: sma Get Plugin or Get Source (anti_spawnkill.sma - 382 views - 7.3 KB)

Last edited by pepe_thugs; 03-16-2012 at 14:08.
pepe_thugs is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 03-16-2012 , 16:41   Re: show_hudmessage problem
Reply With Quote #4

I tried this.
But i want this appear the message in all rounds...
Attached Files
File Type: sma Get Plugin or Get Source (anti_spawnkill.sma - 454 views - 7.5 KB)

Last edited by pepe_thugs; 03-16-2012 at 16:43.
pepe_thugs is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 03-16-2012 , 18:05   Re: show_hudmessage problem
Reply With Quote #5

logevent_round_start , search it up
EpicMonkey is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 03-16-2012 , 19:36   Re: show_hudmessage problem
Reply With Quote #6

Quote:
Originally Posted by EpicMonkey View Post
logevent_round_start , search it up

Thanks it work well.
But can someone help me put the phrase appear during the same time who the spawn_protection ?
Attached Files
File Type: sma Get Plugin or Get Source (anti_spawnkill.sma - 477 views - 7.4 KB)
pepe_thugs is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-16-2012 , 20:03   Re: show_hudmessage problem
Reply With Quote #7

Just an FYI you can only have 4 huds displaying at one time.. if you have 4 in one plugin and another plugin decides to throw one up.. the one created first i believe will be deleted (removed from view)
Doc-Holiday is offline
killergirl
Senior Member
Join Date: Jul 2010
Old 03-16-2012 , 21:12   Re: show_hudmessage problem
Reply With Quote #8

You can use synchud:

http://www.amxmodx.org/funcwiki.php?go=func&id=1064
http://www.amxmodx.org/funcwiki.php?go=func&id=1063
killergirl is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 03-17-2012 , 00:36   Re: show_hudmessage problem
Reply With Quote #9

Doc-Holiday and killergirl

Thanks for help
pepe_thugs is offline
Reply



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 06:16.


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