• Print

Author Topic: AWarn2 - Advanced Warning Module  (Read 603557 times)

0 Members and 1 Guest are viewing this topic.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: AWarn2 - Advanced Warning Module
« Reply #45 on: May 13, 2014, 05:38:28 am »
Hey MrPresident, i really want a warn system like this. I know its free, but i like your scripts, so i would like to donate! Its look like you dont updated your developer subscription at coderhire.
Also, will be there a gui update thats it look smoother? Im not very good at gui parts... :D

Right below the Coderhire link, there's another link that allows you to donate as well:
Alternatively you can just donate here if you wish. Ignore the stuff specific to my server if you click this link.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #46 on: May 13, 2014, 08:03:18 am »
Ahh. I didn't realize my dev subscription was expired. Thanks. :) I redid it.

Offline nikorev

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: AWarn2 - Advanced Warning Module
« Reply #47 on: May 19, 2014, 03:06:24 pm »
I seen this used on various servers that I go on. I would just like to congratulate you for making an addon that many servers find useful. I wish you good luck in your future addons Mr. President.

Cheers,
Nikorev

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #48 on: May 19, 2014, 05:18:38 pm »
Thank you.

Offline Neoon

  • Newbie
  • *
  • Posts: 15
  • Karma: 0

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #50 on: May 25, 2014, 11:48:52 am »
You need to stop warning the map. He's a very sensitive guy.

In all seriousness.... no. I've never seen that happen before.

Offline IWANTit

  • Newbie
  • *
  • Posts: 1
  • Karma: -1
Re: AWarn2 - Advanced Warning Module
« Reply #51 on: June 01, 2014, 09:47:40 am »
Thanks a bunch mate

Offline danoakley

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AWarn2 - Advanced Warning Module
« Reply #52 on: June 09, 2014, 07:54:47 am »
really nice plugin. I was wondering if you could help me with something. I run a sandbox server, and i want to put PVPscript onto it (type !pvpon to be able to take damage and do pvp and type !pvpoff to get godmode so you can build) but there is one problem. People will type !pvpoff, god themselves and spawn weapons and kill people who aren't godded. I was wondering if it is possible to basically make Awarn automatically warn people for killing while in godmode/noclip without any admin interaction at all. Thanks in advance.
« Last Edit: June 09, 2014, 08:27:32 am by danoakley »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #53 on: June 09, 2014, 09:56:08 pm »
Instead why don't you just ignore damage alltogether for that situation.


Example:
Player 1 is godded and Player 2 isn't. Player 1 attacks player 2, nothing happens.


Essentially, godded players can't do any damage.

Offline danoakley

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: AWarn2 - Advanced Warning Module
« Reply #54 on: June 10, 2014, 05:54:29 am »
Instead why don't you just ignore damage alltogether for that situation.


Example:
Player 1 is godded and Player 2 isn't. Player 1 attacks player 2, nothing happens.


Essentially, godded players can't do any damage.

Thanks, but how exactly do i do that? (i could not code if my life depended on it)

Offline Valgoid

  • Full Member
  • ***
  • Posts: 103
  • Karma: -15
  • Wanna Be Lua King
Re: AWarn2 - Advanced Warning Module
« Reply #55 on: June 10, 2014, 10:25:55 am »
Instead why don't you just ignore damage alltogether for that situation.


Example:
Player 1 is godded and Player 2 isn't. Player 1 attacks player 2, nothing happens.


Essentially, godded players can't do any damage.

Same here, I need that as well.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: AWarn2 - Advanced Warning Module
« Reply #56 on: June 10, 2014, 11:45:42 am »
Thanks, but how exactly do i do that? (i could not code if my life depended on it)
Same here, I need that as well.

I did this for a friend of mine not too long ago, it's pretty simple and you can find documention for the hook here: PlayerShouldTakeDamage.

The only issue with it, is that it can only check if a player is Godded through the ULX command "ulx god" or "!god", and not Garry's Mod default "god" command. I haven't found anything that allows to check if someone is actually in God mode through the default "god" command (which I believe is the reason ULX has a variable called "player.ULXHasGod").
Anyways, here's the code, just remember it only works with god mode through "ulx god"/"!god":
Code: Lua
  1. function PreventGodDamage( vic, att )
  2.  
  3.         if att:IsPlayer() and att.ULXHasGod then
  4.        
  5.                 return false
  6.        
  7.         else
  8.        
  9.                 return true
  10.                
  11.         end
  12.  
  13. end
  14. hook.Add( "PlayerShouldTakeDamage", "PreventGodDamage", PreventGodDamage )
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Valgoid

  • Full Member
  • ***
  • Posts: 103
  • Karma: -15
  • Wanna Be Lua King
Re: AWarn2 - Advanced Warning Module
« Reply #57 on: June 11, 2014, 09:27:58 am »
Thank you so much!!!

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: AWarn2 - Advanced Warning Module
« Reply #58 on: June 12, 2014, 06:55:44 am »
I don't know what I would do without Awarn on my servers. It has really helped with the troll population! But the last comments made me wonder about something. Could it be possible in TTT for Awarn to automatically warn for teamkills? This would be incredibly helpful when admins are not on the server!!! After 3 teamkills, the person would be auto-kicked, return for another chance, then banned after 5 rdms (or however you configure it)! Yes, I know karma bans are on TTT. The difference is this automatic Awarn wouldn't be based on karma (e.g. damaging players with incins, accidental shooting,etc) but on actual teamkills. Also. players getting kicked with a karma ban don't know exactly what they did to get the ban (e.g. incin damage), but a server could use an advert that tells you that you will be warned for rdm, so they will know why they are kicked.  For those of us without admins working 24/7 this would be a godsend! This sounds really complicated to code and probably not possible but I thought it was an idea?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #59 on: June 12, 2014, 10:36:15 pm »
The addon is written to be modular (to an extent). I could write a quick TTT module that does that, sure. Just don't expect it until this weekend. Work is killing me right now.

  • Print