Raised This Month: $ Target: $400
 0% 

Server crashes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mAr7obg
Senior Member
Join Date: May 2007
Location: Bulgaria
Old 04-08-2009 , 13:48   Server crashes
Reply With Quote #1

Hi i made this plugin but i got in my server
SZ_GETSpace overflood message

Please update my code
Sorry for my english
Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
// Motd
#define MOTD_FLAG_ARG 1
#define MOTD_FLAG_END 1
new bool:g_bSawMotd[33];
public plugin_init( ) {
 register_plugin( "good plugin","1.0","mAr7o" );
 set_task(1.0, "setDefault", 0, "", 0, "b") ;
 register_event("ResetHUD", "EventSpawn", "be");
 register_forward( FM_CmdStart, "fwCmdStart" );
 RegisterHam( Ham_Touch, "weapon_scout", "HamHookTouchPre", 0 ) ;
 register_forward(FM_PlayerPreThink, "preThink");
 register_forward(FM_PlayerPostThink, "postThink");
 register_forward(FM_AddToFullPack, "addToFullPack", 1);
 RegisterHam(Ham_Spawn, "weaponbox", "Ham_Spawn_weaponbox_Post", 1);
 register_clcmd("say /start","silent");
 register_clcmd("say /restart","silent");
 register_clcmd("say /reset","silent");
 register_clcmd("say .start","silent");
 register_clcmd("say .restart","silent");
 register_clcmd("say .reset","silent");
 register_clcmd("drop","drop_kill");
 // Motd 
 register_message(get_user_msgid("MOTD"), "message_MOTD");
}
public silent() {  
 return PLUGIN_HANDLED_MAIN; 
}
public EventSpawn(id) {
 if(is_user_connected(id))
  set_pev(id, pev_takedamage, DAMAGE_NO);  
}
public HamHookTouchPre( iEnt ) {
 ExecuteHamB( Ham_Item_Kill, iEnt );
}
public Ham_Spawn_weaponbox_Post(iEnt) { 
 if( pev_valid(iEnt) )  { 
  set_pev(iEnt, pev_flags, FL_KILLME) ;
  ExecuteHam(Ham_Think, iEnt) ;
 } 
}  
public fwCmdStart( id, uc_handle, seed ) {
 set_uc(uc_handle, UC_Impulse, 0);
 return FMRES_SUPERCEDE;
}
public setDefault()  { 
 client_cmd(0, "bind ^"f^" ^"+hook^"") ;
 client_cmd(0, "bind ^"z^" ^"+matrix^"") ;
 client_cmd(0, "bind ^"space^" ^"+jump^"") ;
}
public drop_kill(id) {
 return PLUGIN_HANDLED;
}
// Motd
public client_connect(id){
 g_bSawMotd[id] = false;
}
public message_MOTD(msgid, dest, id){
 if(!g_bSawMotd[id]) {
  if(get_msg_arg_int(MOTD_FLAG_ARG) == MOTD_FLAG_END) {
   g_bSawMotd[id] = true;
  }
  return PLUGIN_HANDLED;
 }
 return PLUGIN_CONTINUE;
}

Last edited by mAr7obg; 04-08-2009 at 13:52.
mAr7obg is offline
Send a message via Skype™ to mAr7obg
 



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 02:25.


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