Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cl_init.lua :
- include('shared.lua')
- function welcome( ply )
- ply = LocalPlayer
- chat.AddText(Color(255,0,0) "Hello",Color(255,255,255), ply, Color(255, 0, 0), "welcome to my serveur")
- end
- usermessage.Hook("welcome", welcome)
- hook.Add("PostDrawOpaqueRenderables", "welcome", function()
- for _, ent in pairs (ents.FindByClass("npcwelcome")) do
- if ent:GetPos():Distance(LocalPlayer():GetPos()) < 1000 then
- local Ang = ent:GetAngles()
- Ang:RotateAroundAxis( Ang:Forward(), 90)
- Ang:RotateAroundAxis( Ang:Right(), -90)
- cam.Start3D2D(ent:GetPos()+ent:GetUp()*79, Ang, 0.20)
- draw.SimpleTextOutlined( 'welcome', "HUDNumber5", 0, 0, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color(0, 0, 0, 255))
- cam.End3D2D()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement