Raised This Month: $9 Target: $400
 2% 

hp + money per kill for vip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
legendxd
Junior Member
Join Date: Mar 2020
Old 05-15-2020 , 23:39   hp + money per kill for vip
Reply With Quote #1

hello , i need plugin for ct vips . If the vip ct kills one zm , he gets + 15 health and + 1500 money
and a hud message in right [15HP+1500Money]
access ADMIN_LEVEL_H
legendxd is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-16-2020 , 04:17   Re: hp + money per kill for vip
Reply With Quote #2

Quote:
Originally Posted by legendxd View Post
hello , i need plugin for ct vips . If the vip ct kills one zm , he gets + 15 health and + 1500 money
and a hud message in right [15HP+1500Money]
access ADMIN_LEVEL_H
PHP Code:
#include < amxmodx >
#include < fun >
#include < cstrike >


public plugin_init( )
{
 
register_plugin"VIP Bonus""1.1""MrAbdoO" );
 
register_event"DeathMsg""EV_DeathMsg""a" );

}

public 
EV_DeathMsg( ) {

    new 
idKiller read_data);
    
    if (
get_user_flagsidKiller ) & ADMIN_LEVEL_H  && cs_get_user_team(idKiller) == CS_TEAM_CT)
    {
        
cs_set_user_moneyidKillercs_get_user_moneyidKiller ) + 1500 );
        
set_user_healthidKillerget_user_healthidKiller ) + 15 );
        
        
set_hudmessage(02552550.55, -1.006.06.0)
        
show_hudmessage(idKiller"[15 HP + 1500 Money]")
    }



Last edited by Supremache; 05-16-2020 at 05:17.
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-16-2020 , 05:30   Re: hp + money per kill for vip
Reply With Quote #3

Quote:
Originally Posted by legendxd View Post
hello , i need plugin for ct vips . If the vip ct kills one zm , he gets + 15 health and + 1500 money
and a hud message in right [15HP+1500Money]
access ADMIN_LEVEL_H
Another one

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

new szKillHealthszKillMoney;

public 
plugin_init( ) {
    
register_plugin"VIP Bonus""1.2""MrAbdoO" );
    
register_event"DeathMsg""EV_DeathMsg""a" );
    
szKillHealth    register_cvar("amx_killhp""15");
    
szKillMoney     register_cvar("amx_killmoney""1500");
}

public 
EV_DeathMsg( ) {

    new 
idKiller read_data);
    
    if (
get_user_flagsidKiller ) & ADMIN_LEVEL_H  && cs_get_user_team(idKiller) == CS_TEAM_CT)
    {
        
set_user_health(idKillerget_pcvar_num(szKillHealth));
        
cs_set_user_moneyidKillerget_pcvar_num(szKillMoney));
        
        
set_hudmessage(02552550.55, -1.006.06.0);
        
show_hudmessage(idKiller"[ %s HP + %s Money]"szKillHealthszKillMoney);
    }



Last edited by Supremache; 05-16-2020 at 08:16.
Supremache is offline
legendxd
Junior Member
Join Date: Mar 2020
Old 05-16-2020 , 11:41   Re: hp + money per kill for vip
Reply With Quote #4

thank's man
legendxd is offline
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 10:26.


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