AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   VIP Kill (https://forums.alliedmods.net/showthread.php?t=212373)

Chronick 04-01-2013 17:54

VIP Kill
 
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ý)
      
}
   }



Chronick 04-02-2013 15:48

Re: VIP Kill
 
No one knows?

Leon M. 04-03-2013 04:46

Re: VIP Kill
 
And what is your problem? o.O

Omik 04-03-2013 05:17

Re: VIP Kill
 
You read it??.. He wrote: "When VIP(or normall) killed normal player or too VIP, Server/or plugin (he dont know) killed second player (Killer)...you can see on the picture under LINK.

Podarok 04-03-2013 05:29

Re: VIP Kill
 
Quote:

Originally Posted by Omik (Post 1925434)
You read it??.. He wrote: "When VIP(or normall) killed normal player or too VIP, Server/or plugin (he dont know) killed second player (Killer)...you can see on the picture under LINK.

He didnt say anything and I still can't understand what you need.. You come here to get help, so respect others, kid.

Unkolix 04-03-2013 08:16

Re: VIP Kill
 
Quote:

Originally Posted by fysiks (Post 1925385)
Debug your server. Disable all 3rd part plugins and test it. If it fixes it then you add them back one by one until you find it.


Chronick 04-03-2013 09:26

Re: VIP Kill
 
Screen Shot - Click Here !

When I have a VIP, and kill the second player or VIP, so it kills me first, and then the player ..

wickedd 04-03-2013 12:54

Re: VIP Kill
 
1.There's no need to post like that, we are not blind.
2.Instead of posting a screen shot, try explaining what the problem is.

Chronick 04-03-2013 15:46

Re: VIP Kill
 
I am writing this after 3 times. When I VIP and kill VIP or player so it will kill me first, and then the player as per ss

Sn!ff3r 04-03-2013 15:52

Re: VIP Kill
 
Upper right corner of the screenshot ;)


All times are GMT -4. The time now is 21:02.

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