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

[ANY] Advert in low ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
5095
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    When you shoot your weapon, when you only have the 35 percent of ammo and you will need to reload soon, a advert appear for don't be a surprise for you when you dont have more ammo for shoot (clip ammo).
    Old 03-19-2016 , 19:17   [ANY] Advert in low ammo
    Reply With Quote #1

    Description:

    When you shoot your weapon, when you only have X percent of ammo and you will need to reload soon, a advert appear with a sound for don't be a surprise for you when you dont have more ammo for shoot (clip ammo).


    You can test the latest version here:



    Screenshots:

    http://steamcommunity.com/sharedfile.../?id=648685966
    http://steamcommunity.com/sharedfile.../?id=648662105


    Cvars:
    Put in server.cfg
    Code:
    sm_advertlowammo_percentage "0.30" // Percentage the ammo spend needed for show the advert

    Donations (optional):

    If you apreciate my work, you can donate me via paypal or with a trade offer


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 04-18-2016 at 14:40.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    weeeishy
    Senior Member
    Join Date: Jul 2015
    Location: Kuwait
    Old 03-19-2016 , 19:36   Re: [ANY] Advert in low ammo
    Reply With Quote #2

    Daaaamn Francisco, back at it again with the amazing plugins!!


    Keep it up
    __________________
    weeeishy is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-19-2016 , 19:54   Re: [ANY] Advert in low ammo
    Reply With Quote #3

    Quote:
    Originally Posted by weeeishy View Post
    Daaaamn Francisco, back at it again with the amazing plugins!!


    Keep it up



    New version 1.1

    -Added cvar for configure the percentage.
    Code:
    sm_advertlowammo_percentage "0.30" // Percentage the ammo spend needed for show the advert
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    bebe9b
    Veteran Member
    Join Date: May 2009
    Location: Romania
    Old 03-19-2016 , 23:26   Re: [ANY] Advert in low ammo v1.1
    Reply With Quote #4

    Thx Franc , nice plugin
    Pls change sound , sounds bad.
    Thx,
    __________________
    respecta si vei fi respectat

    Last edited by bebe9b; 03-20-2016 at 06:12.
    bebe9b is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-27-2016 , 19:24   Re: [ANY] Advert in low ammo v1.1
    Reply With Quote #5

    Quote:
    Originally Posted by bebe9b View Post
    Thx Franc , nice plugin
    Pls change sound , sounds bad.
    Thx,
    What sound you want instead? or maybe you want to disable the sound?
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    bebe9b
    Veteran Member
    Join Date: May 2009
    Location: Romania
    Old 03-28-2016 , 14:45   Re: [ANY] Advert in low ammo v1.1
    Reply With Quote #6

    Yes change sound , pls
    __________________
    respecta si vei fi respectat
    bebe9b is offline
    Miguel100
    Member
    Join Date: Oct 2010
    Location: Portugal
    Old 04-18-2016 , 14:27   Re: [ANY] Advert in low ammo v1.1
    Reply With Quote #7

    heya!, Getting errors in console :/ need a fix Game: Counter-Strike: Source.

    [SM] Native "GetEntProp" reported: Property "m_iItemDefinitionIndex" not found (entity 284/weapon_fiveseven)
    [SM] Displaying call stack trace for plugin "low_ammo.smx":
    [SM] [0] Line 73, E:\GitHub\Advert-in-low-ammo\low_ammo.sp:arm()
    [SM] [1] Line 55, E:\GitHub\Advert-in-low-ammo\low_ammo.sp::ClientWeaponReload()

    Cheers!

    Last edited by Miguel100; 04-18-2016 at 14:29. Reason: ADD GAME
    Miguel100 is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 04-18-2016 , 14:40   Re: [ANY] Advert in low ammo v1.2
    Reply With Quote #8

    Quote:
    Originally Posted by Miguel100 View Post
    heya!, Getting errors in console :/ need a fix Game: Counter-Strike: Source.

    [SM] Native "GetEntProp" reported: Property "m_iItemDefinitionIndex" not found (entity 284/weapon_fiveseven)
    [SM] Displaying call stack trace for plugin "low_ammo.smx":
    [SM] [0] Line 73, E:\GitHub\Advert-in-low-ammo\low_ammo.sp:arm()
    [SM] [1] Line 55, E:\GitHub\Advert-in-low-ammo\low_ammo.sp::ClientWeaponReload()

    Cheers!
    I think that fixed. Try the latest version.

    Version 1.2

    -Added support for more games.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 04-18-2016 at 15:08.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    shockys
    New Member
    Join Date: Jul 2016
    Old 07-30-2016 , 01:54   Re: [ANY] Advert in low ammo
    Reply With Quote #9

    Is there a way to remove the sound and only have the message pop up?
    shockys is offline
    MissAchtung
    New Member
    Join Date: Jul 2016
    Old 07-30-2016 , 12:51   Re: [ANY] Advert in low ammo
    Reply With Quote #10

    Hi,

    I want to use this plugin in CS:S -
    the advert appears, but no sound is playing..
    Where do I need to put the sound file to hear it?

    Thanks in advance,

    MissAchtung.

    MissAchtung is offline
    Reply


    Thread Tools
    Display Modes

    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 14:57.


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