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:16   Re: exec hud msg and sound via cmd
Reply With Quote #1

Plugin you want to run :

register_clcmd("something","goFuNCtion")
register_clcmd("blackstats","goFuNCtion")

Plugin which do u want call the "First one" :

client_cmd(id,"something")
or
client_cmd(id,"backstats")

Sorry for double post
MyDooMJr is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 01-05-2011 , 13:46   Re: exec hud msg and sound via cmd
Reply With Quote #2

would look like?
PHP Code:
#include <amxmodx> 
#include <amxmisc>

#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(2552552550.2750.302.06.00.80.82)
   
show_hudmessage(0"Hello, good game!")
   
client_cmd(id,"speak hello")

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