Quote:
Originally Posted by Horsedick
How do I restrict infinite sandman and wrap assassin balls to Admins only but able to set everything else for everyone else?
|
If you're worried about lag, I released a plugin to fix that a couple days ago:
Ball Projectile Limit
Edit: As of 1.0.2, it's much simpler to do this, just uncomment the if statement, or comment the SetAmmo to disable them altogether.
Code:
//Sandman, Wrap Assassin - Ammo
case 44, 648:
{
//Admin Check(Old Plugin Behavior)
//if(!CheckCommandAccess(client, "sm_fia_adminflag", ADMFLAG_GENERIC)) return;
SetAmmo(client, iWeapon);
}
Old
Otherwise, I left the code in for the admin check:
Code:
//Sandman, Wrap Assassin - Admin Check(Old Plugin Behavior)
/*
case 44, 648:
{
if(!CheckCommandAccess(client, "sm_fia_adminflag", ADMFLAG_GENERIC)) return;
SetAmmo(client, iWeapon);
}
*/
Just remove the cases from the Type2 Weapons area and uncomment this(remove the /* */ )