Raised This Month: $ Target: $400
 0% 

Vampire bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 04-16-2009 , 07:11   Re: Vampire bug
Reply With Quote #9

Everythings fine, just that when an admin chooses the vampire function and kills someone, everyone in the server is given hp. How do I make it so only the admin would get hp.

PHP Code:
public death_event(id
{
    if(
get_user_flags(id) & ADMIN_ACCESS
    {
    new 
iKiller read_data(1);
    new 
iVictim read_data(2);
    
    if(
vampir_active[iKiller] && iKiller != iVictim)
    {
    
set_user_health(iKillerget_user_health(iKiller) + get_cvar_num("amx_vampir_hp"));
    
client_print(idprint_chat"%L"LANG_PLAYER"VAMPIRE"get_cvar_num("amx_vampir_hp"));
    
    
message_begin(MSG_ONEget_user_msgid("ScreenFade"), _iKiller);
    
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