Raised This Month: $ Target: $400
 0% 

Need help with a sound script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 02-11-2005 , 12:18   Need help with a sound script
Reply With Quote #1

One of my first plugins. What im trying to make is when a admin types amx_sound <file name> it will get played for everyone on the server. If anybody know if there is any plugin like it already tell me... Here it is:
Code:
#include <amxmodx> plublic plugin_init() {     register_plugin("Admin Sounds", "1.0", "XunTric")     register_concmd("amx_sound", "cmdsound", ADMIN_SLAY, "<Sound name> Plays a sound for the server") } plublic cmdsound(id,level,cid) {     if(!cmd_access(id,level,cid,1))          return PLUGIN_HANDLED     server_cmd("play sound/adminsound/%s")          return PLUGIN_CONTINUE }
XunTric 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 19:21.


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