Ulysses

General => Developers Corner => Topic started by: kaos2100 on October 17, 2012, 10:41:37 AM

Title: Need some help with TTT setting detectives and traitors
Post by: kaos2100 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.
Title: Re: Need some help with TTT setting detectives and traitors
Post by: iSnipeu 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.
Title: Re: Need some help with TTT setting detectives and traitors
Post by: kaos2100 on October 18, 2012, 03:08:19 AM
Thank you VERY MUCH! :D