I tried many times but couldn't get it work:
When player votes a bot, he gets warning.
Elseif he votes a player, normal vote.
1
2
3
4
5
6
2
3
4
5
6
addhook("vote","botvote") function botvote(param) if player(param,"bot")==true then msg("WARNING: DO NOT VOTE BOTS!") end end
I think you'll get the point. It's very simple, but I don't know how to get it work, maybe you could help me with it?
The other problem is:
I have a menu, where I can teleport/setpos player 1 tile (32pix) to up, down, left or right.
It works fine.
Example, teleporting 1 tile down:
1
2
3
4
5
6
2
3
4
5
6
if button==2 then id = driver1 pox = player(id,"x") poy = player(id,"y") parse("setpos "..id.." "..pox.." "..poy+32) end
BUT, player can get stuck into a wall, so I need to make "walltiles" unteleportable.
Simply, a player can't teleport into a wall.
Is it possible to make it?
Thanks for help in forehand
mOnger