function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('rozisk', function()
for i = 0, sampGetMaxPlayerId(true) do
local x, y, z = getCharCoordinates(PLAYER_PED)
local result, victim = sampGetCharHandleBySampPlayerId(i)
if result then
local x1, y1, z1 = getCharCoordinates(victim)
if getDistanceBetweenCoords3d(x, y, z, x1, y1, z1) <= 10 then
sampSendChat('/commanda_roziska '..i..' причина')
end
end
end
end)
wait(-1)
end