AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Advert in low ammo (https://forums.alliedmods.net/showthread.php?t=280591)

Franc1sco 03-19-2016 19:17

[ANY] Advert in low ammo
 
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:
http://cache.www.gametracker.com/ser...0000_0_1_0.png


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

weeeishy 03-19-2016 19:36

Re: [ANY] Advert in low ammo
 
Daaaamn Francisco, back at it again with the amazing plugins!!


Keep it up :up:

Franc1sco 03-19-2016 19:54

Re: [ANY] Advert in low ammo
 
Quote:

Originally Posted by weeeishy (Post 2404070)
Daaaamn Francisco, back at it again with the amazing plugins!!


Keep it up :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

bebe9b 03-19-2016 23:26

Re: [ANY] Advert in low ammo v1.1
 
Thx Franc , nice plugin
Pls change sound , sounds bad.
Thx,

Franc1sco 03-27-2016 19:24

Re: [ANY] Advert in low ammo v1.1
 
Quote:

Originally Posted by bebe9b (Post 2404128)
Thx Franc , nice plugin
Pls change sound , sounds bad.
Thx,

What sound you want instead? or maybe you want to disable the sound?

bebe9b 03-28-2016 14:45

Re: [ANY] Advert in low ammo v1.1
 
Yes change sound , pls

Miguel100 04-18-2016 14:27

Re: [ANY] Advert in low ammo v1.1
 
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::Darm()
[SM] [1] Line 55, E:\GitHub\Advert-in-low-ammo\low_ammo.sp::ClientWeaponReload()

Cheers!

Franc1sco 04-18-2016 14:40

Re: [ANY] Advert in low ammo v1.2
 
Quote:

Originally Posted by Miguel100 (Post 2412137)
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::Darm()
[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.

shockys 07-30-2016 01:54

Re: [ANY] Advert in low ammo
 
Is there a way to remove the sound and only have the message pop up?

MissAchtung 07-30-2016 12:51

Re: [ANY] Advert in low ammo
 
Hi,

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

Thanks in advance,

MissAchtung.



All times are GMT -4. The time now is 09:57.

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