Ulysses Stuff > Releases
AWarn2 - Advanced Warning Module
kulcris:
Please add a button to remove last warning (super admin)
ChosenOne:
Is there a way that I can access the active warning level of a player in integer form? I'm writing a command that will enact different punishments based on a players current active warning level.
MrPresident:
I don't have the code in front of me at the moment, but I am pretty sure I wrote a function to return just that.
If you look through the code you might be able to find it. If you still need help, I can look through it once I get home Monday. Just let me know.
ChosenOne:
I think I may have found it. There is a function called that awarn_getwarnings that takes a player and returns a number. I'll see if I can use that. I'm a little new to advanced Lua, will I be able to use that function outside of the awarn files? I'm going to try incorporating it into a custom ULX command that I'm writing. Also, are you still working on making the MySQL usable? Because that would be very nice to have.
MrPresident:
I have stopped working on the MySQL module for this actively. I may pick it back up at some point, but for now I'm not.
The function you found looks like it. I think that will work for you.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version