[HELP] Infinite ammo?
I need help for infinite ammo. I want to make a module for R1ko VIP sistem
Code:
public void OnPluginStart() Code:
int weapon = GetEntPropEnt(iClient, Prop_Data, "m_hActiveWeapon"); Code:
if (StrContains(classname, "weapon_", false)) |
Re: [HELP] Infinite ammo?
Not sure if it'll help but you may want to make sure that the StrContains doesn't return -1.
Code:
if (StrContains(classname, "weapon_", false) != -1) |
Re: [HELP] Infinite ammo?
Quote:
|
Re: [HELP] Infinite ammo?
Weapon fire is unreliable for this. What u want to do is use a repeating timer or ongameframe. Check the clip and the reserve ammo. When clip reaches 1 and reserve reaches 0 reload the reserve and or clip as well. What game is this for?
|
Re: [HELP] Infinite ammo?
Quote:
Code:
public void OnGameFrame() Code:
public void OnGameFrame() |
Re: [HELP] Infinite ammo?
Quote:
|
Re: [HELP] Infinite ammo?
Quote:
|
Re: [HELP] Infinite ammo?
Idk the game you're working for but CS:GO has the event "EventWeaponFire".. So you can hook it, get the weapon he's firing and give to it clip+1 or +3 if the weapon is on burst mode.
Events here: https://wiki.alliedmods.net/Counter-...fensive_Events. |
Re: [HELP] Infinite ammo?
Why not FakeClientCommand(iClient, "sv_infinite_ammo 1"); I don't see why you shouldn't use it.
|
Re: [HELP] Infinite ammo?
Quote:
|
All times are GMT -4. The time now is 16:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.