Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. if CLIENT then
  2. net.Receive("logNum", function()
  3. local loginNum = net.ReadInt(9)
  4.  
  5. print("Your number for this login is "..loginNum.."!")
  6.  
  7. chat.AddText(Color(523, 263, 734), "Your number for this login is "..loginNum.."!")
  8. end)
  9. end
  10.  
  11. if SERVER then
  12. util.AddNetworkString("logNum")
  13.  
  14. hook.Add("PlayerInitialSpawn", "PIS", function(ply)
  15.  
  16. timer.Simple(15, function()
  17. local loginNum = math.random(1, 300)
  18.  
  19. ply:AddMoney(loginNum)
  20.  
  21. net.Start("logNum")
  22. net.WriteInt(loginNum, 9)
  23. net.Send(ply)
  24.  
  25. end)
  26.  
  27. end)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement