Garry's Mod

Little scripts that prevent people suiciding.

Submitted by Adaptingg, , Thread ID: 116595

Thread Closed
12-01-2019, 04:36 PM
This post was last modified: 12-01-2019, 04:37 PM by Adaptingg
#1
Code:
local function BlockSuicide(ply)
ply:ChatPrint("SUICIDING BREAKS FAILRP")
return false
end
hook.Add( "CanPlayerSuicide", "BlockSuicide", BlockSuicide )


That would do the work. Change "SUICIDING BREAKS FAILRP" to whatever you wants.

Oh. You guys gotta place it on /lua/autorun/
Create a file called antikill.lua and paste the code there.

Users browsing this thread: 1 Guest(s)