Raised This Month: $ Target: $400
 0% 

New Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 10-30-2005 , 12:02  
Reply With Quote #1

Try this:
Your defiend MESSAGES was too large
Code:
#include <amxmodx> #include <amxmisc> /* Dont Need these Modules //#include <cstrike> //#include <fun> //#include <engine> */ #define USING_STEAM 1 // comment this line if your using WON CS 1.5 #define MESSAGES 2 #define MAX_NAME_LENGTH 32 #define MAX_PLAYERS 32 #define MAX_TEXT_LENGTH 192 public plugin_init() {     register_plugin("'Z'","0.1","AMXX")     register_cvar("amx_kalssounds","1") } // Kal's Fun Sounds by Kal2005 //---------------------------- new kals_msg[MESSAGES][]= {     "Cha'mone",     "Check Me!" } new kals_sound[MESSAGES][] = {     "misc/kals/chamone.wav",     "misc/kals/checkme.wav" } new bool:ids[33] //public kalssounds(id,level,cid) //---------------------------------------------------------------------------------------------- public check_say(id) {     if (!ids[id]) return PLUGIN_CONTINUE         new said[32]     read_args(said,31)     remove_quotes(said)     for (new i=0; i<MESSAGES; i++)         if(equal(said,kals_msg[i]))             return PLUGIN_CONTINUE         new ran = random_num(0,MESSAGES-1)     client_cmd(id,"say %s",kals_msg[ran])     if (get_cvar_num("amx_kalssounds"))         client_cmd(id,"spk %s",kals_sound[ran])         return PLUGIN_HANDLED } //---------------------------------------------------------------------------------------------- public client_putinserver(id) {     ids[id] = false }
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
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 23:58.


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