Lee has written
Yes and no. You will need to find the average velocity of the player and make sure that it's zero. This can be done quite easily:
TDShuft has written
can i make like if the player is stoped in hook second he gets +1 mp and if he walking he gets nothing
Yes and no. You will need to find the average velocity of the player and make sure that it's zero. This can be done quite easily:
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
pos = {} addhook("second", "check_players_pos") function check_players_pos() 	for _,id in player(0, "table") do 		if not pos[id] then pos[id] = {0,0} end 		local dx, dy = player(id,"x")-pos[id][0], player(id, "y")-pos[id][1] 		if dx == 0 and dy == 0 then 			local health = "sethealth %s %s" 			parse(health:format(id, player(id, "health")+1)) 		end 		pos[id][0], pos[id][1] = pos[id][0] + dx, pos[id][1] + dy 	end end
but cant you see it with player(id,"speedmod")
?