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

[L4D] Admin punishment (BDSM)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
8213
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Extending admin arsenal of punishment tools
    Old 09-29-2022 , 10:53   [L4D] Admin punishment (BDSM)
    Reply With Quote #1

    Description:
    Extending admin arsenal of punishment tools in menu:
    - Vote Kick (Кик) - 3rd party
    - Vote Mute (Отключить микрофон) - 3rd party
    - Slap (Дать ляща)
    - Drunk (Опьянить) - 3rd party
    - Whip (Высечь плёткой)
    - Hump (Влепить шалбан)
    - PushAss (Подсрачник)
    - Spray (Опознать спрей) - 3rd party
    For "PushAss" it is available selection of the altitude you want to push his ass:

    How high will fly up?
    - 0 - stumble and fall
    - 10 - jump up
    - 20 - bounces high
    - 50 - bounces with damage
    - 100 - bounces with high damage (perhaps, lethal)
    For 100 - the parachute is turned off automatically, offender will be knocked up/down for a long time

    For other options, you can select HP damage amount.

    To have the most nice experience it is recommended to install all the optional dependencies
    Settings (ConVars):
    Can be found in: cfg/sourcemod/sm_punish.cfg
    PHP Code:
    // Show punishment messages to all? (1 - Yes / 0 - No)
    sm_punish_showall "1"

    // Admin flag required to access specific punishments
    sm_punish_accessflag "s"

    // Use logging? (1 - Yes / 0 - No)
    sm_punish_log "1" 
    Commands:
    PHP Code:
    // Opens main punishment menu with lot of submenus
    sm_punish 
    Supported games:
    - L4D1
    - L4D2
    Requirements:
    - (optional) VoteKick plugin
    - (optional) VoteMute plugin
    - (optional) Spray tracer plugin
    - (optional) Emergency Treatment With First Aid Kit And CPR (Fork) + include (revive_cpr.inc)*
    - (optional) Molotov Drink plugin + include (molotov_drink.inc)*
    - (optional) Parachute plugin (fork) + include (parachute.inc)*

    * Where specified, you must put .inc files in "include" folder of your local compiler for everything to compile correctly.
    ** Plugin detection is hardcoded, so don't change smx names.
    Logfile location:
    - logs/punishment.log
    Permissions:
    - votes can be started by users with permissions set in each corresponding plugin.
    - special actions (like slap), by default, can be started by player with "s" (ADMFLAG_CUSTOM5) flag.
    Translations:
    - English
    - Russian
    ChangeLog


    Credits:
    - @Silvers - for "OnStaggered" signature.
    - Authors of corresponding dependent plugins.
    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon
    - BitCoin
    - Ю.Money
    P.S.:
    - It's my private plugin written for myself and my Bloody Witch team.
    - Project and updates discontinued. Don't ask.
    Attached Files
    File Type: zip Punish.zip (8.4 KB, 175 views)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 09-29-2022 at 12:01.
    Dragokas is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 10-02-2022 , 21:30   Re: [L4D] Admin punishment (BDSM)
    Reply With Quote #2

    No uberslap? Give me your GPL license
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-03-2022 , 08:40   Re: [L4D] Admin punishment (BDSM)
    Reply With Quote #3

    What?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 10-03-2022 , 21:02   Re: [L4D] Admin punishment (BDSM)
    Reply With Quote #4

    Quote:
    Originally Posted by Dragokas View Post
    What?
    https://github.com/eyal282/Useful-Co...mands.sp#L2864

    Code:
    public Action Timer_UberSlap(Handle hTimer, int UserId)
    {
    	int client = GetClientOfUserId(UserId);
    
    	if (client == 0)
    		return Plugin_Stop;
    
    	else if (!UberSlapped[client])
    	{
    		TIMER_UBERSLAP[client] = INVALID_HANDLE;
    		return Plugin_Stop;
    	}
    
    	TotalSlaps[client]++;
    	if (TotalSlaps[client] >= 100 || (UC_UnlethalSlap(client, 1) && TotalSlaps[client] >= 10))
    	{
    		UberSlapped[client]    = false;
    		TIMER_UBERSLAP[client] = INVALID_HANDLE;
    		UC_PrintToChat(client, "%s\x02Uberslap has ended.\x04 Prepare your landing!", UCTag);
    		return Plugin_Stop;
    	}
    
    	return Plugin_Continue;
    }
    
    stock bool UC_UnlethalSlap(int client, int damage = 0, bool sound = true)
    {
    	bool OneHP  = false;
    	int  Health = GetEntityHealth(client);
    	if (damage >= Health)
    	{
    		damage = Health - 1;
    		OneHP  = true;
    	}
    
    	SlapPlayer(client, damage, sound);
    
    	return OneHP;
    }
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-04-2022 , 10:10   Re: [L4D] Admin punishment (BDSM)
    Reply With Quote #5

    There is already very similar command "PushAss" + 100. No need to duplicate functionality.
    And anyway all support is discontinued.

    License for all publicly available plugins is same - GPLv3. I thought, you must know it. It is stated somewhere in the rules of AM community.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas 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 07:21.


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