View Single Post
Tylerst
Veteran Member
Join Date: Oct 2010
Old 02-15-2011 , 21:04   Re: [TF2] Full Infinite Ammo
Reply With Quote #29

Quote:
Originally Posted by xomp View Post
Excellent catch. I did notice this is for the folks who have the "valve" quality sandman (I use tf2items to give certain players the valve quality weapons.

Thanks
Updated, I moved the sandman check out of the scout-only area, and made it check for tf_weapon_bat_wood instead of the index.


//Side Note
Actually..It looks more like I'm checking for anything not the sandman, but strcmp was acting weird.

using this:
PHP Code:
    if(!GetConVarInt(sandman))
    {
          new 
String:WeaponCheck[32];
          
GetClientWeapon(iWeaponChecksizeof(WeaponCheck));
          if(
strcmp(WeaponCheck"tf_weapon_bat_wood")) return;      
    } 
Gave ONLY the sandman infinite ammo. I had to use
PHP Code:
    if(!GetConVarInt(sandman))
    {
          new 
String:WeaponCheck[32];
          
GetClientWeapon(iWeaponChecksizeof(WeaponCheck));
          if(!
strcmp(WeaponCheck"tf_weapon_bat_wood")) return;      
    } 
to get it to work...No idea what happened there, but the cvar is working so...yeah
Tylerst is offline