Recent Posts

Pages: [1] 2 3 ... 10
2
Thanks it worked!
3
Developers Corner / Re: Help with making an addon use IP.
« Last post by JamminR on June 15, 2018, 05:45:30 PM »
ULib.cmds.PlayerArg Already takes SteamIds.
ML:AddCredits is your function needing edit.
4
Off-Topic / Re: I'm in need of some help
« Last post by mintoyuy on June 15, 2018, 01:52:58 PM »
Aha, first post here. Anyways I am looking for some help because I need a sgag and smute commands just like the !sban command. Ultra Omega Burn Review
Wondering if I could get some tips or basic coding from you guys. :P


Edit:
Nvm I got it.

Great
5
Developers Corner / Help with making an addon use IP.
« Last post by kwinkywolf on June 14, 2018, 05:21:17 AM »
Hello to whomever it may concern,

I have here an addon for an F3 menu, and i'm hoping to make it so that SDonate can be used to add a certain amount of credits to the user's credit amount. The only way I can see to do that, is by using a cvar. Now, I used the ulx addcredits command, but this would only work with the player's nickname in that server, and SDonate can only output steam names and Steam IDs.

So, what I planned to do was either make a new command just for doing the same thing with the ID, or to make the current one there compatible with Steam IDs.

If anybody could help me out, it'd be much much appreciated. I'm brand new to Ulysses, and still fairly new to Lua coding with only having a few addons i've made.

Current AddCredits command code:

Code: [Select]
function ulx.addCredits( calling_ply, target_ply, amount )
if( type( amount ) != "number" ) then
calling_ply:ChatPrint( "Invalid amount! Only a number." );
return;
end

ML:AddCredits( target_ply, amount );
ulx.fancyLogAdmin( calling_ply, "#A gave #T #i credits", target_ply, amount );
end
local addCredits = ulx.command( CATEGORY_NAME, "ulx addcredits", ulx.addCredits, "!addcredits" )
addCredits:addParam{ type=ULib.cmds.PlayerArg };
addCredits:addParam{ type=ULib.cmds.NumArg, hint="credits" };
addCredits:defaultAccess( ULib.ACCESS_ADMIN );
addCredits:help( "Add to the F3 credits of a user(you can use negative amounts like -100)." );
6
Developers Corner / Re: My custom chat command does not work :(
« Last post by Timmy on June 12, 2018, 01:27:38 PM »
The function signature for Player:Say:
Code: [Select]
Player:Say( string text, boolean teamOnly=false )
When a parameter is followed by an equal sign and a value (e.g. "teamOnly=false"), that value is regarded as the default value. As a result, the second parameter in Player:Say defaults to false.

If you don’t want to send the message in team chat, you can write:
Code: [Select]
ply:Say( "We were bested. So be it.", false )or
Code: [Select]
ply:Say( "We were bested. So be it." )
If you do want to send the message in team chat, you must set the second parameter to true:
Code: [Select]
ply:Say( "We were bested. So be it.", true )
The following is invalid:
Code: [Select]
ply:Say( "We were bested. So be it.", teamOnly=false ) -- invalid
7
Developers Corner / Re: My custom chat command does not work :(
« Last post by fubar on June 12, 2018, 12:17:39 PM »
yes I am getting that same error

addons/custom/lua/ulx/modules/sh/u_custom.lua
8
Search the releases here. There are a few for both groups/bans and UTime integration.

https://forums.ulyssesmod.net/index.php/topic,9416.0.html
https://forums.ulyssesmod.net/index.php/topic,9672.0.html
https://forums.ulyssesmod.net/index.php/topic,8968.0.html
https://forums.ulyssesmod.net/index.php/topic,5738.0.html

I don't know which of these work or if they work at all. The one I made years ago no longer works (I think) and I never bothered fixing it.

I thought there was one on gmodstore, but not any more, he removed it.

MySQL is a module. You'll have to install it on your servers (if your host allows you to do that) and then have a database hosted somewhere.

Syncing servers is not an easy task and requires lots of work and attention to make it work properly.

You could probably create a job and have someone do it for you that has done it before. That would be the easiest way, but then when something goes wrong, you won't know how to fix it.

Either way, good luck!
9
Developers Corner / HELP! Dark RP Giving Jobs access to ULX Commands.
« Last post by Boxed on June 12, 2018, 10:59:38 AM »
So I want to make and Dark RP job TEAM_ADMINONDUTY, but I want to give the job it self access to ULX commands so only when your on duty you can use ULX commands, then when your not on duty commands are restricted any know how?
10
Are there any in particular that are recommended?

Specifically I'd like
1) user groups/permissions to sync up (an admin promotion would apply for that user on all servers)
2) utime to be tracked the same on all/both servers
3) globalized bans (so banned players can't just hop to another server hosted by/on the same person/network)

I'm unsure what SQLoo is, and haven't the slightest idea about SQL other than it is used for databases. But I suppose I could always create a gmod store job if I want something specific tailored to a server network.
Pages: [1] 2 3 ... 10