Hi guys, maybe someone has a Lua script:
When the player is turned on less than 7 sbox_godmode 1
When more than 7 players and off sbox_godmode 0
gamemode Darkrp
Thanks in advance)
[CODE]
local GodScriptEnabled = true
local DefaultGodNum = 0
local function Example( )
if GodScriptEnabled then
if #player.GetAll( ) >= 7 then
RunConsoleCommand( "sbox_godmode", "0" )
else
RunConsoleCommand( "sbox_godmode", "1" )
end
else
RunConsoleCommand( "sbox_godmode", DefaultGodNum )
end
end
hook.Add( "Think", "Example", Example )
local function Example2( )
if GodScriptEnabled then
RunConsoleCommand( "sbox_godmode", "1" )
end
end
hook.Add( "InitPostEntity", "Example2", Example2 )[/CODE]
Thank you! :smile:
I was wondering if you saw the definition of this forum.
[IMG]http://i.imgur.com/JF4titH.jpg[/IMG]
Sorry, you need to Log In to post a reply to this thread.