How do people do this, I see it done often, and it seems simple, but I cant figure it out... Any help is much appreciated!
[highlight](User was banned for this post ("Missed the darkrp help thread" - postal))[/highlight]
Make a class die upon death? Die upon death... what does that even mean?
[QUOTE=t h e;41242343]Make a class die upon death? Die upon death... what does that even mean?[/QUOTE]
Pretty sure he means go back to spawn.
If this the case, go to config.lua, then search for GM.Config.norespawn, after you do that, set to false.
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
PlayerDeath eg:
[lua]PlayerDeath = function(ply, weapon, killer)
if( ply:Team() == TEAM_MAYOR ) then
ply:ChangeTeam( TEAM_CITIZEN, true )
for k,v in pairs( player.GetAll() ) do
v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed! We need a new mayor!" )
end
end
end[/lua]
Sorry, you need to Log In to post a reply to this thread.