I know that typing [g] shows your silEnT GUID and typing it into fireteam chat whilst not in a fireteam will work to do it privately, but for absolute security, I wanted to make a custom command of !myguid so I made this LUA script.. Problem is I have never ever touched anything LUA or ET related, so I have no idea if this will even work and I have no means of testing it.. So I wonder if someone can tell me if I've done anything wrong, and/or if it will actually work?
----------------------------------------------------------------------
-- Filename: myguid.lua
----------------------------------------------------------------------
-- MyGUID - Prints your silEnT GUID just like /cl_guid would for etkey based GUIDs.
----------------------------------------------------------------------
-- Created by =F|A=Chuckun
-- If you use it, please donate to our clan to help fund the servers
-- Any amount will help!!
-- Fearless-Assassins.com
----------------------------------------------------------------------
-- For use with shrubbot, exec 'getmyguid'
----------------------------------------------------------------------
description = "silEnT GUID Command"
version = "1.0"
function et_InitGame(levelTime,randomSeed,restart)
local modname = string.format("%s", description)
et.G_Print(string.format("%s loaded\n", modname))
et.RegisterModname(modname)
end
function et_ConsoleCommand(command)
if et.trap_Argv(0) == "getmyguid" then
local userinfo = et.trap_GetUserinfo( playerID )
local guid = et.Info_ValueForKey( userinfo, "sil_guid" )
et.trap_SendServerCommand(clientNum, "print \"^osilEnT GUID: ^7"..guid.."\n")
end
return 1
end
Or perhaps there's an easier way to simply print the GUID within the command's exec line, with no need for any LUA mod?