Raised This Month: $ Target: $400
 0% 

Force to Download


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-06-2006 , 20:49  
Reply With Quote #2

Code:
// NOT MEANT TO BE USED, THIS IS AN EXAMPLE #include <amxmodx> #include <amxmisc> #define SOUND_LOCATION "sounds/misc/whatever.wav" public plugin_init() {     register_plugin("Play Sound","1.0","Hawk552");         register_concmd("amx_playsound","PlaySound",ADMIN_KICK," - plays sound"); } public plugin_precache() {     precache_sound(SOUND_LOCATION); } public PlaySound(id,level,cid) {     if(!cmd_access(id,level,cid,1))     {         return;     }         client_cmd(0,"play %s",SOUND_LOCATION);         // or you can use emit_sound()         return; }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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:03.


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