- 3
- 0
Lua:
math.randomseed(os.time())
local x = math.random(1,39)
local Enable = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("koll", function(id)
Enable = not Enable
lua_thread.create(function()
while sampIsPlayerConnected(id) do
if Enable then
sampSendDeathByPlayer(id, x)
sampSendSpawn()
end
wait(0)
end
end)
end)
end