AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved (req csgo) infinite ammo fix (https://forums.alliedmods.net/showthread.php?t=322962)

XHUNTERX 04-08-2020 21:30

(req csgo) infinite ammo fix
 
Quote:

// my_map.cfg

sv_infinite_ammo 0

hello;

this code is not working sv_infinite_ammo 0 (Gives unlimited grenades from the map bug)

would you make a plugin to run this command at the beginning of each round ?

thanks

NanoC 04-08-2020 23:47

Re: (req csgo) infinite ammo fix
 
Can you explain better what do you want? i didn't get it

XHUNTERX 04-09-2020 09:57

Re: (req csgo) infinite ammo fix
 
i want a plugin
apply this command 10 seconds after the round starts --> sv_infinite_ammo 0
(must be applied every round)
thanks

NanoC 04-09-2020 13:20

Re: (req csgo) infinite ammo fix
 
Quote:

Originally Posted by XHUNTERX (Post 2691951)
i want a plugin
apply this command 10 seconds after the round starts --> sv_infinite_ammo 0
(must be applied every round)
thanks

So apply that cvar to 0 after 10 seconds when the round start. And put it back to 1 when the round ends?

Bacardi 04-09-2020 15:41

Re: (req csgo) infinite ammo fix
 
I would like to know, what is this map and what kind of bug ?

XHUNTERX 04-10-2020 23:16

Re: (req csgo) infinite ammo fix
 
Quote:

Originally Posted by Bacardi (Post 2692023)
I would like to know, what is this map and what kind of bug ?

hide and seek maps

problem: infinite smoke decoy etc..

XHUNTERX 04-10-2020 23:22

Re: (req csgo) infinite ammo fix
 
Quote:

Originally Posted by NanoC (Post 2691983)
So apply that cvar to 0 after 10 seconds when the round start. And put it back to 1 when the round ends?

no
always; sv_infinite_ammo 0

this command should be applied at the beginning of each round

NanoC 04-11-2020 01:11

Re: (req csgo) infinite ammo fix
 
Just put that CVar on cfg/server.cfg
Code:

sv_infinite_ammo 0

Bacardi 04-11-2020 02:12

Re: (req csgo) infinite ammo fix
 
If game is csgo, please, not in server.cfg
https://developer.valvesoftware.com/...rom_server.cfg


Sound like hide and seek have own, round based configure file?
Need to check.

XHUNTERX 04-11-2020 15:12

Re: (req csgo) infinite ammo fix
 
Quote:

Originally Posted by NanoC (Post 2692359)
Just put that CVar on cfg/server.cfg
Code:

sv_infinite_ammo 0

omg xd
i know this method
but that doesn't work


all I want
a simple plugin that runs this code at the beginning of each round --> sv_infinite_ammo 0

Bacardi 04-11-2020 15:52

Re: (req csgo) infinite ammo fix
 
PHP Code:

public void OnPluginStart()
{
    
HookEventEx("round_freeze_end"round_freeze_end);
}


public 
void round_freeze_end(Event event, const char[] namebool dontBroadcast)
{
    
ServerCommand("sv_infinite_ammo 0");




All times are GMT -4. The time now is 16:29.

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