Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 01:53:06 AM
Home Help Login Register
News: Zombie Master 2 discussion

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Re: lua - determine if player is traitor on: February 13, 2012, 10:21:29 PM
Not sure if Anonymous is trolling or he does not know shit about lua.
PrintMessageAll does not exist

On TTT, you have player.IsActiveTraitor()

Example:

for k,v in pairs(player.GetAll()) do
  if v:IsActiveTraitor() then
      -- Ye loopception
      for _s, in pairs(player.GetAll()) do
          s:ChatPrint(v:Nick().." IS A TRAITOR!")
      end
  end
end



v:IsActiveTraitor()

thank you. that is what I was looking for.
2  Other / Trouble in Terrorist Town / lua - determine if player is traitor on: February 11, 2012, 10:58:41 PM
How would you write an if/else statement to determine if a player is a traitor or not?
is there a function like ply:getRole()
3  Other / Trouble in Terrorist Town / Re: ttt_print_damagelog Suggestion: Record Item Purchases on: November 02, 2011, 10:04:43 PM
would be nice to see what weapon was used to kill someone
Pages: [1]


Login with username, password and session length

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