• !group to join steam group
    6 replies, posted
Hi, I have recently made a TTT server (UK Banter Squad TTT) and I am trying to add something I have seen in other servers where a guest can type !group in the chat to join my steam group, was wondering if anyone knows how to make this work. Thanks in advance, Leo
[url]https://scriptfodder.com/scripts/view/84[/url] This is what alot of servers use, i personally use it and it is quite good
[QUOTE=kulcris;49471650][url]https://scriptfodder.com/scripts/view/84[/url] This is what alot of servers use, i personally use it and it is quite good[/QUOTE] Was looking for a free verison where it is just the !group as I do not use a pointshop in my server.
[lua]CATEGORY_NAME = "Steam Group" function ulx.steam(ply) ply:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/*bantersquadgroupid*")]]) end local steam = ulx.command( CATEGORY_NAME, "ulx steam", ulx.steam, "!steam" ) steam:defaultAccess( ULib.ACCESS_ALL ) steam:help( "Join the UK Banter Squad TTT Steam group!" )[/lua] This will send them to you group page, just say that it's a command for joining the group and those that use it will figure out the rest. Just change the end of the URL and you'll be fine. Hope this helps. [editline]6th January 2016[/editline] This is an addon for ULX by the way. You'll want to paste the contents into a lua file in addons/ulx/lua/ula/modules/sh
[QUOTE=Britain;49471687][lua]CATEGORY_NAME = "Steam Group" function ulx.steam(ply) ply:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/*bantersquadgroupid*")]]) end local steam = ulx.command( CATEGORY_NAME, "ulx steam", ulx.steam, "!steam" ) steam:defaultAccess( ULib.ACCESS_ALL ) steam:help( "Join the UK Banter Squad TTT Steam group!" )[/lua] This will send them to you group page, just say that it's a command for joining the group and those that use it will figure out the rest. Just change the end of the URL and you'll be fine. Hope this helps. [editline]6th January 2016[/editline] This is an addon for ULX by the way. You'll want to paste the contents into a lua file in addons/ulx/lua/ula/modules/sh[/QUOTE] I have added the following to garrysmod\addons\ulx\lua\ulx\modules\sh\chat.lua CATEGORY_NAME = "Steam Group" function ulx.steam(ply) ply:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/thebantersquadttt")]]) end local steam = ulx.command( CATEGORY_NAME, "ulx steam", ulx.steam, "!steam" ) steam:defaultAccess( ULib.ACCESS_ALL ) steam:help( "Join The Banter Squad TTT Steam group!" ) but still nothing
You forgot to make the first argument mean something [lua] CATEGORY_NAME = "Steam Group" function ulx.steam(ply) ply:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/thebantersquadttt")]]) end local steam = ulx.command( CATEGORY_NAME, "ulx steam", ulx.steam, "!steam" ) steam:addParam{ type=ULib.cmds.PlayerArg } steam:defaultAccess( ULib.ACCESS_ALL ) steam:help( "Join The Banter Squad TTT Steam group!" )[/lua]
[url]https://facepunch.com/showthread.php?t=1413856[/url] basicly an free version of [url]https://scriptfodder.com/scripts/view/84[/url]
Sorry, you need to Log In to post a reply to this thread.