Raised This Month: $ Target: $400
 0% 

[CS:GO] Passive mode/No damage plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rachnus
Senior Member
Join Date: Jun 2016
Location: Funland
Old 04-18-2017 , 10:38   Re: [CS:GO] Passive mode/No damage plugin
Reply With Quote #1

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <cstrike>
#include <sdkhooks>

public Plugin myinfo =
{
    
name "No Damage",
    
author "Rachnus",
    
version "1.0",
    
description "No Damage",
    
url "https://forums.alliedmods.net"
};

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 &damagetypeint &weaponfloat damageForce[3], float damagePosition[3])
{
    
damage 0.0;
    return 
Plugin_Changed;

Attached Files
File Type: smx nodamage.smx (4.0 KB, 138 views)
__________________
Github: https://github.com/jimppan
Steam: http://steamcommunity.com/id/jimppan
_____________________________________________ _________
Taking private requests

Last edited by Rachnus; 04-18-2017 at 10:39.
Rachnus 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 05:06.


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