Raised This Month: $ Target: $400
 0% 

GUNGAME VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iff07
Junior Member
Join Date: Feb 2012
Old 02-14-2012 , 11:26   GUNGAME VIP
Reply With Quote #1

Looking for GUNGAME VIP plugin that contains:

- +20 hp per kill
- +40 hp per hs kill
- unlimited ammo clip
- bullet damage
- slot reservation

Does anyone can make it?

Last edited by iff07; 02-14-2012 at 11:27.
iff07 is offline
Lazor
Junior Member
Join Date: Feb 2012
Old 02-14-2012 , 11:37   Re: GUNGAME VIP
Reply With Quote #2

I have one
PM me.
Lazor is offline
naXe
BANNED
Join Date: May 2009
Location: Poland/Kwidzyn
Old 02-15-2012 , 14:28   Re: GUNGAME VIP
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta>

#define VIP ADMIN_LEVEL_H //vip flag T

new ammo[33], nKillernKiller_hpnHp_addnHp_maxg_MsgSync

public plugin_init() {
    
register_plugin("GG VIP""0.1""naXe")
    
RegisterHam(Ham_Spawn,"player","resp",1)
    
register_event("CurWeapon","cur_weapon","be""1=1")
    
register_event("DeathMsg""hook_death""a""1>0")
    
    
g_MsgSync CreateHudSyncObj()
}

public 
resp (id) {
    if(
get_user_flags(id) & VIP) {
        
ammo[id] = true
        set_user_clip
(id31)
    }
}

public 
cur_weapon(id) {
    if(
ammo[id]) {
        
set_user_clip(id31)
    }
}

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()
}

stock set_user_clip(idammo) {
    new 
weaponname[32], weaponid = -1weapon get_user_weapon(id__)
    
get_weaponname(weaponweaponname31)
    while ((
weaponid engfunc(EngFunc_FindEntityByStringweaponid"classname"weaponname)) != 0)
    if (
pev(weaponidpev_owner) == id) {
        
set_pdata_int(weaponid51ammo4)
        return 
weaponid
    
}
    return 
0

naXe is offline
Send a message via AIM to naXe
iff07
Junior Member
Join Date: Feb 2012
Old 02-15-2012 , 15:57   Re: GUNGAME VIP
Reply With Quote #4

oh, that's helpful. many thanks!
iff07 is offline
iff07
Junior Member
Join Date: Feb 2012
Old 02-16-2012 , 05:25   Re: GUNGAME VIP
Reply With Quote #5

Oh, i have second thougts, could you please remove unlimited ammo, i thought it's great but it makes vip too powerful and it's boring. I would be very greatful!
iff07 is offline
naXe
BANNED
Join Date: May 2009
Location: Poland/Kwidzyn
Old 02-16-2012 , 06:20   Re: GUNGAME VIP
Reply With Quote #6

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
iff07
Junior Member
Join Date: Feb 2012
Old 02-16-2012 , 08:23   Re: GUNGAME VIP
Reply With Quote #7

Thanks a lot, again!
iff07 is offline
Reply



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