How to make Moderators spawn with a knife only as traitor? TTT
4 replies, posted
I would like a code that could make moderators and vips spawn with Knives in ttt, But only when they are traitors? Anyone know a code for that?
[lua] for k, v in pairs ( player:GetAll()) do
if v:GetRole == ROLE _TRAITOR and v:UserGroup("moderator") then
v:Give("weapon_ttt_knife")
end
end
[/lua]
Untested code, not sure about Give and UserGroup.
Use either in init.lua or shared.lua with if SERVER then tags
I believe it is v:IsUserGroup.
It is v:IsUserGroup.
To be honest this sounds like an awful idea
Sorry, you need to Log In to post a reply to this thread.