Forum

> > CS2D > Scripts > [REQUEST] Zombie Lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch [REQUEST] Zombie Lua

24 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: [REQUEST] Zombie Lua

Jedediastwo
User Off Offline

Zitieren
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

alt Re: [REQUEST] Zombie Lua

GeoB99
Moderator Off Offline

Zitieren
@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.

alt lua

_Vipersiax
User Off Offline

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

alt Re: [REQUEST] Zombie Lua

Ajmin
User Off Offline

Zitieren
ExecutineR hat geschrieben
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
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht