Quote:
Originally Posted by xomp
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(i, WeaponCheck, sizeof(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(i, WeaponCheck, sizeof(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