Author Topic: Need some help with TTT setting detectives and traitors  (Read 3525 times)

0 Members and 1 Guest are viewing this topic.

Offline kaos2100

  • Newbie
  • *
  • Posts: 13
  • Karma: 2
Need some help with TTT setting detectives and traitors
« on: October 17, 2012, 10:41:37 AM »
How would I make it so players can choose to be Traitors or Detectives if they are VIP(donators)?
Thanks.

Offline iSnipeu

  • Jr. Member
  • **
  • Posts: 83
  • Karma: 12
Re: Need some help with TTT setting detectives and traitors
« Reply #1 on: October 17, 2012, 04:58:40 PM »
You can set player roles by using Player:SetRole(), for example Player:SetRole( ROLE_TRAITOR ).
But remember to call SendFullStateUpdate() to make sure that people know what their roles are.


also credits can be set by using Player:SetCredits( number ), if you want them to have credits.
« Last Edit: October 17, 2012, 05:06:47 PM by iSnipeu »

Offline kaos2100

  • Newbie
  • *
  • Posts: 13
  • Karma: 2
Re: Need some help with TTT setting detectives and traitors
« Reply #2 on: October 18, 2012, 03:08:19 AM »
Thank you VERY MUCH! :D