Raised This Month: $ Target: $400
 0% 

VIP Kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Chronick
Junior Member
Join Date: Jul 2012
Location: Slovakia
Old 04-01-2013 , 17:54   VIP Kill
Reply With Quote #1

Hi there,

I have one problem.
When VIP who kills even as it kills the VIP, and then to the player ...

Screen Shot - Click Here !

PHP Code:
public hrac_zomre(victimattackershouldgib)
{
   
cs_set_user_money(attacker0// Peniaze na 0
   
cs_set_user_money(victim0// Peniaze na 0
   
   
if(get_user_flags(attacker) & VIP && is_user_alive(attacker)) // Ak je hráč [VIP] a je nazive
   
{
      if(
offonhpzakill[attacker])
      {
         
set_user_health(attackerget_user_health(attacker) + get_pcvar_num(hp_za_kill)) // HP + podľa cvaru
         
set_hudmessage(00100, -1.00.2900.01.8// Umiestnenie HUD
         
ShowSyncHudMsg(attackerg_iHudSync"+%s HP"get_pcvar_num(hp_za_kill)) // HUD
         
cmd_fade(attacker// Efekt Obrazovky (modrý)
      
}
      if(
offonhpzahs[attacker])
      {
         if(
get_pdata_int(victim75) == HIT_HEAD && offonhpzahs[attacker]) // Ak hráč trafí hlavu (HS)
         
{
            
set_user_health(attackerget_user_health(attacker) + get_pcvar_num(hp_za_hs)) // HP + podľa cvaru
            
set_hudmessage(00100, -1.00.3100.01.8// Umiestnenie HUD
            
ShowSyncHudMsg(attackerg_iHudSync"+%s HP (HeadShot Bonus)"get_pcvar_num(hp_za_hs)) // HUD
            
cmd_fade(attacker// Efekt Obrazovky (modrý)
         
}
      }
      if(
get_user_health(attacker) > get_pcvar_num(hp_max)) // Ak má hráč viac HP ako cvar
      
{
         
set_user_health(attackerget_pcvar_num(hp_max)) // Nastaví HP podľa cvaru
      
}
      if(
read_data(2) == CSW_KNIFE// Ak ma hráč KNIFE
      
{
         
set_user_health(attackerget_user_health(attacker) + hp_za_knife_kill// HP + podľa cvaru
         
set_hudmessage(00100, -1.00.3100.01.8// Umiestnenie HUD
         
ShowSyncHudMsg(attackerg_iHudSync"+%s HP (Knife Kil)"hp_za_knife_kill// HUD
         
cmd_fade(attacker// Efekt Obrazovky (modrý)
      
}
      if(
read_data(2) == CSW_HEGRENADE)
      {
         
set_user_health(attackerget_user_health(attacker) + hp_za_he_kill// HP + podľa cvaru
         
set_hudmessage(00100, -1.00.3100.01.8// Umiestnenie HUD
         
ShowSyncHudMsg(attackerg_iHudSync"+%s HP (He Kil)"hp_za_he_kill// HUD
         
cmd_fade(attacker// Efekt Obrazovky (modrý)
      
}
   }


Last edited by Chronick; 04-01-2013 at 17:56.
Chronick is offline
Send a message via Skype™ to Chronick
 


Thread Tools
Display Modes

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 21:02.


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