TheDuckDie / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 0 forks source link

Kill in console #167

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I think it would be a good idea too add a  command blocker in darkrp that
blocks the kill and explode command in console  because i have seen players
quickly kill there selfs before getting arrested 

Original issue reported on code.google.com by jayce...@gmail.com on 11 Jan 2010 at 12:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm going to go out on a whim and say that if it's anything similar to Sourcemod
hooking, you could simply add a hook like so:

function fBlockCommands( player, command, arguments )
    Msg( "Console commands kill and explode are not permitted on this server.\n" )
end

concommand.Add( "kill", fBlockCommands )
concommand.Add ( "explode", fBlockCommands )

Original comment by nicatro...@gmail.com on 13 Jan 2010 at 1:35

GoogleCodeExporter commented 9 years ago
http://wiki.garrysmod.com/?title=Gamemode.CanPlayerSuicide

    function GM:CanPlayerSuicide( ply )
        ply:PrintMessage(HUD_PRINTTALK, "You can't suicide!")
        return false
    end

Original comment by c...@colzdragon.com on 15 Jan 2010 at 1:25

GoogleCodeExporter commented 9 years ago

Original comment by fpeijnen...@gmail.com on 18 Jan 2010 at 8:50