General > Developers Corner

Need some help with TTT setting detectives and traitors

(1/1)

kaos2100:
How would I make it so players can choose to be Traitors or Detectives if they are VIP(donators)?
Thanks.

iSnipeu:
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.

kaos2100:
Thank you VERY MUCH! :D

Navigation

[0] Message Index

Go to full version