Forum

> > CS2D > Scripts > Does script goes like this?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Does script goes like this?

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Does script goes like this?

Necr0
User Off Offline

Zitieren
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

alt Re: Does script goes like this?

KimKat
GAME BANNED Off Offline

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