Raised This Month: $51 Target: $400
 12% 

[REQ CS:GO] More damage only to AWP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
N1bey
Junior Member
Join Date: Feb 2018
Old 02-11-2018 , 18:24   [REQ CS:GO] More damage only to AWP
Reply With Quote #1

Hello guys,

i own a nospread server and i'm tired of leg shots and i really need to find a plugin that make awp 1 shot and i can't find it. Can anyone solve my problem? i just want the awp to deal more damage, not other guns

thanks for everyone that tries to help me !
N1bey is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 02-14-2018 , 06:27   Re: [REQ CS:GO] More damage only to AWP
Reply With Quote #2

PHP Code:
//Pragma
#pragma semicolon 1
#pragma newdecls required

//Sourcemod Includes
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>

public void OnPluginStart()
{
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsClientInGame(i))
        {
            
OnClientPutInServer(i);
        }
    }
}

public 
void OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
}

public 
Action OnTakeDamage(int victimint &attackerint &inflictorfloat &damageint &damagetype)
{
    if (
attacker == || attacker MaxClients)
    {
        return 
Plugin_Continue;
    }

    
int active GetEntPropEnt(attackerProp_Send"m_hActiveWeapon");

    if (!
IsValidEntity(active))
    {
        return 
Plugin_Continue;
    }

    
char sClassname1[32];
    
GetEntityClassname(activesClassname1sizeof(sClassname1));

    if (
StrContains(sClassname1"weapon_awp") != -1)
    {
        
damage *= 1.5;
        return 
Plugin_Changed;
    }

    return 
Plugin_Continue;

__________________

Last edited by PinHeaDi; 02-14-2018 at 06:28.
PinHeaDi is offline
N1bey
Junior Member
Join Date: Feb 2018
Old 02-15-2018 , 18:50   Re: [REQ CS:GO] More damage only to AWP
Reply With Quote #3

thank u so much !
N1bey is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode