1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
addhook("serveraction", "action");
parse("bind \"space\" \"serveraction1\"");
player_move = function (id, mx, my)
if ( not (type(id) == 'number' and type(mx) == 'number' and type(my) == 'number') ) then
	error("in call to player_move(number, number, number) received player_move("..type(id)..", "..type(mx)..", "..type(my)..")");
end
parse("setpos "..id.." "..player(id,"x")+mx.." "..player(id,"y")+my);
end
Jump = function(id, modifier)
if ( not (type(id) == 'number' and type(modifier) == 'number')) then
	error("in call to Jump(number, number) received Jump("..type(id)..", "..type(modifier)..")");
end
player_move(id, math.sin(math.rad(player(id, "rot")))*modifier, -math.cos(math.rad(player(id,"rot")))*modifier);
end
function action(id, a)
	if ( a == 1 ) then
		Jump(id, 65);
	end
end
Jumping Idea


Offline
Ill figure it out eventually >>