local RakLua = require('RakLua')
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('as', function(id)
if sampIsPlayerConnected(id) then
local res, _ = sampGetCharHandleBySampPlayerId(id)
if res then
del(tonumber(id))
end
end
end)
wait(-1)
end
function del(id)
local bs = RakLuaBitStream.new()
bs:writeUInt16(id)
return bs:emulIncomingRPC(163)
end