AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Zero Ammo (https://forums.alliedmods.net/showthread.php?t=266036)

Byte 07-09-2015 15:53

[CS:GO] Zero Ammo
 
1 Attachment(s)
Description
Sets the ammo of all guns picked up, spawned, bought from buy menu to 0.
This is useful for some custom gamemode servers where killing others is not an objective but weapons are still allowed.

This plugin sets the ammo to 0 for all gun entities including those that have custom skins applied to them via m_nFallbackPaintKit.

FrostSurf 08-09-2015 19:22

Re: [CS:GO] Zero Ammo
 
When i spawn i have full ammo on my pistol i need to change back to the knife and back to the pistol and then the ammo disappears ?

headline 08-09-2015 19:49

Re: [CS:GO] Zero Ammo
 
Quote:

Originally Posted by FrostSurf (Post 2331391)
When i spawn i have full ammo on my pistol i need to change back to the knife and back to the pistol and then the ammo disappears ?

I'm pretty sure that this is one of the many things CS:GO will bug out with.


I remember running into this problem before and there was no real solution I found. I must have tried 15 different methods on removing a client's ammo with no bugs.

FrostSurf 08-09-2015 21:20

Re: [CS:GO] Zero Ammo
 
Quote:

Originally Posted by Headline22 (Post 2331395)
I'm pretty sure that this is one of the many things CS:GO will bug out with.


I remember running into this problem before and there was no real solution I found. I must have tried 15 different methods on removing a client's ammo with no bugs.

Yeah :/

Bacardi 08-10-2015 01:21

Re: [CS:GO] Zero Ammo
 
suggestion,
Use event
- item_equip


- Make little delay when event executed. Create timer with 0.0 interval, pass event "userid" to timer callback, use timer flag TIMER_FLAG_NO_MAPCHANGE
- On that timer cb, find player with given "userid", remove player ammo from current active weapon.

Not need use SDKHooks, less code.

Dr. Api 08-10-2015 01:37

Re: [CS:GO] Zero Ammo
 
Check my plugin is already do that.


All times are GMT -4. The time now is 18:23.

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