require "lib.moonloader"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("pid", function(arg)
lua_thread.create(function()
local id = string.match(arg, "(%d+)")
if id == "" or id == nil then
sampAddChatMessage("Вы не ввели id игрока!", -1)
else
sampSendChat("/id " .. id)
wait(1000)
sampSendChat("/cl " .. id)
end
end)
end)
while true do
wait(0)
end
end