name = "[Blocker] $2000$_st AWP",
author = "StrAnn1k (rewritten by Grey83)",
GetCurrentMap(buffer, sizeof(buffer));
bNoAwp = StrContains(buffer, "$2000$_st", false) != -1;
public void OnClientPostAdminCheck(int client)
SDKHook(client, SDKHook_WeaponCanUse, OnWeaponCanUse);
public Action OnWeaponCanUse(int client, int weapon)
GetEdictClassname(weapon, wpn, sizeof(wpn));
if(wpn[0] != 'w' || (strcmp(wpn[7], "awp") && strcmp(wpn[7], "g3sg1") && strcmp(wpn[7], "scar20")
&& strcmp(wpn[7], "sg550")))
if(iLastSeen[client] < (time = GetTime()))
PrintToChat(client, "На карте $2000$_st это оружие запрещено");
iLastSeen[client] = time + 4;
public Action CS_OnBuyCommand(int client, const char[] wpn)
PrintToChat(client, "На карте $2000$_st AWP запрещена");
else if(!strcmp(wpn, "g3sg1") || !strcmp(wpn, "scar20") || !strcmp(wpn, "sg550"))
PrintToChat(client, "На карте $2000$_st скорострелки запрещены");
else return Plugin_Continue;
EmitSoundToClient(client, "buttons/weapon_cant_buy.wav");