Hello. Is there a way to disable the kill command? Really need to do this since I don’t want my players abusing it when they are on low health. Thanks!
-- Run serverside
hook.Add( "CanPlayerSuicide", "NoSuicide", function( ply )
ply:PrintMessage( HUD_PRINTTALK, "You can't suicide!" )
return false
end )
-snip- too slow
[editline]18th July 2014[/editline]
Closed your bracket
Sorry I am a retard but where doI put this? :s
Serverside - so place it in init.lua of your gamemode
Or just make a file in lua/autorun/server; I assume he’s not making his own gamemode, otherwise, he should be creating the function instead of using a hook.