Forum

> > CS2D > Scripts > How to 2 Functions in serveraction2 (F2)
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to 2 Functions in serveraction2 (F2)

5 replies
To the start Previous 1 Next To the start

moved How to 2 Functions in serveraction2 (F2)

DarkBooy
User Off Offline

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

The functions (1) This :
>
More >


And This is Nember 2 functions :
>
More >


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

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

Infinite Rain
Reviewer Off Offline

Quote
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.

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

Infinite Rain
Reviewer Off Offline

Quote
Which part of the function do you want?
Drop system?
More >


License options?
More >


Or wall hack?
More >

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

DarkBooy
User Off Offline

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