• Make yourself a Traitor? TTT
    17 replies, posted
Is there a way to make myself/someone else a traitor on my server without turning on SV_cheats for the whole server?
Why would you want that? don't you want it to be random or just be completely unfair and always make yourself a traitor whenever you feel like it?
Actually~ I was wondering the same thing. I was lookin to add that as a function to Pointshop for my TTT server. A person would click it, and the next round would be a Traitor/Detective
i wanted to add the function for donor where you can force traitor every 3 rounds. its not to abuse or anything : /. sorry for the confusion. [editline]31st December 2012[/editline] BUMP
ply:SetRole(ROLE_TRAITOR)
i'm a bit new. Can you explain what to do with that and how i would use it? Sorry for being a pain.
ttt_force_traitor, but you will need sv_cheats on.
[lua] Player:SetRole(ROLE_TRAITOR) [/lua]
[QUOTE=Chessnut;39041894]ttt_force_traitor, but you will need sv_cheats on.[/QUOTE] well thats what i want but i want to avoid letting the whole server run wild with cheats.
[QUOTE='[NG]Deadly;39041963']well thats what i want but i want to avoid letting the whole server run wild with cheats.[/QUOTE] rcon
if i put ttt_force_traitor in rcon doesnt it need to have sv_cheats on?
If you want to ruin your server, go ahead: [code] concommand.Add("makemetplz", function(p) if ( not p:IsAdmin() ) then return end p:SetRole(ROLE_TRAITOR) SendFullStateUpdate() p:ChatPrint("OMG ABUSE") end) [/code]
[QUOTE=Leystryku;39042458]If you want to ruin your server, go ahead: [code] concommand.Add("makemetplz", function(p) if ( not p:IsAdmin() ) then return end p:SetRole(ROLE_TRAITOR) SendFullStateUpdate() p:ChatPrint("OMG ABUSE") end) [/code][/QUOTE] not for abuse, once again. Thank you for the code though. put in lua/autorun Right?
[QUOTE='[NG]Deadly;39042514']not for abuse, once again. Thank you for the code though. put in lua/autorun Right?[/QUOTE] In general adding the ability to purchase it with points will ruin your servers, and players with already a high point count will be able to 'live off' their points for constant traitor. It may make it fun for a few people, but then the rest of the server won't be picked as traitor and nobody else will play. Meaning you will have a total imbalance of traitors. Just my two cents.
[ERROR] lua/autorun/makemetplz.lua:6: attempt to call global 'SendFullStateUpdate' (a nil value) 1. unknown - lua/autorun/makemetplz.lua:6 2. unknown - lua/includes/modules/concommand.lua:69 when i run the makemetplz code in console And doesnt let you speak in traitor chat, or see T buddies [editline]31st December 2012[/editline] [QUOTE=KillerLUA;39042570]In general adding the ability to purchase it with points will ruin your servers, and players with already a high point count will be able to 'live off' their points for constant traitor. It may make it fun for a few people, but then the rest of the server won't be picked as traitor and nobody else will play. Meaning you will have a total imbalance of traitors. Just my two cents.[/QUOTE] i wasn't going to make it so they can be traitor every round. i was going to add to pointshop or some sort of donation system where you can only do it every 3 rounds or so.
I've seen this done well on a server, the code allowed you to buy it through the point shop, and made you an official T at round start, instead of instantly when typed in console, which also doesn't give you the weapons. It somehow put you at the top of the queue for random T selection the following round. Sorry I can't help any more than this, I just wanted to say I've seen it done right without ruining the game before.
[QUOTE='[NG]Deadly;39042646'][ERROR] lua/autorun/makemetplz.lua:6: attempt to call global 'SendFullStateUpdate' (a nil value) 1. unknown - lua/autorun/makemetplz.lua:6 2. unknown - lua/includes/modules/concommand.lua:69 when i run the makemetplz code in console [editline]31st December 2012[/editline] i wasn't going to make it so they can be traitor every round. i was going to add to pointshop or some sort of donation system where you can only do it every 3 rounds or so. And doesnt let you speak in traitor chat, or see T buddies[/QUOTE] It only works with TTT. SendFullStateUpdate is a function from TTT. You put the code somewhere in the gamemode, best would be the admin.lua.
[QUOTE=tinos;39043053]I've seen this done well on a server, the code allowed you to buy it through the point shop, and made you an official T at round start, instead of instantly when typed in console, which also doesn't give you the weapons. It somehow put you at the top of the queue for random T selection the following round. Sorry I can't help any more than this, I just wanted to say I've seen it done right without ruining the game before.[/QUOTE] Exactly it's not for abuse or to ruin the server. I thought it would be really cool to add it. [editline]31st December 2012[/editline] [QUOTE=Leystryku;39043063]It only works with TTT. SendFullStateUpdate is a function from TTT. You put the code somewhere in the gamemode, best would be the admin.lua.[/QUOTE] thank you i will test it out! [editline]31st December 2012[/editline] now is there a way in the point shop to make it so when they purchase it runs this command?
Sorry, you need to Log In to post a reply to this thread.