Advertisement
Guest User

asdf

a guest
Mar 12th, 2014
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. function roundstartbenefits()
  2.     for k, v in ipairs(player.GetAll()) do
  3.         timer.Simple(1, function()
  4.             local color = Color( 255, 255, 0, 255 )
  5.             local txt = "There are currently "..#player.GetAll().."/20 players in the server. Out of these, "..CountTraitors().." are Traitors."
  6.             CustomMsg(v, txt, color)
  7.         end)
  8.     end
  9. end
  10. hook.Add("TTTBeginRound","newroundbenefits",roundstartbenefits)
  11.  
  12. function initialbenefits(ply)  
  13.     timer.Simple(6, function()
  14.         if ply:IsValid() then
  15.             local color = Color( 50, 200, 255, 255 )
  16.             local txt = "You are playing on Last Known Suspect. Enjoy your stay!"
  17.             CustomMsg(ply, txt, color)
  18.         end
  19.     end)
  20. end
  21. hook.Add("PlayerInitialSpawn","initialspawnbenefits",initialbenefits)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement