• Respawn command for TTT
    2 replies, posted
Hello guys i've recently been having trouble with a lot of RDM in my TTT server so i was wondering would anyone know of or be nice enough to give me the code for it or atleast point me in the right direction :) To sum it up How can i respawn people in TTT mid round
Just look into the existing code. I have a few anti-rdm systems, the mass one (when 2 people get RDM'd within 60 secs or 3 in a round), it kills them and re-spawns their victims. And reflection anti RDM, where a player who has done nothing, like hold a t weapon, attack, or anything considered traitorous unprotected them from damage being reflected and multiplied. I find 70% of new players are trolls, so you tend to create effective ways of catching them.
if you use ULX use this place it in your ulx folder lua/ulx/modules/sh and call it respawn.lua [code] local CATEGORY_NAME = "TTT" function ulx.respawn( calling_ply, target_plys ) for _,v in pairs(target_plys) do v:SetTeam( TEAM_TERROR ) v:Spawn() end ulx.fancyLogAdmin( calling_ply, "#A has respawned #T!", target_plys ) end local strip = ulx.command( "TTT", "ulx respawn", ulx.respawn, "!respawn" ) strip:addParam{ type=ULib.cmds.PlayersArg } strip:defaultAccess( ULib.ACCESS_SUPERADMIN ) strip:help( "Respawn the target(s)." ) [/code]
Sorry, you need to Log In to post a reply to this thread.