Raised This Month: $32 Target: $400
 8% 

[ANY] SM Warn System 1.1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 10-09-2012 , 06:41   Re: [ANY] SM Warn 1.0.2
Reply With Quote #21

Quote:
Originally Posted by ecca View Post
Mirandor

Thanks for pointing it out. Totally forgot that command. Will add it in the next version.

Also i want to thank you for the translation .

---

Any translations are welcome and really appreciated.
Thanks

If it is possible, could you add a way for the admins to know in game how long and for what reason a player has got its last warning (i.e. when the player connects or by an admin command which list the warned players)?
BTW if the warning is old and the player now play fairly, the admin could decide to reset the warnings of the related player.

Could you also add the reason in the disconnect message when the player get kicked/banned (maybe it's already the case for a ban...) when sm_warn_punishment is et to 4 or 5 please?
Mirandor is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-09-2012 , 11:15   Re: [ANY] SM Warn 1.0.2
Reply With Quote #22

Sorry, i don't really understand what you're meaning. Could you please explain more detailed and i will release an update tonight.

Phrases that needs to be translated

PHP Code:
"warn_warn_adminmenu_title"
    
{
        
"#format"    ""
        "en"        "Warn player"
        "fr"        ""
        "de"        ""
    
}
    
    
"warnun_warn_adminmenu_title"
    
{
        
"#format"    ""
        "en"        "UnWarn player"
        "fr"        ""
        "de"        ""
    
}
    
    
"warn_warn_targetmenutitle"
    
{
        
"#format"    ""
        "en"        "Select player"
        "fr"        ""
        "de"        ""
    
}
    
    
"warn_unwarn_targetmenutitle"
    
{
        
"#format"    ""
        "en"        "Select player"
        "fr"        ""
        "de"        ""
    
}
    
    
"warn_warn_reasontitle"
    
{
        
"#format"    ""
        "en"        "Select reason"
        "fr"        ""
        "de"        ""
    
}
    
    
"warn_unwarn_reasontitle"
    
{
        
"#format"    ""
        "en"        "Select reason"
        "fr"        ""
        "de"        ""
    


Last edited by ecca; 10-09-2012 at 11:44.
ecca is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 10-09-2012 , 12:37   Re: [ANY] SM Warn 1.0.2
Reply With Quote #23

Here is the requested french translation
Code:
"warn_warn_adminmenu_title"
    {
        "#format"    ""
        "en"        "Warn player"
        "fr"        "Donner un avertissement"
        "de"        ""
    }
    
    "warnun_warn_adminmenu_title"
    {
        "#format"    ""
        "en"        "UnWarn player"
        "fr"        "Retirer un avertissement"
        "de"        ""
    }
    
    "warn_warn_targetmenutitle"
    {
        "#format"    ""
        "en"        "Select player"
        "fr"        "Selectionner un joueur"
        "de"        ""
    }
    
    "warn_unwarn_targetmenutitle"
    {
        "#format"    ""
        "en"        "Select player"
        "fr"        "Selectionner un joueur"
        "de"        ""
    }
    
    "warn_warn_reasontitle"
    {
        "#format"    ""
        "en"        "Select reason"
        "fr"        "Choisir un motif"
        "de"        ""
    }
    
    "warn_unwarn_reasontitle"
    {
        "#format"    ""
        "en"        "Select reason"
        "fr"        "Choisir un motif"
        "de"        ""
    }  
 
Just to be sure: when you "unwarn" a player, by the way you remove all of the warnings he received, or just one with the specified reason?

When a warned player is connected, the message displays "player_toto connected with 2 previous warnings"...
Maybe you could add somewhere the reason and the date (as details in console of admins seems to be the most easy): "player_toto connected with 2 previous warnings - see console for details"
and in console a thing like:
player_toto warned 2 times:
-1 : 10-09-2012 17h00 (reason: Abusive)
-2 : 10-09-2012 17h01 (reason: Abusive)

Then the admin can decide to unwarn, or not, the player if he see that the warn has been given a long time ago.

When a warned played is kicked, the message displays "Disconnected: [SM warn] You have been kicked for receiving a warning"
You couls add there the reason of the warn...
"Disconnected: [SM warn] You have been kicked for receiving a warning (reason: Abusive)"
Mirandor is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-09-2012 , 12:48   Re: [ANY] SM Warn 1.0.2
Reply With Quote #24

Thank you for the translations and for the requests. I'm going to add the first one but it will not be printed automatically. Also the kick with reason, i'm going to check that up.

Edit:

Forgot to answer your question. sm_unwarn clear the players warning history, so ye it delete all warnings.

I need one more translations from you guys:
PHP Code:
"warn_consoleoutput"
    
{
        
"#format"    ""
        "en"        "Player {1} has been warned {2} time(s) before:"
        "fr"        ""
        "de"         ""
        "sv"        "Spelaren {1} har varnats {2} gånger förut:"
    


Last edited by ecca; 10-09-2012 at 13:05.
ecca is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 10-09-2012 , 13:41   Re: [ANY] SM Warn 1.0.2
Reply With Quote #25

Quote:
Originally Posted by ecca View Post
Thank you for the translations and for the requests. I'm going to add the first one but it will not be printed automatically. Also the kick with reason, i'm going to check that up.

I need one more translations from you guys:
PHP Code:
"warn_consoleoutput"
    
{
        
"#format"    ""
        "en"        "Player {1} has been warned {2} time(s) before:"
        "fr"         "Le joueur {1} avait deja ete averti {2} fois avant:"
        "de"         ""
        "sv"        "Spelaren {1} har varnats {2} gånger förut:"
    

Quote:
Forgot to answer your question. sm_unwarn clear the players warning history, so ye it delete all warnings.
Okay so french translation could be modified like this:

Code:
"warnun_warn_adminmenu_title"     
{         
         "#format"    ""         
         "en"           "UnWarn player"         
         "fr"            "Retirer tous les avertissements"         
         "de"           ""     
}


It means that you remove all of the given warnings

Last edited by Mirandor; 10-09-2012 at 13:48.
Mirandor is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-09-2012 , 14:47   Re: [ANY] SM Warn 1.0.3
Reply With Quote #26

Version 1.0.3 is released!

Quote:
v1.0.3 (09/10/12)
- [Added] Whole plugins is now using translations
- [Added] sm_unwarn to admin menu
- [Added] 3 new translations
- Swedish
- German
. French
- [Added] Reasons is now using cfg file
- [Added] Ability to check the players warning history (sm_checkwarn <#userid|name>)
- [Added] Kick reason if case 4 or 5 is selected as punish
- [Fixed] Code that waren't in use
- [Fixed] Possible mysql injection exploit
- [WARNING] You need to delete your old table because of sql update.
-----
Preview of the sm_checkwarn command.


Last edited by ecca; 10-09-2012 at 15:02.
ecca is offline
TheHardstyleBro
Senior Member
Join Date: Jun 2012
Location: Netherlands
Old 10-09-2012 , 15:44   Re: [ANY] SM Warn 1.0.3
Reply With Quote #27

Dutch translation ;)
Attached Files
File Type: txt warn.phrases.txt (8.1 KB, 122 views)
__________________
TheHardstyleBro is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 10-09-2012 , 16:32   Re: [ANY] SM Warn 1.0.3
Reply With Quote #28

Sorry: Get troubles...

PHP Code:
[SMNative "SQL_TQuery" reportedInvalid database Handle 0 (error4)
L 10/09/2012 22:16:27: [SMDisplaying call stack trace for plugin "SM_warn.smx":
L 10/09/2012 22:16:27: [SM]   [0]  Line 163SM_warn.sp::OnClientPostAdminCheck() 
I 've deleted my clientprefs-sqlite.sq3 before, reload server : same error...

I also forgot to tell that i've never heared any sound when i tried to warn myself...

EDIT: LOL i forgot to upload the reasons.cfg in the sourcemod/config folder

Last edited by Mirandor; 10-09-2012 at 16:44.
Mirandor is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 10-09-2012 , 16:48   Re: [ANY] SM Warn 1.0.3
Reply With Quote #29

Well, you need to configure the sound by your self. That's why there cVars :p

Did you get it working after you uploaded the reasons?
ecca is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 10-09-2012 , 17:08   Re: [ANY] SM Warn 1.0.3
Reply With Quote #30

Quote:
Originally Posted by ecca View Post
Well, you need to configure the sound by your self. That's why there cVars :p
Sure! But i didn't change the file in the config file and i have the file in both folders, mine and the server, and it doesn't work...
I'll try with another file and give you fideback

Quote:
Did you get it working after you uploaded the reasons?
Yes ; it works fine, thanks!

But the new command sm_checkwarn is not in the admin menu and the reason doesn't appears in the disconnect message of the warned player ; mistake?
Mirandor 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 22:45.


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