Olá!
Segue o script abaixo para ser inserido no seu server.lua, precisa editar a permissão.. é para vRP.
-----------------------------------------------------------------------------------------------------------------------------------------
-- GOD ALL
-----------------------------------------------------------------------------------------------------------------------------------------
RegisterCommand('godall',function(source,args,rawCommand)
local user_id = vRP.getUserId(source)
if vRP.hasPermission(user_id,"staff.permissao") then
if args[1] then
local users = vRP.getUsers()
local coords = GetEntityCoords(GetPlayerPed(source))
for k,v in pairs(users) do
local id = vRP.getUserSource(parseInt(k))
if id then
local cds = GetEntityCoords(GetPlayerPed(id))
if #(cds-coords) <= parseInt(args[1]) then
vRPclient.killGod(id)
vRPclient.setHealth(id,400)
end
end
end
else
TriggerClientEvent('Notify',source, 'negado', 'Você não informou a area exemplo /godarea 5 que equivale a 5 metros!', 5000)
end
end
end)