not tested, but it should work.
you can set the damage on line 8
PHP Code:
#define DamagePlayer 10.0
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <cstrike>
#pragma semicolon 1
#pragma newdecls required
#define DamagePlayer 10.0
public void OnPluginStart()
{
HookEvent("weapon_fire", weapon_fire);
}
public Action weapon_fire(Handle event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
char weapon[32];
GetEventString(event, "weapon", weapon, sizeof(weapon));
if(StrEqual(weapon, "weapon_awp"))
{
SDKHooks_TakeDamage(client, client, client, DamagePlayer);
}
}