Forum

> > CS2D > Scripts > How to 2 Functions in serveraction2 (F2)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to 2 Functions in serveraction2 (F2)

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben How to 2 Functions in serveraction2 (F2)

DarkBooy
User Off Offline

Zitieren
Hello,all i have problem . i need 2 functions in button (F2)

The functions (1) This :
>
Mehr >


And This is Nember 2 functions :
>
Mehr >


• i can make 2 functios in button (F2) ?

alt Re: How to 2 Functions in serveraction2 (F2)

Infinite Rain
Reviewer Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook('serveraction', 'action', 699)
function action(id, act)
	if act == 1 then
		menu(id, "Functions,Func1,Func2")
	end
end

addhook('menu', 'm', 699)
function m(id, title, button)
	if title == "Functions" then
		if button == 1 then
			rp_action(id)
		elseif button == 2 then
			selectmenu(id, 1)
		end
	end
end

Do not forgot to put these two "functions" in the script.

alt Re: How to 2 Functions in serveraction2 (F2)

Infinite Rain
Reviewer Off Offline

Zitieren
Which part of the function do you want?
Drop system?
Mehr >


License options?
Mehr >


Or wall hack?
Mehr >

alt Re: How to 2 Functions in serveraction2 (F2)

DarkBooy
User Off Offline

Zitieren
ok thx. now its work becuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook('serveraction', 'action', 699)
function action(id, act)
     if act == 1 then
          menu(id, "Functions,Func1,Func2")
     end
end

addhook('menu', 'm', 699)
function m(id, title, button)
     if title == "Functions" then
          if button == 1 then
               rp_action(id) <--------here u should say rp_action(id, 1)  <- i think u forgot it  :D 
          elseif button == 2 then
               selectmenu(id, 1)
          end
     end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht