removeCharElegantly(Ped ped)
Плавно удаляет модель игрока.
Ped ped
хэндл персонажа
function main()
if not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('removeplayer', cmd)
wait(-1)
end
function cmd(arg)
local id = tonumber(arg)
if not id or not sampIsPlayerConnected(id) then return end
local result, ped = sampGetCharHandleBySampPlayerId(id)
if result then removeCharElegantly(ped) end
end