QuestionGodMode?

Posts 17 of 7 · Page 1 of 1
GodMode?
I am trying to make and esp but I wanted to add where people who are godmoded have a different color. What is the code to check if someone is Godded? (ulx) Please help Thanks in advance.
Download the ulx pack of their site and find it yourself?
 
Code
function ulx.god( calling_ply, target_plys, should_revoke )
if not target_plys[ 1 ]:IsValid() then
if not should_revoke then
Msg( "You are the console, you are already god.\n" )
else
Msg( "Your position of god is irrevocable; if you don't like it, leave the matrix.\n" )
end
return
end

local affected_plys = {}
for i=1, #target_plys do
local v = target_plys[ i ]

if ulx.getExclusive( v, calling_ply ) then
ULib.tsayError( calling_ply, ulx.getExclusive( v, calling_ply ), true )
else
if not should_revoke then
v:GodEnable()
v.ULXHasGod = true
else
v:GodDisable()
v.ULXHasGod = nil
end
table.insert( affected_plys, v )
end
end

if not should_revoke then
ulx.fancyLogAdmin( calling_ply, "#A granted god mode upon #T", affected_plys )
else
ulx.fancyLogAdmin( calling_ply, "#A revoked god mode from #T", affected_plys )
end
end
local god = ulx.command( CATEGORY_NAME, "ulx god", ulx.god, "!god" )
god:addParam{ type=ULib.cmds.PlayersArg, ULib.cmds.optional }
god:addParam{ type=ULib.cmds.BoolArg, invisible=true }
god:defaultAccess( ULib.ACCESS_ADMIN )
god:help( "Grants god mode to target(s)." )
god:setOpposite( "ulx ungod", {_, _, true}, "!ungod" )


Too lazy to make an example for you.
Thank's a bunch hhh

---------- Post added at 12:18 AM ---------- Previous post was at 12:17 AM ----------

Quote Originally Posted by superaero_ View Post
Download the ulx pack of their site and find it yourself?
That is why I posted a thread. For people who know it. Thanks anyway.
You are that one propkilller.
Whats funny is that Johntheawe i know him on steam, and he is supposed to be the all amazing lua master, why cant he make his own hacks?
Quote Originally Posted by zzsiko4 View Post
Whats funny is that Johntheawe i know him on steam, and he is supposed to be the all amazing lua master, why cant he make his own hacks?
Yup, also weird with his MPGH profile picture, is that there is a 15 year old kid humping my Mother.
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?