Garry's Mod

[DARKRP] Code that makes the player die before changing jobs?

Submitted by Pimentxa, , Thread ID: 171349

Thread Closed
Pimentxa
Novice
Level:
0
Reputation:
0
Posts:
30
Likes:
2
Credits:
36
11-05-2020, 03:20 AM
#1
Does anyone have any code like that? Or can you help me create it?

RE: [DARKRP] Code that makes the player die before changing jobs?

Malloway
Junior Member
Level:
0
Reputation:
0
Posts:
56
Likes:
0
Credits:
0
11-05-2020, 03:58 AM
#2
What do you mean?

Usually you die, then the job change happens after.

If that's not the case you might have a bug.

RE: [DARKRP] Code that makes the player die before changing jobs?

JimmyBobbin65
Junior Member
Level:
0
Reputation:
0
Posts:
63
Likes:
2
Credits:
1
13-05-2020, 02:18 AM
#3
you need to into darkrpmodification/darkrp_config/dark_settings.lua and find the code that says about death upon change of job or respawn on job change

RE: [DARKRP] Code that makes the player die before changing jobs?

KiritoLife
Newbie
Level:
0
Reputation:
0
Posts:
14
Likes:
0
Credits:
7
13-05-2020, 07:37 AM
#4
darkrpmodification/darkrp_config/dark_settings.lua to GM.Config.norespawn = false

RE: [DARKRP] Code that makes the player die before changing jobs?

BLAZE1398
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
0
Credits:
4
14-05-2020, 07:32 AM
#5
Restart your server after changing the file. just an FYI. I forgot to reset my server and i went through the config trying to figure out what i did wrong.

RE: [DARKRP] Code that makes the player die before changing jobs?

TitanYosef
Lurker
Level:
0
Reputation:
0
Posts:
1
Likes:
0
Credits:
1
13-09-2022, 12:46 PM
#6
Why does the player need to die here in the first place, that's what I'm curious about. I need the details of the same asap. Why is this the case, please someone tell me.

RE: [DARKRP] Code that makes the player die before changing jobs?

Guest
Level:
0
Posts:
N/A
Likes:
0
Credits:
0
22-09-2022, 01:13 AM
#7
hook.Add('OnPlayerChangedTeam', 'LetsDieDuuuude', function()
ply:Kill
end)

put that into sv part (for example lua/autorun/server/myhook.lua
enjoy

Users browsing this thread: 1 Guest(s)