Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --ExhoRoxMySox
- AddCSLuaFile()
- hook.Add("PlayerSay", "TTTTraitorGrabber", function(ply, text)
- local text = string.lower(text)
- if ( string.sub( text, 1, 11 ) == "!gettraitor" ) then
- if (ply:IsSpec() or not ply:Alive()) then
- local traitors = {}
- for k,v in pairs(player.GetAll()) do
- if v:GetRole() == ROLE_TRAITOR then
- table.insert(traitors, v:Nick() )
- end
- end
- ply:ChatPrint("The Traitors are "..table.concat(traitors, ", ") )
- else
- ply:ChatPrint("You cannot use this command while alive!")
- end
- return false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement