Forum

> > CS2D > Scripts > Cooldown on "Use" Hook
Forums overviewCS2D overview Scripts overviewLog in to reply

English Cooldown on "Use" Hook

3 replies
To the start Previous 1 Next To the start

old Re: Cooldown on "Use" Hook

Masea
Super User Off Offline

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

old Re: Cooldown on "Use" Hook

Ajmin
User Off Offline

Quote
@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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview