Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. hook.Add( "PlayerSay", "message", function( ply, text )
  2. text = string.lower( text )
  3. if ( string.sub( text, 1, 2 ) == "/o" ) then
  4. for _,v in pairs ( player.GetAll() ) do
  5. if(ply:IsUserGroup("owner")) then
  6. id = v:EntIndex()
  7. player.GetByID( id ):PrintMessage( HUD_PRINTTALK, ply:Nick() .. " To Owners:" .. string.sub(text, 3) )
  8. return false
  9.  
  10. else
  11. return false
  12. end
  13. end
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement