AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQ CS:GO] More damage only to AWP (https://forums.alliedmods.net/showthread.php?t=305220)

N1bey 02-11-2018 18:24

[REQ CS:GO] More damage only to AWP
 
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 !

PinHeaDi 02-14-2018 06:27

Re: [REQ CS:GO] More damage only to AWP
 
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;



N1bey 02-15-2018 18:50

Re: [REQ CS:GO] More damage only to AWP
 
thank u so much !


All times are GMT -4. The time now is 01:38.

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