Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2024, 07:10:18 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Prompt list of console commands the latest versions
Pages: [1]
Author Topic: Prompt list of console commands the latest versions  (Read 10902 times)
Card
Poster

Posts: 3


« on: November 02, 2011, 06:57:20 PM »

tell me how to::
how to send players to the traitors \ detectives \ innocent
admin commands....
gameplay commands
(if I am an Admin)
« Last Edit: November 02, 2011, 06:58:32 PM by Card »
Card
Poster

Posts: 3


« Reply #1 on: November 02, 2011, 07:11:41 PM »

how to send players to the traitors \ detectives \ innocent
BipolarDiZ
Poster

Posts: 101


|:NxS:| Staff! :D


« Reply #2 on: November 02, 2011, 08:56:26 PM »

"Debug commands

ttt_force_terror
Forces you to spawn as a Terrorist. Cheat.

ttt_force_traitor
Forces your role to traitor. Cheat.

ttt_force_detective
Forces your role to detective. Cheat."

For future reference a lot of information can be found here: http://ttt.badking.net/

BipolarDiZ is bipolar.
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27015
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: currently offline
sniperduck
Poster

Posts: 178


|:NxS:| Staff! :D


« Reply #3 on: November 03, 2011, 12:11:09 AM »

bip those are for yourself, with sv_cheast set to 1.

You would have to code your own commands to force T/I/D on other people with sv_cheats off.

Overtime these forums have made me an asshole. ;D (TTT subforum)
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27016
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: <COMING SOON>
BipolarDiZ
Poster

Posts: 101


|:NxS:| Staff! :D


« Reply #4 on: November 03, 2011, 02:15:48 AM »

Well, those are the only ways to do it without him coding something. So I figured those would be best. I know they require sv_cheats but I'm not going to give him my code for it so I figured give him the next best thing..

BipolarDiZ is bipolar.
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27015
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: currently offline
Card
Poster

Posts: 3


« Reply #5 on: November 03, 2011, 04:20:59 AM »

unknown command  (ttt_force_traitor)
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #6 on: November 03, 2011, 07:19:24 AM »

Are you using rcon ?
SovietX
Poster

Posts: 52



« Reply #7 on: December 03, 2011, 01:00:48 PM »

I think he is trinyg to set himself to traitor, detective, etc. if Sv_cheats are set to "0". I think I remember reading about something like this. If you use ULX I think there is a plugin you can get to do it.

Be the best by any means necessary
Anonymous
Poster

Posts: 126


« Reply #8 on: December 03, 2011, 03:36:01 PM »

/*-------------------------------------------------------------------------------------------------------------------------
Traitor
-------------------------------------------------------------------------------------------------------------------------*/

local PLUGIN = {}
PLUGIN.Title = "Traitor"
PLUGIN.Description = "Makes a player traitor"
PLUGIN.Author = "-[LCG]- Marvincmarvin | mostly Overv"
PLUGIN.ChatCommand = "traitor"
PLUGIN.Usage = "[players]"
PLUGIN.Privileges = { "Trait" }

function PLUGIN:Call( ply, args )
if ( ply:EV_HasPrivilege( "Trait" ) ) then
local players = evolve:FindPlayer( args, ply )

for _, pl in ipairs( players ) do
pl:SetRole(ROLE_TRAITOR)
SendFullStateUpdate()
end

if ( #players > 0 ) then
evolve:Notify( evolve.colors.blue, ply:Nick(), evolve.colors.white, " has traitorized ", evolve.colors.red, evolve:CreatePlayerList( players ), evolve.colors.white, "." )
else
evolve:Notify( ply, evolve.colors.red, evolve.constants.noplayers )
end
else
evolve:Notify( ply, evolve.colors.red, evolve.constants.notallowed )
end
end

evolve:RegisterPlugin( PLUGIN )




/*-------------------------------------------------------------------------------------------------------------------------
INNOCENT
-------------------------------------------------------------------------------------------------------------------------*/

local PLUGIN = {}
PLUGIN.Title = "Innocent"
PLUGIN.Description = "Makes a player Innocent"
PLUGIN.Author = "-[LCG]- Marvincmarvin | mostly Overv Edited by Anonymous"
PLUGIN.ChatCommand = "innocent"
PLUGIN.Usage = "[players]"
PLUGIN.Privileges = { "Trait" }

function PLUGIN:Call( ply, args )
if ( ply:EV_HasPrivilege( "Trait" ) ) then
local players = evolve:FindPlayer( args, ply )

for _, pl in ipairs( players ) do
pl:SetRole(ROLE_TERROR)
SendFullStateUpdate()
end

if ( #players > 0 ) then
evolve:Notify( evolve.colors.blue, ply:Nick(), evolve.colors.white, " has innocentized ", evolve.colors.red, evolve:CreatePlayerList( players ), evolve.colors.white, "." )
else
evolve:Notify( ply, evolve.colors.red, evolve.constants.noplayers )
end
else
evolve:Notify( ply, evolve.colors.red, evolve.constants.notallowed )
end
end

evolve:RegisterPlugin( PLUGIN )



Yeah. A Simple PLEASE would be nice you 12 year old annoying little ungrateful ---

Unbaar
Poster

Posts: 2


« Reply #9 on: December 03, 2011, 09:50:33 PM »

If you use ULX I think there is a plugin you can get to do it.


The code that Anonymous just posted is for Gmod Evolve.

Yes, there is a ULX plugin to do it: http://www.zombiemaster.org/smf/index.php?topic=10138.0
But it's for an old version of ULX (1.x), and won't run, even with ULib's compatibility layer.

Does anybody know if there is an updated script like that for new ULX? I would appreciate it.
Anonymous
Poster

Posts: 126


« Reply #10 on: December 04, 2011, 11:26:11 AM »

I know it is for evolve, and if I could be bothered to get off my ass I would code one.

Anonymous
Poster

Posts: 126


« Reply #11 on: December 04, 2011, 01:01:32 PM »

By complete mistake I came upon this:


ulx.setCategory( "TTT" )

function ulx.cc_respawn( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
if not targets then
ULib.tsay( ply, err, true )
return
end

for _, v in ipairs( targets ) do
ulx.logUserAct( ply, v, "#A respawned #T" )
v:SpawnForRound(true)
end
end
ulx.concommand( "respawn", ulx.cc_respawn, "<user(s)> - Respawns target(s).", ULib.ACCESS_ADMIN, "!respawn", _, ulx.ID_PLAYER_HELP )
ulx.addToMenu( ulx.ID_MCLIENT, "Respawn", "ulx respawn" )

function ulx.cc_traitor( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
if not targets then
ULib.tsay( ply, err, true )
return
end

for _, v in ipairs( targets ) do
ulx.logUserAct( ply, v, "#A turned #T into a traitor" )
v:SetRole(ROLE_TRAITOR)
SendFullStateUpdate()
end
end
ulx.concommand( "traitor", ulx.cc_traitor, "<user(s)> - Turns target(s) into traitors.", ULib.ACCESS_ADMIN, "!traitor", _, ulx.ID_PLAYER_HELP )
ulx.addToMenu( ulx.ID_MCLIENT, "Traitor", "ulx traitor" )

function ulx.cc_detective( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
if not targets then
ULib.tsay( ply, err, true )
return
end

for _, v in ipairs( targets ) do
ulx.logUserAct( ply, v, "#A turned #T into a detective" )
v:SetRole(ROLE_DETECTIVE)
SendFullStateUpdate()
end
end
ulx.concommand( "detective", ulx.cc_detective, "<user(s)> - Turns target(s) into detectives.", ULib.ACCESS_ADMIN, "!detective", _, ulx.ID_PLAYER_HELP )
ulx.addToMenu( ulx.ID_MCLIENT, "Detective", "ulx detective" )

function ulx.cc_innocent( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end

local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
if not targets then
ULib.tsay( ply, err, true )
return
end

for _, v in ipairs( targets ) do
ulx.logUserAct( ply, v, "#A turned #T into an innocent" )
v:SetRole(ROLE_INNOCENT)
SendFullStateUpdate()
end
end
ulx.concommand( "innocent", ulx.cc_innocent, "<user(s)> - Turns target(s) into innocents.", ULib.ACCESS_ADMIN, "!innocent", _, ulx.ID_PLAYER_HELP )
ulx.addToMenu( ulx.ID_MCLIENT, "Innocent", "ulx innocent" )


I literally was just cleaning out my Pictures library :/

Unbaar
Poster

Posts: 2


« Reply #12 on: December 05, 2011, 12:29:30 AM »

Sadly, that code was made back in 2010 and won't work with any newer versions of ULX.
Shifty Pete
Poster

Posts: 74


Shifty_Pete.exe


« Reply #13 on: December 05, 2011, 04:29:46 AM »

So does anyone have a working code? I know the server I helped manage had their own custom traitor/detective/respawn commands, I should've grabbed a copy before I left. Damn.

http://www.steamcommunity.com/id/shifty_pete
Anonymous
Poster

Posts: 126


« Reply #14 on: December 06, 2011, 09:20:40 PM »

*sigh* I shall go talk to a RIOT coder (Who is better than me) he's made quite the few Respawn and such commands for Updated ULX

Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Prompt list of console commands the latest versions « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.015 seconds with 17 queries.