here furty
How to make if player stop then die/dead.
i mean.. If you stop ( No walking / running ) you got die/dead by server.
if you know plase.. give me example / file
btw.. thanks.
Sorry for my English Error!!
addhook("second","test_") function test_(id) locx=player(id,"x") locy=player(id,"y") sec=sec+1 if sec==1 then local x=player(id,"x") local y=player(id,"y") if x=player(id,"x") and y=player(id,"y") then parse("killplayer "..id) end sec=0 end end
addhook("second", "_second") addhook("spawn", "_spawn") addhook("move", "_move") local positions = {} local active = {} function _spawn(id) active[id] = false end function _move(id, x, y, walk) active[id] = true end function _second() for _, v in pairs(player(0,"tableliving")) do if active[v] == true and positions[v] ~= nil and positions[v][1] == player(v, "x") and positions[v][2] == player(v, "y") then parse("killplayer " .. v) end positions[v] = {player(v, "x"), player(v, "y")} end end