Forum

> > CS2D > Scripts > Does script goes like this?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Does script goes like this?

5 replies
To the start Previous 1 Next To the start

old Re: Does script goes like this?

Necr0
User Off Offline

Quote
As i underdstand it you want 3 functions to be called by the serveractions(f1,f2,f3).

1
2
3
4
5
6
7
8
9
10
addhook("serveraction","foo")
function foo(id,action)
	if action==1 then
		bar(id)
	elseif action==2 then
		baz(id)
	else
		qux(id)
	end
end

just change the names of the functions

old Re: Does script goes like this?

KimKat
GAME BANNED Off Offline

Quote
As far as I know the buttons will just do what you want to be done when those buttons are pressed. You can do pretty much anything with serveraction keys such as displaying messages, playing sounds, opening menues, activating special functions or as said by user Avo it depends on what action you want.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview