Raised This Month: $ Target: $400
 0% 

Removing weaponbox crashes server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
peku33
Junior Member
Join Date: Nov 2008
Old 03-21-2011 , 14:48   Removing weaponbox crashes server
Reply With Quote #1

Hi. I created code for simple DM, all works fine. Then I realised, that after 20 mins of 32 players game whole map is covered with dropped weapons.

So i wrote next plugin:

plugin_init:
RegisterHam(Ham_Spawn, "weaponbox", "clear_weapon", 1);

public clear_weapon(id):
fm_remove_entity(id)

After few mins of play server crashes. I use original STEAM (no dproto / cracks etc)

Code:
meta list
Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.1.3  ini   Start ANY  
 [ 2] MySQL            RUN   -    mysql_amxx_i386.  v1.8.1.3  pl1   ANY   ANY  
 [ 3] Fun              RUN   -    fun_amxx_i386.so  v1.8.1.3  pl1   ANY   ANY  
 [ 4] Engine           RUN   -    engine_amxx_i386  v1.8.1.3  pl1   ANY   ANY  
 [ 5] FakeMeta         RUN   -    fakemeta_amxx_i3  v1.8.1.3  pl1   ANY   ANY  
 [ 6] CStrike          RUN   -    cstrike_amxx_i38  v1.8.1.3  pl1   ANY   ANY  
 [ 7] CSX              RUN   -    csx_amxx_i386.so  v1.8.1.3  pl1   ANY   ANY  
 [ 8] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.1.3  pl1   ANY   ANY  
8 plugins, 8 running
version
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 16:56:12 Mar  8 2010 (4883)
Setting it on task (0.1 / 1.0) or checking whether owner is alive does not give any effect. When i remove empty weapon remover, servers works fine.

What should i do?
peku33 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 14:34.


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