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

[ANY] BitchSlap 7/25/13


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ReZy
SourceMod Donor
Join Date: Dec 2012
Plugin ID:
3778
Plugin Version:
1.1.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Slap a bitch! 20 times..
    Old 07-25-2013 , 01:00   [ANY] BitchSlap 7/25/13
    Reply With Quote #1

    Bitch Slap!

    What does this do?
    It's really simple, on command it slaps the client 20 times.

    Why? So easy to code this?
    I made this plugin for people who can't code, and I plan to make this into a whole pack of plugins.

    Also I am looking to get into SourcePawn, so making random, but usable plugins will help me learn SourcePawn, and get feedback and suggestions.

    How to
    !sm_bitchslap <name> <1-20>
    You can pick how much you want to slap the person, it can go from 1 to 20.
    Each slap is 10 damage.

    ConVars
    "sm_enable_bitchslap", "1", "This enabled or disabled the bitchslap command (0 = Off : 1 = On)."
    "sm_bitchslap_damage", "10", "This changes the damage of bitchslap"
    "sm_bitchslap_maxspeed", "20", "This changes max slaps bitchslap does"
    "sm_bitchslap_slapspeed", "0.25", "This changes the slap speed of bitchslap"

    To-Do

    Command:
    Support of @red, @blu, @all, @spec

    Suggestions, and Ideas:
    Whole pack of plugins named Trololo


    Changelog

    ~-1.1.0-~
    Added ProcessTargetString
    Added 4 ConVars
    Fixed memory leak issue
    Fixed warnings

    1.0.1 - 7/25/2013 -
    Plugin now checks for if the person is alive.
    Changed speed of per slap from 0.025 to 0.25

    1.0.0 - 7/25/2013 - Initial Release of Bitch Slap

    Installation
    Download and put bitchslap.smx into your addons/sourcemod/plugins folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (bitchslap.sp - 916 views - 3.5 KB)
    __________________

    Last edited by ReZy; 07-28-2013 at 23:26.
    ReZy is offline
    Eden.Campo
    Member
    Join Date: Mar 2013
    Old 07-25-2013 , 01:35   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #2

    I'd suggest you to use ProcessTargetString to find a client. It does the work very nicely.

    I'll give you an example code when I get to the computer.

    -
    Eden
    Eden.Campo is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 07-25-2013 , 03:53   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #3

    Your gonna need to check if client is in game for the Timer or else if a player disconnects while being slapped, the server is gonna throw errors like invalid client.
    __________________
    Chaosxk is offline
    ReZy
    SourceMod Donor
    Join Date: Dec 2012
    Old 07-25-2013 , 10:39   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #4

    ~-1.0.1-~
    Plugin now checks for if the person is alive.
    Changed speed of per slap from 0.025 to 0.25
    __________________

    Last edited by ReZy; 07-28-2013 at 23:12.
    ReZy is offline
    ReZy
    SourceMod Donor
    Join Date: Dec 2012
    Old 07-25-2013 , 19:18   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #5

    Quote:
    Originally Posted by Eden.Campo View Post
    I'd suggest you to use ProcessTargetString to find a client. It does the work very nicely.

    I'll give you an example code when I get to the computer.

    -
    Eden
    Added ProcessTargetString, now I gotta fix the warnings. Also added 4 ConVars.
    Posting the new update when i get rid of the warnings.

    EDIT: Might add some more stuff before I release a new version.
    __________________

    Last edited by ReZy; 07-25-2013 at 19:57.
    ReZy is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 07-25-2013 , 19:31   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #6

    This is pretty much a version of this plugin - http://forums.alliedmods.net/showthread.php?t=79322
    Horsedick is offline
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 07-25-2013 , 23:58   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #7

    Quote:
    Originally Posted by Horsedick View Post
    This is pretty much a version of this plugin - http://forums.alliedmods.net/showthread.php?t=79322
    Or SuperSlap
    __________________
    cw main:

    cw speedruns:
    vodka00 is offline
    ReZy
    SourceMod Donor
    Join Date: Dec 2012
    Old 07-26-2013 , 00:34   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #8

    But this will have more customization, and it's a step to learning SourcePawn, as I am new.
    __________________
    ReZy is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 07-26-2013 , 04:24   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #9

    or you could just slap a player for more damage.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 07-28-2013 , 19:41   Re: [ANY] BitchSlap 7/25/13
    Reply With Quote #10

    Memory Leak:
    Code:
    L 07/25/2013 - 15:14:46: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "bitchslap.smx")
    L 07/25/2013 - 15:14:46: [SM] Unloading plugin to free 14380 handles.
    L 07/25/2013 - 15:14:46: [SM] Contact the author(s) of this plugin to correct this error.
    L 07/25/2013 - 17:38:20: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "bitchslap.smx")
    L 07/25/2013 - 17:38:20: [SM] Unloading plugin to free 14302 handles.
    L 07/25/2013 - 17:38:20: [SM] Contact the author(s) of this plugin to correct this error.
    L 07/25/2013 - 17:39:03: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "bitchslap.smx")
    L 07/25/2013 - 17:39:03: [SM] Unloading plugin to free 14533 handles.
    L 07/25/2013 - 17:39:03: [SM] Contact the author(s) of this plugin to correct this error.
    L 07/25/2013 - 17:39:58: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "bitchslap.smx")
    L 07/25/2013 - 17:39:58: [SM] Unloading plugin to free 14543 handles.
    L 07/25/2013 - 17:39:58: [SM] Contact the author(s) of this plugin to correct this error.
    L 07/26/2013 - 18:16:34: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "bitchslap.smx")
    L 07/26/2013 - 18:16:34: [SM] Unloading plugin to free 13653 handles.
    L 07/26/2013 - 18:16:34: [SM] Contact the author(s) of this plugin to correct this error.
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara 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 21:52.


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