Quote:
Originally Posted by Rxelik
i need specific weapons
|
Code:
public Action:CS_OnGetWeaponPrice(int client, const char[] weapon, int& price)
{
if(StrEqual(weapon, "weapon_g3sg1") || StrEqual(weapon, "weapon_scar20")) // The auto noobs.
{
price = 2147483647; // The biggest number the game can support.
return Plugin_Changed;
}
return Plugin_Continue;
}
Or:
mp_items_prohibited 1,2,3,4,5,6,7,8,9...
If you reach infinity, you'll have blocked all weapons, so you have to iterate all numbers to figure out what's what. There's also a GetEntProp for that to debug but whatever you can just iterate through all numbers ( there are less than 50 total weapons. )
__________________
I am available to make plugins for pay.
Discord: Eyal282#1334