• Vip TTT force traitor
    22 replies, posted
I don't know if this works, I don't think it works right now i've tested it. concommand.Add("makemetplz", function(p) <------The original if ( not p:IsAdmin() ) then return end p:SetRole(ROLE_TRAITOR) SendFullStateUpdate() p:ChatPrint("OMG ABUSE") end) ________________________________________________ VVVVVVVVVVVVVVVVVVVVVVVVVVVV ---- This is what i tried concommand.Add("makemetplz", function(p) if ( not p:Isvip() ) then return end p:SetRole(ROLE_TRAITOR) SendFullStateUpdate() p:ChatPrint("OMG ABUSE") end) I have Ulx and i wanted to give vip the ability to run this, This is just a test and i'm going to add a limit to how many times they can do this like every 3 rounds or so but it doesnt seem to work when i run "makemetplz" on the vip i was testing this on, and it doesn't make them a T is there something wrong.
Are you sure Isvip is a function?
no i just saw that the IsAdmin from the original code could be changed to Vip :( so how would i do it :(
If ply:IsUserGroup("vip") then EDIT: Or in your cause p:IsUserGroup("vip")
[QUOTE=CaptainFab;39048593]If ply:IsUserGroup("vip") then EDIT: Or in your cause p:IsUserGroup("vip")[/QUOTE] THX! [editline]1st January 2013[/editline] so concommand.Add("makemetplz", function(p) if ( not p:IsUserGroup("vip")() ) then return end p:SetRole(ROLE_TRAITOR) SendFullStateUpdate() p:ChatPrint("OMG ABUSE") end)
I appreciate the boxes you gave me when you have absolutely no clue what you were doing in the first place.
[QUOTE='[NG]Deadly;39049328']THX! [editline]1st January 2013[/editline] so concommand.Add("makemetplz", function(p) if ( not p:IsUserGroup("vip")() ) then return end p:SetRole(ROLE_TRAITOR) SendFullStateUpdate() p:ChatPrint("OMG ABUSE") end)[/QUOTE] Try this: [CODE]concommand.Add("makemetplz", function(ply) if ply:IsUserGroup("vip") then ply:SetRole(ROLE_TRAITOR) SendFullStateUpdate() ply:ChatPrint("This server is gay") else return end end)[/CODE]
This might work too. [lua]concommand.Add("makemematureplz", function(ply) if ply:IsUserGroup("vip") then ply:SetRole(ROLE_TRAITOR) SendFullStateUpdate() ply:ChatPrint("It is your duty as a human being to kill the owner of this server.") else return end end)[/lua]
Stop with the mimicking, he's clearly new with lua, let this be a lesson to him.
ttt_force_traitor
[QUOTE=mib999;39054398]ttt_force_traitor[/QUOTE] That has never done anything for me lol.
[QUOTE=CaptainFab;39055151]That has never done anything for me lol.[/QUOTE] SV_Cheats has to be enabled. And yes, it should do.
[QUOTE=DrJenkins;39055163]SV_Cheats has to be enabled. And yes, it should do.[/QUOTE] Because sv_cheats being enabled on a public server is a great idea.
No, what I was saying was that is the condition of ttt_force_traitor.
I was quoting the command in order for the OP to get an understanding that is what he should look for. Notepad++ -> CTRL F -> Find in files -> ttt_force_traitor Have fun. <3 Haven't tested it, but here; [code]concommand.Add("makemetplz", function(ply) if ( not ply:IsUserGroup("vip") ) then return end ply:SetRole(ROLE_TRAITOR) SendFullStateUpdate() ply:ChatPrint("You have been forced as Traitor!") end)[/code]
-snip-
[QUOTE=CaptainFab;39055202]Because sv_cheats being enabled on a public server is a great idea.[/QUOTE] Being able to force traitor is an even better idea
Wouldn't it make a lot more sense to just increase the CHANCE of them being a traitor?
If you're the owner of that server called NextGen or whatever, then installing this will make your server go downhill. 3/4ths of the people who play on NextGen are moderators or above and from viewing the general discussion page under the Steam group, the average user is 14 years old ("ALMOST 15 THO!") But seriously, please don't add something like this to the server. It makes it more fun for VIPs and less fun for regular players and will probably deter people away from joining your community.
Excuse me sorry for being a noob but where do you put the LUA?
-snip-
place it into init.lua, unless TTT already has a file dedicated for concommands (in that case, put it in there).
There's a plugin for ULX (since the OP said they had ULX) on the workshop that allows people with permissions to force people onto T, D, Inno and Spec teams, respawn and change karma of people; [url=http://steamcommunity.com/sharedfiles/filedetails/?id=127865722]here[/url]. If you set the permissions properly, you can make it so they can only force themselves onto T
Sorry, you need to Log In to post a reply to this thread.