Raised This Month: $ Target: $400
 0% 

Some help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 01-15-2016 , 12:30   Re: Some help
Reply With Quote #5

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>

new g_timecvarg_god_kill
new Float:g_time

public plugin_init() 
{
    
register_plugin("Free Godmode""0.1""zmd94")
    
g_god_kill register_cvar("god_kill""1")
    
g_timecvar register_cvar("god_kill_time""2")
    
g_time get_pcvar_float(g_timecvar)

    
RegisterHam(Ham_Killed"player""fw_PlayerKilled"1)
}

public 
fw_PlayerKilled(iVictimiKiller)  
{
    if (
iVictim == iKiller || !is_user_alive(iKiller) || !get_pcvar_num(g_god_kill)) 
        return
    
    
set_user_godmode(iKiller1)
    
set_task(g_time"Reset"iKiller)
}

public 
Reset(id)
{
    if(
is_user_alive(id))
    {
        
set_user_godmode(id0)
    }


Last edited by siriusmd99; 01-18-2016 at 01:36.
siriusmd99 is offline
 



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 09:28.


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