Quote:
Originally Posted by Raw123
Hello, I want some plugin which will block picking awp for non-VIP users - flag a.
I've searched forums but I cant find just this simple plugin.
If someone can do that plugin i will be very appereciated.
|
Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <smlib>
#define PLUGIN_AUTHOR "YellowSwag+baroNN"
#define PLUGIN_VERSION "1.00"
EngineVersion g_Game;
public Plugin myinfo =
{
name = "Another Shitty plugin",
author = PLUGIN_AUTHOR,
description = "",
version = PLUGIN_VERSION,
url = ""
};
public void OnPluginStart()
{
g_Game = GetEngineVersion();
if (g_Game != Engine_CSGO && g_Game != Engine_CSS)
SetFailState("This plugin is for CSGO/CSS only.");
HookEvent("round_start", Event_RoundStart);
}
public void Event_RoundStart(Handle event, const char[] name, bool dontBroadcast)
{
Client_RemoveAllWeapons(i, "", true);
Client_GiveWeaponAndAmmo(i, "weapon_deagle", true, 0, 0, 10, 50);
}
not tested.