Raised This Month: $ Target: $400
 0% 

GUNGAME VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
naXe
BANNED
Join Date: May 2009
Location: Poland/Kwidzyn
Old 02-16-2012 , 06:20   Re: GUNGAME VIP
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fun>

#define VIP ADMIN_LEVEL_H //vip flag T

new nKillernKiller_hpnHp_addnHp_maxg_MsgSync

public plugin_init() {
    
register_plugin("GG VIP""0.1""naXe")
    
register_event("DeathMsg""hook_death""a""1>0")
    
    
g_MsgSync CreateHudSyncObj()
}

public 
bullet(id) {
    new 
attacker get_user_attacker(id)
    if (
is_user_connected(id) && is_user_connected(attacker) && get_user_flags(attacker) & VIP) {
        new 
damage read_data(2)

        
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1)
        
ShowSyncHudMsg(attackerg_MsgSync"%i^n"damage)
    }
}

public 
hook_death() {
    
nKiller read_data(1)
    if ((
read_data(3) == 1) && (read_data(5) == 0)) {
        
nHp_add 40
    
} else
        
nHp_add 20
        nHp_max 
150
    
if(!(get_user_flags(nKiller) & VIP))
        return

    
nKiller_hp get_user_health(nKiller)
    
nKiller_hp += nHp_add
    
if (nKiller_hp nHp_maxnKiller_hp nHp_max
        set_user_health
(nKillernKiller_hp)

    
set_hudmessage(02550, -1.00.1501.01.00.10.1, -1)
    
show_hudmessage(nKiller"Healed +%d hp"nHp_add)
    
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, nKiller)
    
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()

naXe is offline
Send a message via AIM to naXe
Reply


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 09:51.


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