Player.GodDisable

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GodDisable( )
Description:
Disable god mode for a Player.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GodDisable]Player.GodDisable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis will disable godmode for everyone.
Used onNewerServer.png
Code
function DisableGodAll( )
	for k,v in pairs( player.GetAll( ) ) do
		v:GodDisable( )
	end
end
concommand.Add( "NoMoreGods", DisableGodAll )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox