Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data={}
- function eventNewPlayer(p)
- nD={
- ["time"]=os.time();
- };
- data[p]=nD;
- end
- for i in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(i,17,false,true)
- eventNewPlayer(i)
- end
- function eventKeyboard(player,key,down,x,y)
- for i,v in pairs(tfm.get.room.playerList) do
- if x > v.x - 20 and x < v.x + 20 and y > v.y - 20 and y < v.y + 20 and i ~= player and not tfm.get.room.playerList[player].isDead and not v.isDead and data[player].time < os.time()-1000 then
- data[player].time=os.time();
- --m.exec.addShamanObject(54,v.x,v.y,0,0,false)
- tfm.exec.killPlayer(i)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement