AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   hp + money per kill for vip (https://forums.alliedmods.net/showthread.php?t=324426)

legendxd 05-15-2020 22:39

hp + money per kill for vip
 
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

Supremache 05-16-2020 03:17

Re: hp + money per kill for vip
 
Quote:

Originally Posted by legendxd (Post 2700428)
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]")
    }




Supremache 05-16-2020 04:30

Re: hp + money per kill for vip
 
Quote:

Originally Posted by legendxd (Post 2700428)
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);
    }




legendxd 05-16-2020 10:41

Re: hp + money per kill for vip
 
thank's man


All times are GMT -4. The time now is 00:17.

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