Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- util.AddNetworkString("JoinMessage")
- hook.Add("CheckPassword","darkrp",function(steam,ip,serverpass,userpass,name)
- net.Start("JoinMessage")
- net.WriteString(name)
- net.Broadcast()
- end)
- else
- net.Receive("JoinMessage",function()
- chat.AddText(Color(160,255,160),"Player "..(net.ReadString()).." has joined the game")
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement