Raised This Month: $ Target: $400
 0% 

Plugin Invincible cs 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-22-2019 , 04:06   Re: Plugin Invincible cs 1.6
Reply With Quote #1

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

#define KILL_AMOUNT 3      // Amount of kills to reach
#define INVINCIBLE_TIME 10.0 // In Float:seconds

new g_client_kills[33]

public 
plugin_init()
{
  
RegisterHam(Ham_Killed"player""client_killed_post"1)
  
RegisterHam(Ham_Spawn"player""client_spawn_post"1)
}
public 
client_spawn_post(client)
{
  if(
is_user_connected(client))
  {
    
g_client_kills[client] = 0
  
}
}
public 
client_killed_post(clientclient_killer)
{
  if(
is_user_alive(client_killer))
  {
    
g_client_kills[client_killer] += 1

    
if(g_client_kills[client_killer] >= KILL_AMOUNT
      
&& !get_user_godmode(client_killer))
    {
      
set_user_godmode(client_killer1)
      
set_user_rendering(client_killerkRenderFxGlowShell2552550kRenderNormal25)

      
client_print(client_killerprint_center"You received invincible powers.")

      
set_task(INVINCIBLE_TIME"invincible_stop"client_killer)
    }
  }
}
public 
invincible_stop(client)
{
  if(
is_user_connected(client))
  {
    
set_user_godmode(client0)
    
set_user_rendering(client)
  }

__________________
Retired.

Last edited by Xalus; 01-22-2019 at 04:07.
Xalus 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 23:17.


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