Hello. I have a question. I create a server but I don\'t fiind in list . How do I do to find ? The server it is create with old ssm aegis. Sorry four my English.
❤️ 0
SafeWriting.FuncContainer:AddFunc(function(player)
local arenaPos = {
x = 123;
y = 456;
z = 789; --change these by yourself! go to arena, open console, write r_displayInfo 1, find your coordinates on map (X Y Z)
};
local radius = 50; --lets say your arena has 50m radius
local pos = player:GetWorldPos();
local dx,dy,dz=pos.x-arenaPos.x,pos.y-arenaPos.y,pos.z-arenaPos.z;
local distance = math.sqrt(dx*dx+dy*dy+dz*dz);
if distance < radius then
local weapon = player.inventory:GetCurrentItem()
if weapon and weapon.class~="Fists" then player.actor:DropItem(weapon.id); end
end
end,"UpdatePlayer")
AddChatCommand("setlowgraph",function(self,player,msg,val)
ForceSet("e_sun",tostring(0));
ForceSet("e_view_dist_ratio",tostring(15));
ForceSet("e_view_dist_ratio_vegetation",tostring(7));
Chat:SendToTarget(nil,player,"Graphics were set to low for better FPS");
end,{TEXT},{AdminOnly=true;},"Sets low graphics for better FPS");
=====
You can add as many cvars you want and prepare commands like "setlowgraph", "setmediumgraph", "sethigraph" or something like that.