Raised This Month: $ Target: $400
 0% 

Vampire bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-15-2009 , 10:17   Re: Vampire bug
Reply With Quote #5

PHP Code:
public death_event( ) {
    if( 
get_user_flagsid ) & ADMIN_ACCESS ) {
        new 
iKiller read_data);
        new 
iVictim read_data);
        
        if( 
vampir_active[killer] && iKiller != iVictim ) {
            
set_user_health(iKillerget_user_health(iKiller)+get_cvar_num("amx_vampire_hp"));
            
client_print(iKillerprint_chat"%L"iKiller"VAMPIRE"get_cvar_num("amx_vampire_hp"));

            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("ScreenFade"), _iKiller);
            
write_short(1<<10);
            
write_short(1<<10);
            
write_short(FFADE_IN);
            
write_byte(0);
            
write_byte(0);
            
write_byte(200);
            
write_byte(75);
            
message_end();
        }
    }

__________________

Last edited by xPaw; 04-16-2009 at 08:05.
xPaw 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