Garry's Mod

Little scripts that prevent people suiciding.

Submitted by Adaptingg, , Thread ID: 116595

Thread Closed
Adaptingg
Novice
Level:
0
Reputation:
0
Posts:
28
Likes:
1
Credits:
31
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)