Raised This Month: $51 Target: $400
 12% 

[ANY] SimpleWarnings Plugin (17.4.2017)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Plugin ID:
5605
Plugin Version:
1.x
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A plugin used to warn players in the server.
    Old 04-17-2017 , 13:07   [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #1

    This is my developed version of "Potatoz" Simple Warnings.

    Command List
    1. !warn <name / ID> [reason] | ADMFLAG_BAN
    2. !warnmic <name / ID> [reason] | ADMFLAG_BAN
    3. !resetwarnings <name / ID> | ADMFLAG_ROOT
    4. !warnings <name / ID> | Free command.

    Cvar List - To edit the configs of the plugin go to: cfg/sourcemod/plugin_simplewarnings
    1. sm_warn_maxwarnings_enabled | Enable automatic ban after max amount of warnings reached? 1 = Enabled 0 = Disabled
    2. sm_warn_maxwarnings | Max amount of total warnings before banning a player. 0 = Disabled
    3. sm_warn_maxwarnings_reset | Reset warnings after automatic ban? 1 = Enabled 0 = Disabled
    4. sm_warn_banduration | How long, in minutes, should a player be banned after recieving the max amount of warnings?
    5. sm_warn_maxroundwarnings | Max amount of warnings in a single round / map before banning a player.
    6. sm_warn_mic | Enable mic warnings? 1 = Enabled 0 = Disabled
    7. sm_warn_mictoban | Will a mic warning lead to a ban? 1 = Yes 0 = No
    8. sm_warn_microundtotal | Will a mic warning add to a players round / map warnings? 1 = Yes 0 = No
    9. sm_warn_announce | Enable pre-game announcments to admins? 1 = Enabled 0 = Disabled
    10. sm_warn_roundreset | Style to reset warnings, 1 = Round 0 = Map Start


    *PLEASE NOTE*
    All credit for the logic of this plugin should go to "Potatoz"


    TODO
    • MySQL Integration
    • Web Panel to view warnings.
    • Translation support


    Source Code:
    Github Link
    __________________

    Last edited by B3none; 04-17-2017 at 18:26.
    B3none is offline
    Chrahb
    Senior Member
    Join Date: Jan 2017
    Location: Somewhere in Denmark!
    Old 04-17-2017 , 16:08   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #2

    Looks like a thing i could use,
    would be noice if you completed your todo
    __________________
    Chrahb is offline
    B3none
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 04-17-2017 , 16:14   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #3

    I will be working on it for the next couple of days, I just need to learn how to impliment safe SQL queries first
    __________________
    B3none is offline
    Jezis
    AlliedModders Donor
    Join Date: Jul 2016
    Location: Czech Republic
    Old 04-17-2017 , 16:54   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #4

    PHP Code:
    [SMException reportedClient index 0 is invalid
    L 04
    /17/2017 22:36:18: [SMBlamingsimple_warn.smx
    L 04
    /17/2017 22:36:18: [SMCall stack trace:
    L 04/17/2017 22:36:18: [SM]   [0IsClientInGame
    L 04
    /17/2017 22:36:18: [SM]   [1Line 82, /groups/sourcemod/upload_tmp/textZKuNzc.sp::OnRoundStart
    L 04
    /17/2017 22:39:24: [SMException reportedClient index 0 is invalid
    L 04
    /17/2017 22:39:24: [SMBlamingsimple_warn.smx
    L 04
    /17/2017 22:39:24: [SMCall stack trace:
    L 04/17/2017 22:39:24: [SM]   [0IsClientInGame
    L 04
    /17/2017 22:39:24: [SM]   [1Line 231, /groups/sourcemod/upload_tmp/textZKuNzc.sp::Command_Warn 
    I get these errors. Also when i get 3 warnings, as set in cfg, i dont get banned.


    Could you also add, that if i warn somebody, it prints to me how much warnings he has?

    Edit: translations file would be great idea too
    __________________


    Last edited by Jezis; 04-17-2017 at 16:56.
    Jezis is offline
    Send a message via ICQ to Jezis
    B3none
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 04-17-2017 , 18:26   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #5

    That's an easy fix, it's because I start my for loops from 0 out of habit lol, I will add that now and translations will come soon, I'm actually not too sure how to add those
    __________________
    B3none is offline
    Chrahb
    Senior Member
    Join Date: Jan 2017
    Location: Somewhere in Denmark!
    Old 04-18-2017 , 05:36   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #6

    Would be cool if you added so that root admins (z), could warn normal admins (b).
    If they are abusing their powers.
    __________________
    Chrahb is offline
    B3none
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 04-18-2017 , 18:19   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #7

    I can look at adding that in later today, I've been working on the SQL side of things and having it all go to a paginated table on the web-side of things
    __________________
    B3none is offline
    OcC
    Senior Member
    Join Date: Mar 2012
    Location: Romania
    Old 04-21-2017 , 09:04   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #8

    Very good, I really needed this.
    A little suggestion to this plugin https://forums.alliedmods.net/showthread.php?t=294358
    Suggestion: https://forums.alliedmods.net/showpo...54&postcount=4
    __________________
    OcC is offline
    Send a message via Yahoo to OcC
    Chrahb
    Senior Member
    Join Date: Jan 2017
    Location: Somewhere in Denmark!
    Old 04-21-2017 , 10:47   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #9

    A php page for it would be nice,
    maybe my community CMS would support it.

    Looking forward to the admin warnings function
    __________________
    Chrahb is offline
    Unbelievable
    Senior Member
    Join Date: Jan 2016
    Old 04-23-2017 , 13:42   Re: [ANY] SimpleWarnings Plugin (17.4.2017)
    Reply With Quote #10

    Can this work with sourcebans?
    __________________
    Unbelievable is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:18.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode