Raised This Month: $ Target: $400
 0% 

help me figure out what i did wrong with this plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
randitobandito
Junior Member
Join Date: Mar 2006
Old 03-12-2006 , 12:11  
Reply With Quote #2

meh, i decided just to post the source to aid the coding gods (you guys) in helping me.

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "randitobandito"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	// Add your code here...
}#include <amxmodx>
#include <amxmisc>

public plugin_init() 
{ 
    register_plugin("Sounds", "1.0","randitobandito")
    register_clcmd("say", "handle_say")
    register_clcmd("say_team", "handle_say")
} 

public plugin_precache()
{ 
    precache_sound("sounds/randysmusicmod/lol.mp3")
    precache_sound("sounds/randysmusicmod/techno.mp3") 
    precache_sound("sounds/randysmusicmod/omg.wav") 
    precache_sound("sounds/randysmusicmod/rock.mp3") 
    precache_sound("sounds/randysmusicmod/fuck.wav") 
    precache_sound("sounds/randysmusicmod/noob.wav") 
    precache_sound("sounds/randysmusicmod/stfu.wav")
} 

public handle_say(id) 
{ 
    new Text[32] 
    read_args(Text, 31)    

    remove_quotes(Text)

    if(equali(Text, "lol")) 
         client_cmd(0, "spk sounds/randysmusicmod/lol.mp3") 

    if(equali(Text, "techno")) 
         client_cmd(0, "spk sounds/randysmusicmod/techno.mp3") 

    if(equali(Text, "omg")) 
         client_cmd(0, "spk sounds/randysmusicmod/omg.wav") 

    if(equali(Text, "rock")) 
         client_cmd(0, "spk sounds/randysmusicmod/rock.mp3") 

    if(equali(Text, "fuck")) 
         client_cmd(0, "spk sounds/randysmusicmod/fuck.wav") 

    if(equali(Text, "noob")) 
         client_cmd(0, "spk sounds/randysmusicmod/noob.wav")
	 
    if(equali(Text, "noob")) 
         client_cmd(0, "spk sounds/randysmusicmod/stfu.wav")

return PLUGIN_HANDLED 
}
__________________

oh him? hes just a ninja, i keep him for when the pirates attack.
randitobandito is offline
Send a message via AIM to randitobandito
 



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 20:26.


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