Forum

> > CS2D > Scripts > Cooldown on "Use" Hook
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Cooldown on "Use" Hook

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Cooldown on "Use" Hook

Masea
Super User Off Offline

Zitieren
There's nothing you can do about defusing, making hostages follow you and anything else that is about the actual game. Sadly.

alt Re: Cooldown on "Use" Hook

Ajmin
User Off Offline

Zitieren
@user Masea: Since he said "use hook" it apparently means not the actual game but the modded one.
Also i think there's a return 1 thingy for defusing hook.. so?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cooldown={}

addhook("use","_use")
function _use(id)
if cooldown[id]==0 then
bla bla bla
cooldown[id]=10  --in seconds



addhook("seconds","_s")
function _s()
for id=1,32 do
if cooldown[id]>0 then
cooldown[id]=cooldown[id]-1
bla bla bla
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht