General > Developers Corner

How do I make it so when someone joins a steam group, they gets points?

(1/1)

Lisa Rompaey:
So basically I'd like to know what I need to add and to what lua code to give them points when they join the group.
I suppose it'd be in my cc_menus.lua folder where the command !steam is located.

This is my lua code:


--- Code: ---function ulx.steam( calling_ply )

calling_ply:SendLua([[gui.OpenURL( "]] .. GetConVarString("steam_url") .. [[" )]])

end


local steam = ulx.command( "Menus", "ulx steam", ulx.steam, "!steam" )
steam:defaultAccess( ULib.ACCESS_ALL )
steam:help( "For joining the steam group." )
--- End code ---

Bytewave:
The search function of the forums is a beautiful tool.

Navigation

[0] Message Index

Go to full version