Raised This Month: $ Target: $400
 0% 

exec hud msg and sound via cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MyDooMJr
Member
Join Date: Jun 2009
Location: Portugal
Old 01-05-2011 , 13:55   Re: exec hud msg and sound via cmd
Reply With Quote #1

[Automatic Hello :]


Code:
public client_putinserver(id) 
{ 
    set_task(5.0, "welcome", id) 
} 
public welcome(id) 
{ 
    if(is_user_connected(id)) 
    { 
        set_hudmessage(255, 255, 255, 0.275, 0.3, 0, 2.0, 6.0, 0.8, 0.8, 2)
        show_hudmessage(0, "Hello, good game!")
        client_cmd(id,"speak hello") 
    } 
}
[Manual Hello:]

Code:
#define CVAR1 ADMIN_CVAR

public plugin_init() 
{ 
    register_plugin ("Hello Server", "1.0", "BackStats") 
    register_concmd ("amx_hellosv", "hello_setup",CVAR1, "Hello Server") 
}

public hello_setup()
{
    set_hudmessage(255, 255, 255, 0.275, 0.3, 0, 2.0, 6.0, 0.8, 0.8, 2)
    show_hudmessage(0, "Hello, good game!")
    client_cmd(id,"speak hello")
}
Regards

Last edited by MyDooMJr; 01-05-2011 at 13:57.
MyDooMJr is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 01-05-2011 , 13:58   Re: exec hud msg and sound via cmd
Reply With Quote #2

I just need it to appear on the screen when the command is executed, and not automatic.
BackStats is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 01-05-2011 , 14:01   Re: exec hud msg and sound via cmd
Reply With Quote #3

was only the remove:
PHP Code:
#include <amxmodx>  
#include <amxmisc> 
I will test it here a few hours.
great.
BackStats 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 01:26.


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