def stripWeapon(gungamePlayer, playerHandle, weaponType):
weaponIndex = gungamePlayer.getWeaponIndex(playerHandle, weaponType)
es.log('trying to remove')
if weaponIndex:
if spe.removeEntityByIndex(weaponIndex):
es.log('Safely removed entity')
else:
es.log('Tried to remove invalid entity')
Didn't fix the problem, check this out:
L 01/09/2010 - 16:54:47: trying to remove
./srcds_run: line 344: 30437 segmentation fault $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
sob sty 9 16:54:47 CET 2010: Server restart in 10 seconds
and one more:
.pk. ҒŗŗĕQ is now leading on level 3
L 01/09/2010 - 10:38:07: trying to remove
./srcds_run: line 344: 25567 segmentation fault $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
sob sty 9 10:38:07 CET 2010: Server restart in 10 seconds
and I can tell you, it happening most likely only on Linux.