Forum

> > CS2D > Scripts > ID for ? hook : always,second,minute ...
Forums overviewCS2D overview Scripts overviewLog in to reply

English ID for ? hook : always,second,minute ...

7 replies
To the start Previous 1 Next To the start

old Re: ID for ? hook : always,second,minute ...

Banaan
User Off Offline

Quote
This is one of the least understandable questions ever asked here. Congratulations with your achievement.

Could you please learn some English (or German if you prefer) and ask questions people can understand? What you wrote there makes no sense at all.

old Re: ID for ? hook : always,second,minute ...

DannyDeth
User Off Offline

Quote
No, the minute, second and always hooks DO NOT have an ID parametre! Why would they? It's not like there is a player clicking his mouse 50 times per second for the always hook, or every second for the second hook.

old Re: ID for ? hook : always,second,minute ...

mafia_man
User Off Offline

Quote
With this functions everySecond, everyMinute, everyAlways, everyMs100 will have ID parameter:

Seconds :
More >


Ms100 :
More >


Always :
More >


Minutes :
More >

old Re: ID for ? hook : always,second,minute ...

EngiN33R
Moderator Off Offline

Quote
user mafia_man has written
With this functions everySecond, everyMinute, everyAlways, everyMs100 will have ID parameter:

Seconds :
More >


Ms100 :
More >


Always :
More >


Minutes :
More >


Why do you do the thing as two different functions when you can make just one?

1
2
3
4
5
6
addhook("second","everySecond")
function everySecond()
	for _,id in ipairs(player(0,"table")) do
		--do something
	end
end

A waste of space IMO.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview