Raised This Month: $ Target: $400
 0% 

help server_cmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AdogeN
Senior Member
Join Date: Feb 2007
Old 08-31-2007 , 05:13   help server_cmd
Reply With Quote #1

I want .
client say /voiceon or /voiceoff .
voice on off. Themselves.
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "AGN"
 
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /voiceon", "action1")
register_clcmd("say /voiceoff", "action2") 
}
public action1(id) {
server_cmd("sv_voiceenable 1")
client_print(id,print_chat,"[server] Voice On") 
}
public action2(id) {
server_cmd("sv_voiceenable 0")
client_print(id,print_chat,"[server] Voice off") 
}
AdogeN is offline
 



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


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