Player.IsMuted

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:IsMuted( )
Description:
Returns whether or not the player is on the client muted list.
Returns: Boolean
In Object: Player
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.IsMuted]Player.IsMuted [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSimple function to check if a player is muted.
Used onNewerClient.png
Code
 
for k,ply in pairs(player.GetAll()) do
   if LocalPlayer().IsMuted(ply)then 
       Msg("Player ".. ply:Nick() .." is muted")
   else
       Msg("Player ".. ply:Nick() .." is not muted")
   end
end
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox