Skip to content

Instantly share code, notes, and snippets.

@flarn2006
Created July 13, 2026 02:59
Show Gist options
  • Select an option

  • Save flarn2006/eec7f9dacdc90f0b882fe46dbf3ddb22 to your computer and use it in GitHub Desktop.

Select an option

Save flarn2006/eec7f9dacdc90f0b882fe46dbf3ddb22 to your computer and use it in GitHub Desktop.
COM_AddCommand('sk', function(p, arg)
arg = string.lower($)
if arg == 'sparks' or arg == 'ellie' then
if consoleplayer.mo.color == SKINCOLOR_ELLIE then
COM_BufInsertText(p, 'color sparklet')
end
COM_BufInsertText(p, 'say "/me morphs back into Ellie";skin sparks')
elseif skins[arg] ~= nil then
if consoleplayer.mo.skin == 'sparks' and consoleplayer.mo.color == SKINCOLOR_SPARKLET then
COM_BufInsertText(p, 'color ellie')
end
COM_BufInsertText(p, 'say "/me morphs into '..skins[arg].realname..'";skin '..arg)
else
print('Unrecognized skin name')
end
end, COM_LOCAL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment