Ulysses
General => Developers Corner => Topic started by: Zmaster on July 04, 2014, 07:24:53 PM
-
Hey, again :P
I currently am using an undercover command that I got off these forums (thanks for that), but I want to add something on to it, and I'm not sure how I would do that.
Here's the code for the command so far
// Undercover Command
function ulx.undercover( calling_ply )
if calling_ply:IsUserGroup("owner") then
calling_ply:SetUserGroup("ucowner")
elseif calling_ply:IsUserGroup("ucowner") then
calling_ply:SetUserGroup("owner")
end
ulx.fancyLogAdmin( calling_ply, true, "#A went undercover" )
end
local undercover = ulx.command( CATEGORY_NAME, "ulx undercover", ulx.undercover, "!uc", true )
undercover:defaultAccess( ULib.ACCESS_ADMIN )
undercover:help( "Makes Owner undercover (no Owner tag)" )
// Undercover Command
I want to make it so it not only changes my rank, but it also changes the username it displays when I type a message and in the tab list.
This might be harder than it sounds to me, but I'm not sure.
Anyone know what to do?
-
Technically, that isn't possible. This is because Garry's Mod takes the names from your Steam profile.
There are some gamemodes that override this by implementing their own name displays, such as DarkRP (I think).
What gamemode are you running?
-
Technically, that isn't possible. This is because Garry's Mod takes the names from your Steam profile.
There are some gamemodes that override this by implementing their own name displays, such as DarkRP (I think).
What gamemode are you running?
TTT