Forum

> > CS2D > Scripts > [REQUEST] Zombie Lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English [REQUEST] Zombie Lua

24 replies
Page
To the start Previous 1 2 Next To the start

old Re: [REQUEST] Zombie Lua

Jedediastwo
User Off Offline

Quote
Only do what I say, open notepad, paste the code and save as .lua

in the folder: sys/lua/autorun

With this code bellow, only the terrorists (zombie) will wait 10 seconds. Or you can just do Trigger Start, Trigger Delay and DynWall.

1
2
3
4
5
6
7
8
9
10
addhook("startround","_startround")
function _startround()
     freetimer()
     for _,id in pairs(player(0,"table")) do
          if player(id,"team")==1 then
               parse("speedmod "..id.." -100")
               timer(10000,"parse","speedmod "..id.." 0")
          end
     end
end

old Re: [REQUEST] Zombie Lua

GeoB99
Moderator Off Offline

Quote
@user Jedediastwo: Iterating over all players wouldn't make much sense because you're taking into consideration even spectators. You could iterate over living players only.

Also I'd never recommend to anyone putting their scripts in autorun folder cause of issues which autorun possess.

old lua

_Vipersiax
User Off Offline

Quote
can you do after someone's be zombie and revive him? thats what i need it.

old Re: [REQUEST] Zombie Lua

Ajmin
User Off Offline

Quote
ExecutineR has written
can you do after someone's be zombie and revive him? thats what i need it.


@user GeoB99: Would you please close this thread? Things are getting complicated. Lol
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview