Ulysses Stuff > Suggestions
Anti-suicide plugin
Vakaris:
I noticed that in my server the suicide command, kill, is just annoying. I made a small lua script to return false to the suicide atempt along with a messange to contact an admin if they're stuck. My small script got broken recently and I couldn't get it to work propperly again. This is where ULX comes in, I am here to request a plugin made for ULX/Ulib to disable the kill command by default for all users and admins alike (we still have the slay and the sslay commands and cna use them if nesessary).
JamminR:
I'm curious.... why do you find suicide in a Gmod game server annoying?
Vakaris:
--- Quote from: JamminR on September 25, 2009, 03:26:41 PM ---I'm curious.... why do you find suicide in a Gmod game server annoying?
--- End quote ---
I host a SB2 server with PvP damage enabled. It's annying for someone to bind kill to a key and use it just before death. Also I like to make bases, tarps, all sorts of player manipulation gizmoes, the suicide command sort of ruins most of this...
atomicspark:
I've seen this before... somewhere. In any case, an add-on like this wouldn't require ULX, let alone ULib (unless you wanted group overrides). Maybe you could post your original code and people that know Lua could take a look at it?
Vakaris:
Sure... I'll find it in a minute...
Ok here it is:
C:\Program Files\Steam\SteamApps\MyUserName\Garrysmod\Garrysmod\Lua\Autorun\Server\blocksuicide.lua
--- Code: ---function NoSuicide( ply )
ply:PrintMessage( HUD_PRINTTALK, "Suicide has been disabled, contact an online admin for support if needed.")
return false
end
hook.Add( "CanPlayerSuicide", "Suicide", NoSuicide )
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version