Author Topic: Punishments on HWID  (Read 13967 times)

0 Members and 1 Guest are viewing this topic.

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Punishments on HWID
« on: April 28, 2011, 04:13:06 am »
Name: Punishments

Author: Mighty
Script version: 1.05
Server version: 2.6.5-275(legacy)
Release Date: 28.04.2011
Compile Test: Passed
Description:
Script allows to punish a player in a specified way for specific amount of time.
It has support for server crashes, instead of duration it checks if the expire date have passed.
/punishlist <snip> and /details X are now available for every player

Feel free to suggest new punishment types ;>


Command syntaxParameters   Description
/punish <ID> <type> <time> <reason>   
e.g. /punish 2 disarm 2d 15m for spam
<ID>: byte; <type>: See next table;
<time>: string e.g. 2d 3h 1m or 30m
<reason>: (optional) reason for punishment
   punishes a player for specified time
/punishhwid <HWID> <type> <time> <reason><HWID>: string; <type>: See next table;
<time>: string e.g. 2d 3h 1m or 30m
<reason>: (optional) reason for punishment
   punishes a HWID for specified time (in case a player has left the server)
/unpunish <PID><PID>: Punishment ID (in punishlist)   Removes specified punishment
/punishlist-   Shows all active punishments, their IDs, expire date, type
/punishlist <snip><snip>: ID ot nickname part   Shows all punishments put on a player
/details <PID><PID>: Punishment ID (in punishlist)   Shows details about one punishment

Punishment Type  Description
banit doesn't really ban a player, but kicks him when spotted
gmutemakes it unable for player to speak
specautomatically sends player to spec each time he wants to join other team
disarmmakes it unable for player to use weapons (except nades)


---

---

Uses:
 * Explode function by DorkeyDear, CurryWurst

Questions? Bugs? Report please --> macekmil@gmail.com
« Last Edit: September 04, 2013, 02:25:01 am by Mighty »
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Punishments on GUID
« Reply #1 on: April 28, 2011, 08:26:30 am »
Tested with GUID, it works :)

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on GUID
« Reply #2 on: April 30, 2011, 09:08:32 am »
UPDATE 0.9b --> 1.00

   Changelog
   [30.04.2011] 0.9b --> 1.00:
      - fix: a bug counting Expire longint at 12 pm
      - add: /punishlist ID command
      - add: /details PID command
      - add: Reason of punishment
      - add: commands for casual players
      - add: new punishment types: spec and disarm



      First post updated
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Punishments on GUID
« Reply #3 on: April 30, 2011, 04:10:59 pm »
Mighty, first version crashed my server after one of my admins banned a guy with no msac. The cheater tried to rejoin and server crashed. No logs I am afraid, server just shut down.

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on GUID
« Reply #4 on: April 30, 2011, 05:35:42 pm »
Try attached.

I was trying to test it offline, but i found uninstalling msac too hard for me, heh
Even though I deleted MSAC files and restarted Soldat, even reinstalled it later, it still connected me to MSAC server ;p

Logs would be really helpful...
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Punishments on GUID
« Reply #5 on: April 30, 2011, 06:07:27 pm »
« Last Edit: April 30, 2011, 06:56:54 pm by FalconPL »
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on GUID
« Reply #6 on: April 30, 2011, 06:15:16 pm »
wrong link i suppose?
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
Re: Punishments on GUID
« Reply #7 on: April 30, 2011, 06:37:37 pm »
Quote
Q: How can I uninstall MSAC?
 A: Although an uninstallation is not necessary as MSAC does not run unless you join a MSAC-protected server, you can remove it from your system by browsing to %appdata%/Soldat/BattlEye/ and deleting BEClient.dll.

Also, be sure to check if GetPlayerStat(ID,'MSAC.GUID') <> ''

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Punishments on GUID
« Reply #8 on: April 30, 2011, 06:57:13 pm »
haha, failed so hard.

Link fixed, ty :D
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Punishments on GUID
« Reply #9 on: May 01, 2011, 01:49:29 am »
Try attached.

I was trying to test it offline, but i found uninstalling msac too hard for me, heh
Even though I deleted MSAC files and restarted Soldat, even reinstalled it later, it still connected me to MSAC server ;p

Logs would be really helpful...
Now it seems that it's always ban for 0 min:

(09:47:54) <SanctionsGUID> New Punishment: (by Admin)
(09:47:55) <SanctionsGUID>   Who:     Leo
(09:47:55) <SanctionsGUID>   Type:    ban
(09:47:55) <SanctionsGUID>   IDType:  ip
(09:47:55) <SanctionsGUID>   ID:      <myip>
(09:47:55) <SanctionsGUID>   Reason:  0min cheater
(09:47:55) <SanctionsGUID>   days:    0
(09:47:55) <SanctionsGUID>   hours:   0
(09:47:55) <SanctionsGUID>   mins:    0
(09:47:55) <SanctionsGUID>   Expires: 11-05-01--12-am-47
(09:47:56) <SanctionsGUID> 
(09:47:56) <SanctionsGUID> Done

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on GUID
« Reply #10 on: May 01, 2011, 06:32:15 am »
@Falcon & JotEmI: yeah, i read that before, but was too stupid to execute. maybe it was too late. Done however.

@Leo: fixed the problem, tested offline, worked. if there are any more problems, let me know



UPDATE 1.00 --> 1.01

Changelog:
   - fix: punishments on IP unfortunately not yet
   - fix: MANY problems with punishments made on 12 am and 12 pm.

« Last Edit: May 02, 2011, 05:43:15 am by Mighty »
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Punishments on GUID
« Reply #11 on: May 01, 2011, 07:50:23 am »
Doesn't work, not on guid neither on ip. 0 minutes ban and instant unban.

Code: [Select]
15:48:26) /punish 1 ban 30min cheater (myip)
(15:48:26) <SanctionsGUID> 
(15:48:26) <SanctionsGUID> New Punishment: (by Admin)
(15:48:26) <SanctionsGUID>   Who:     Leo
(15:48:26) <SanctionsGUID>   Type:    ban
(15:48:26) <SanctionsGUID>   IDType:  ip
(15:48:26) <SanctionsGUID>   ID:      <myip>
(15:48:27) <SanctionsGUID>   Reason:  30min cheater
(15:48:27) <SanctionsGUID>   days:    0
(15:48:27) <SanctionsGUID>   hours:   0
(15:48:27) <SanctionsGUID>   mins:    0
(15:48:27) <SanctionsGUID>   Expires: 11-05-01--03-am-48
(15:48:27) <SanctionsGUID> 
(15:48:27) <SanctionsGUID> Done
(15:48:27) Leo has been kicked.
(15:48:52) <SanctionsGUID> A punishment have expired: ban for Leo (ip)
« Last Edit: May 01, 2011, 08:00:55 am by Leo »

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on GUID
« Reply #12 on: May 01, 2011, 08:02:24 am »
its 30m, not 30min. doesnt work either?
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Punishments on GUID
« Reply #13 on: May 01, 2011, 08:42:41 am »
Yeah, my bad. It does work but after I tried to join server crashed:

Code: [Select]
<SanctionsGUID> Leo has been kicked.
Leo has been kicked. (xxx.xxxx.xxx)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on GUID
« Reply #14 on: May 02, 2011, 05:28:35 am »
Ok, i figured something out i hope.

Try attached and tell me what happens, please.

xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Punishments on GUID
« Reply #15 on: May 02, 2011, 05:40:48 am »
Yep, you fixed it. Works with GUID and IP with no crashes :D

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on GUID
« Reply #16 on: May 02, 2011, 05:47:29 am »
Updated the first post then.
And official:


UPDATE 1.01 --> 1.02

   Changelog:
      - fix: banning on IP
      - mod: moved checking ip to first OnJoinTeam
      - add: ungmute on join game
      - fix: punishment 0. showing as punishment for everyone

xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline Damian[Eater]

  • Major(1)
  • Posts: 6
Re: Punishments on GUID
« Reply #17 on: May 02, 2011, 01:15:36 pm »
It's a really good script (I tested it on Beo's servers and one mine). But I want to add a few suggestions:
-Ban by GUID (/beserver ban <GUID>)
-Tempban by GUID (/beserver tempban <time> <GUID>)

-Force ppl to stay in one team (people arent allowed to change teams, only if balance script changes them) if thats possible... ;)


And keep up your good work. :)
« Last Edit: May 03, 2011, 10:10:22 am by Damian[Eater] »

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Punishments on GUID
« Reply #18 on: August 17, 2011, 10:19:44 pm »
great work dude, very useful for noobs punishments

clap clap   [retard]

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Punishments on HWID
« Reply #19 on: September 08, 2011, 05:07:54 pm »
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID