Go Back   Zombie Mod > Main Forums > Maps, Models and Scripts > Event Scripts
User Name
Password


Closed Thread
 
Thread Tools Display Modes
  #1  
Old 02-07-2010, 02:50 PM
MoOnLiGht's Avatar
MoOnLiGht MoOnLiGht is offline
Moderator
 
Join Date: May 2006
Location: Germany
Posts: 2,857
Default Removeidle weapons

this script no longer work,
i dont know why

"16:44:52 Traceback (most recent call last):
File "/home/srcds1/cstrike/addons/eventscripts/es.py", line 339, in loadModuleAddon
newaddon = __import__(importname)
File "/home/srcds1/cstrike/addons/eventscripts/removeidle/removeidle.py", line 1
// WDF Zombie Mod, Idle Weapon Remover-Dead Body Cleaner
SyntaxError: invalid syntax

Code:
// WDF Zombie Mod, Idle Weapon Remover-Dead Body Cleaner // [v 1.0] // March 16-2007, 2:07 AM Est // wdf.CrAzDWolf >>_<< // xxcrazdxx@hotmail.com = msn , CrAzD = xfire import es,gamethread def round_start(ev): gamethread.cancelDelayed('func') remove() def remove(): es.server.cmd('est_DeleteRagDolls') gamethread.delayed(1,es.server.cmd('est_RemoveIdle weapon')) gamethread.delayedname(5,'func',remove)
file: removeidle.py
__________________
  #2  
Old 02-08-2010, 01:35 AM
MoOnLiGht's Avatar
MoOnLiGht MoOnLiGht is offline
Moderator
 
Join Date: May 2006
Location: Germany
Posts: 2,857
Default

problem solved
__________________
  #3  
Old 02-09-2010, 10:28 AM
jankes84's Avatar
jankes84 jankes84 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Default

Give a solution of this problem please.
  #4  
Old 02-09-2010, 02:08 PM
MoOnLiGht's Avatar
MoOnLiGht MoOnLiGht is offline
Moderator
 
Join Date: May 2006
Location: Germany
Posts: 2,857
Default

i used es instead of py

Code:
// WDF Zombie Mod, Idle Weapon Remover-Dead Body Cleaner // [v 1.0] // March 16-2007, 2:07 AM Est // wdf.CrAzDWolf >>_<< // xxcrazdxx@hotmail.com = msn , CrAzD = xfire event round_start { es_xdoblock removeidle/remove } block remove { // est_DeleteRagDolls es_xdelayed 5 est_RemoveIdle weapon es_xdelayed 10 es_xdoblock removeidle/remove //es_msg #green Removed }
__________________
  #5  
Old 02-09-2010, 11:38 PM
Owned|Myself's Avatar
Owned|Myself Owned|Myself is offline
Member
 
Join Date: Aug 2008
Posts: 90
Default

Alternate Solution:

Code:
# WDF Zombie Mod, Idle Weapon Remover-Dead Body Cleaner # [v 1.0] // March 16-2007, 2:07 AM Est # wdf.CrAzDWolf >>_<< # xxcrazdxx@hotmail.com = msn , CrAzD = xfire
Remove // and replace with # .

That was the cause of the problems. // doesn't work as a comment for python!
__________________
  #6  
Old 02-10-2010, 10:42 PM
MoOnLiGht's Avatar
MoOnLiGht MoOnLiGht is offline
Moderator
 
Join Date: May 2006
Location: Germany
Posts: 2,857
Default

oh ...

thank you

__________________

Closed Thread


Thread Tools
Display Modes

Forum Jump


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.