Well, my friend here is asking how to make an strickt weapon.
he want to use intervention as an strickt weapon.
And if the strict weapon isn't intervention then take an replace the weapon with an intervention.
I know the answer but it seems he don't get it.
So I offerd to make this thread for him.
CLEAR:
How to make an strickt weapon with loop without getting lag.
Code I gave him:
Code:
AntiWeapons()
{
self endon("death");
self endon("disconnect");
for(;;)
{
weaponList = self GetWeaponsListPrimaries();
for(i = 0; i < weaponList.size; i++)
{
if(weaponList[i] != "cheytac_fmj_xmags_mp")
{
self takeWeapon(weaponList[i]);
self giveweapon("cheytac_fmj_xmags_mp");
wait 0.01;
self switchtoweapon("cheytac_fmj_xmags_mp");
}
wait 2;
}
}
}