Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( "PlayerSay", "message", function( ply, text )
- text = string.lower( text )
- if ( string.sub( text, 1, 2 ) == "/o" ) then
- for _,v in pairs ( player.GetAll() ) do
- if(ply:IsUserGroup("owner")) then
- id = v:EntIndex()
- player.GetByID( id ):PrintMessage( HUD_PRINTTALK, ply:Nick() .. " To Owners:" .. string.sub(text, 3) )
- return false
- else
- return false
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement