Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if CLIENT then
- net.Receive("logNum", function()
- local loginNum = net.ReadInt(9)
- print("Your number for this login is "..loginNum.."!")
- chat.AddText(Color(523, 263, 734), "Your number for this login is "..loginNum.."!")
- end)
- end
- if SERVER then
- util.AddNetworkString("logNum")
- hook.Add("PlayerInitialSpawn", "PIS", function(ply)
- timer.Simple(15, function()
- local loginNum = math.random(1, 300)
- ply:AddMoney(loginNum)
- net.Start("logNum")
- net.WriteInt(loginNum, 9)
- net.Send(ply)
- end)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement