Код
#include <sourcemod>
#include <cstrike>
#include <sdktools>
#pragma semicolon 1
#pragma tabsize 0;
public OnPluginStart() HookEvent("item_pickup", Pickup, EventHookMode_Pre);
public Action:Pickup(Handle:event, const String:name[], bool:db)
{
new String:item[40]; GetEventString(event, "item", item, sizeof(item));
if (StrEqual(item, "negev") || StrEqual(item, "m249")) return Plugin_Handled;
return Plugin_Continue;
}
public Action:CS_OnBuyCommand(client, const String:weapon[])
{
if (StrEqual(weapon, "negev") || StrEqual(weapon, "m249")) return Plugin_Handled;
return Plugin_Continue;
}
Должно работать. Проверяй.