Player.GodDisable

From GMod Wiki

Revision as of 06:34, 1 October 2010 by Vendetta (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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