Eh, dunno.
This commit is contained in:
parent
f67b801d61
commit
5c8a765776
@ -78,12 +78,11 @@ public Action OnUse(int entity, int client)
|
||||
{
|
||||
if(!bGaveAmmo)
|
||||
{
|
||||
int iWeapon = GetPlayerWeaponSlot(client, CS_SLOT_PRIMARY);
|
||||
if(iWeapon != -1)
|
||||
int iWeapon = INVALID_ENT_REFERENCE;
|
||||
if((iWeapon = GetPlayerWeaponSlot(client, CS_SLOT_PRIMARY)) != INVALID_ENT_REFERENCE)
|
||||
StockPlayerAmmo(client, iWeapon);
|
||||
|
||||
iWeapon = GetPlayerWeaponSlot(client, CS_SLOT_SECONDARY);
|
||||
if(iWeapon != -1)
|
||||
if((iWeapon = GetPlayerWeaponSlot(client, CS_SLOT_SECONDARY)) != INVALID_ENT_REFERENCE)
|
||||
StockPlayerAmmo(client, iWeapon);
|
||||
|
||||
bGaveAmmo = true;
|
||||
|
Loading…
Reference in New Issue
Block a user