Raised This Month: $ Target: $400
 0% 

[ANY] KillGod (v1.00, 2015-01-27)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sneakret
Member
Join Date: Jul 2012
Plugin ID:
4503
Plugin Version:
1.00
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Grants temporary god mode on each kill.
    Old 01-27-2015 , 07:42   [ANY] KillGod (v1.00, 2015-01-27)
    Reply With Quote #1

    Grants temporary god mode on every kill.

    God mode time does not stack, but god mode expiration is reset for each kill.

    CVARs
    • sm_kill_god_timeout_seconds - Seconds of god mode granted on kill (default = 3).

    Changelog

    2015-01-27 (v1.00)
    • Initial release.

    Disclaimer
    This plugin was created by request. I don't care to debate the merit of the concept.
    Attached Files
    File Type: sp Get Plugin or Get Source (killgod.sp - 818 views - 3.3 KB)
    sneakret is offline
    raizo11
    BANNED
    Join Date: Dec 2013
    Location: https://t.me/pump_upp
    Old 02-14-2015 , 18:41   Re: [ANY] KillGod (v1.00, 2015-01-27)
    Reply With Quote #2

    I want This Plugin To add In Your source Can u help me? Also players to see when have godmode and when it expires

    Code:
    #include <sourcemod>  
    #include <cstrike> 
    
    new Handle:g_hClientTimer[MAXPLAYERS + 1]; 
    
    public OnPluginStart()  
    {  
        HookEvent("player_death", Event_PlayerDeath);  
    }  
    
    public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontbroadcast)  
    {  
        new attacker = GetClientOfUserId(GetEventInt(event, "attacker"));  
        if (GetClientTeam(attacker) == 2)  
        {  
            SetEntityRenderColor(attacker, 255, 0, 0, 255);  
        }  
        if (GetClientTeam(attacker) == 3)  
        {  
            SetEntityRenderColor(attacker, 0, 0, 150, 255);  
        }  
        SetEntProp(attacker, Prop_Data, "m_takedamage", 0, 1);  
        if (g_hClientTimer[attacker] != INVALID_HANDLE) 
        { 
            KillTimer(g_hClientTimer[attacker]); 
            g_hClientTimer[attacker] = CreateTimer(1.0, Reset, attacker);  
        } 
        if (g_hClientTimer[attacker] == INVALID_HANDLE) 
        { 
            g_hClientTimer[attacker] = CreateTimer(1.0, Reset, attacker);  
        } 
    }  
    
    public Action:Reset(Handle:timer, any:attacker)  
    {  
        SetEntProp(attacker, Prop_Data, "m_takedamage", 2, 1);  
        SetEntityRenderColor(attacker, 255, 255, 255, 255);  
        g_hClientTimer[attacker] = INVALID_HANDLE; 
    }

    Last edited by raizo11; 02-14-2015 at 18:46.
    raizo11 is offline
    Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
    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 10:46.


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