Raised This Month: $ Target: $400
 0% 

Vampire bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 04-15-2009 , 09:30   Vampire bug
Reply With Quote #1

Whats wrong here? When I kill an opponent I am given hp and shown the specified effect, but when I get killed myself the same happens.. How could I fix that?

PHP Code:
public death_event(id)
{

    if(
get_user_flags(id) & ADMIN_ACCESS)
    {
    new 
killer read_data(1)
    if(
vampir_active[killer] == 1)
    {
    
set_user_health(killerget_user_health(killer)+get_cvar_num("amx_vampire_hp"))
    
client_print(killerprint_chat"%L"LANG_PLAYER"VAMPIRE"get_cvar_num("amx_vampire_hp"))
  
    
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, killer)
    
write_short(1<<10)
    
write_short(1<<10
    
write_short(0x0000)
    
write_byte(0)
    
write_byte(0)
    
write_byte(200)
    
write_byte(75)
    
message_end()
    }
    }

Debesėlis 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 02:28.


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