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

[CS:GO] Warningshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Plugin ID:
5736
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A simple plugin giving Counter-Terrorists the ability to give Terrorists warning shots by holding the USE-key (Default: E) and shooting a terrorist once.
    Old 07-25-2017 , 05:05   [CS:GO] Warningshot
    Reply With Quote #1

    Warningshot

    Description
    A simple plugin giving Counter-Terrorists the ability to give Terrorists warning shots by holding the USE-key (Default: E) and shooting a terrorist once.
    By default, each warningshot makes 15 damage, but this can easily be changed via the config.

    How to install
    1. Download the plugin.
    2. Put warningshot.smx file to your csgo/addons/sourcemod/plugins folder.
    3. Put warningshot.phrases.txt file to your csgo/addons/sourcemod/translations folder.
    4. Restart the server or change map.

    ConVars
    sm_warning_colored - How long should the victim of the warning shot be colored? Set to 0 to disable entirely! (Def: 4)
    sm_warning_color_R - The RED value of the color the warned T should get. (Def: 255)
    sm_warning_color_G - The GREEN value of the color the warned T should get. (Def: 114)
    sm_warning_color_B - The BLUE value of the color the warned T should get. (Def: 0)
    sm_warning_damage - How much damage is a warning shot supposed to give? (Def: 15)
    sm_warning_version - The current version of the plugin you're running. Don't change this!

    API for Developers
    PHP Code:
    /**
    * Gives the specified client a warning shot.
    *
    * @param client index of the victim.
    * @param client index of the inflictor.
    * @return true if succesful.
    */
    native bool GiveClientWarningShot(int victimint inflictor);

    /**
    * Called when a client has been given a warningshot.
    *
    * @param The victims' client index.
    * @param The attackers' client index.
    */
    forward void OnWarningShotGiven(int victimint inflictor); 
    Download plugin.

    Links
    Github
    __________________

    Last edited by condolent; 07-27-2017 at 16:47.
    condolent is offline
    Sples1
    Senior Member
    Join Date: Apr 2016
    Location: Kitsune Lab
    Old 12-07-2017 , 15:55   Re: [CS:GO] Warningshot
    Reply With Quote #2

    Hey there!

    First of all it's a nice release...
    ...but we found a bug at the plugin testing. The shooted T after few shots got 32767 health.
    We tried to do that again, but we can't. I don't know how we did that... :/
    __________________
    Developer & Scripter from Kitsune Lab
    Contact me: Steam | My Plugins | Kitsune Lab

    Join to the community on our Discord server.
    I stopped public develops. My old/new plugins available ONLY for my Discord community.
    Sples1 is offline
    Bl4ckFire
    Junior Member
    Join Date: Jan 2014
    Old 12-27-2017 , 12:10   Re: [CS:GO] Warningshot
    Reply With Quote #3

    Quote:
    Originally Posted by Sples1 View Post
    Hey there!

    First of all it's a nice release...
    ...but we found a bug at the plugin testing. The shooted T after few shots got 32767 health.
    We tried to do that again, but we can't. I don't know how we did that... :/
    Same for me.
    How to reproduce:
    Warn a player who has less HP than the warning shot does damage.
    Bl4ckFire is offline
    condolent
    AlliedModders Donor
    Join Date: Jan 2016
    Location: gc_sLocation;
    Old 12-27-2017 , 12:25   Re: [CS:GO] Warningshot
    Reply With Quote #4

    Quote:
    Originally Posted by Sples1 View Post
    Hey there!

    First of all it's a nice release...
    ...but we found a bug at the plugin testing. The shooted T after few shots got 32767 health.
    We tried to do that again, but we can't. I don't know how we did that... :/
    Quote:
    Originally Posted by Bl4ckFire View Post
    Same for me.
    How to reproduce:
    Warn a player who has less HP than the warning shot does damage.
    It was a stupid mistake from me. Thanks for reporting! It's fixed in the latest commit on github: https://github.com/condolent/Warningshot
    __________________
    condolent is offline
    wolvez04
    Senior Member
    Join Date: Feb 2016
    Location: Andora
    Old 01-07-2018 , 10:15   Re: [CS:GO] Warningshot
    Reply With Quote #5

    Hello.
    I am unable to compile your latest version. The compiled version is the outdated one on your downloads page.
    wolvez04 is offline
    condolent
    AlliedModders Donor
    Join Date: Jan 2016
    Location: gc_sLocation;
    Old 01-07-2018 , 10:18   Re: [CS:GO] Warningshot
    Reply With Quote #6

    Quote:
    Originally Posted by wolvez04 View Post
    Hello.
    I am unable to compile your latest version. The compiled version is the outdated one on your downloads page.
    Works fine for me. What's the error message when compiling? Do you have all the includes?
    __________________
    condolent is offline
    wolvez04
    Senior Member
    Join Date: Feb 2016
    Location: Andora
    Old 01-07-2018 , 14:02   Re: [CS:GO] Warningshot
    Reply With Quote #7

    Using includes supplied in your github yes.

    I'll check for the error later when I'm home :]

    Last edited by wolvez04; 01-07-2018 at 14:03.
    wolvez04 is offline
    Sples1
    Senior Member
    Join Date: Apr 2016
    Location: Kitsune Lab
    Old 02-16-2018 , 17:33   Re: [CS:GO] Warningshot
    Reply With Quote #8

    Quote:
    Originally Posted by condolent View Post
    It was a stupid mistake from me. Thanks for reporting! It's fixed in the latest commit on github: https://github.com/condolent/Warningshot
    Hey there! It's Still buggy :/
    __________________
    Developer & Scripter from Kitsune Lab
    Contact me: Steam | My Plugins | Kitsune Lab

    Join to the community on our Discord server.
    I stopped public develops. My old/new plugins available ONLY for my Discord community.
    Sples1 is offline
    Sples1
    Senior Member
    Join Date: Apr 2016
    Location: Kitsune Lab
    Old 02-19-2018 , 15:17   Re: [CS:GO] Warningshot
    Reply With Quote #9

    Hey buddy!
    I fixed the bug, when player's get 32.000+ hp.

    Changes:




    EDIT:
    The text at the uploaded file is "The targeted player's hp is less than the warning's damage."



    Download source/compiled
    Attached Files
    File Type: sp Get Plugin or Get Source (warningshot.sp - 311 views - 3.6 KB)
    File Type: smx warningshot.smx (19.7 KB, 286 views)
    __________________
    Developer & Scripter from Kitsune Lab
    Contact me: Steam | My Plugins | Kitsune Lab

    Join to the community on our Discord server.
    I stopped public develops. My old/new plugins available ONLY for my Discord community.

    Last edited by Sples1; 02-19-2018 at 15:25. Reason: text change in the script
    Sples1 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 11:10.


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