Raised This Month: $ Target: $400
 0% 

Bonus money for killing a player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
impossible89
Member
Join Date: Jun 2020
Old 12-28-2020 , 16:23   Bonus money for killing a player
Reply With Quote #1

Will anyone be able to insert an additional $ bonus to this plugin!

what are these bonuses:

With the start of the new round, the players from the terrorist team at Spawn in which the bomb falls to show him that he received $ 500 - Bonus!

The next bonus should be for each kill of a player - the player should receive a certain amount of money by writing in the chat that he receives a bonus for each subsequent kill so that the message is visible only to the player who makes killovete!

Example:

1 Frags -> Receives $ 200 and writes in the chat that he has received a bonus as set with the other bonuses in the plugin

2 Frags -> Receives $ 300

3 Frags -> Receives $ 400

4 Frags -> Receives $ 500

5 Frags -> Gets $ 600

6 Frags -> Gets $ 700

7 Frags -> Gets $ 800

8 Frags -> Gets $ 900

9 Frags -> Gets $ 1000

https://dox.abv.bg/download?id=d5089514b2#

Last edited by impossible89; 12-28-2020 at 16:24.
impossible89 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-28-2020 , 21:16   Re: Bonus money for killing a player
Reply With Quote #2

untested

PHP Code:
/* Sublime AMXX Editor v2.2 */

#pragma semicolon 1

#include <amxmodx>
// #include <amxmisc>
#include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "Bonus $$$"
#define VERSION "1.0"
#define AUTHOR  "NapoleoN#"

#if !defined MAX_PLAYERS
    
const MAX_PLAYERS 32;
#endif

new iFrags[MAX_PLAYERS 1];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("DeathMsg""eDeath""a");
    
register_logevent("eRoundEnd"2"1=Round_End");
}

#if AMXX_VERSION_NUM < 183
public client_disconnect(id)
#else
public client_disconnected(id)
#endif
{
    
iFrags[id] = 0;
}

public 
eDeath()
{
    new 
iKiller read_data(1);
    new 
iVictim read_data(2);

    if(
is_user_connected(iKiller) && <= iKiller <= MAX_PLAYERS)
    {
        if(
iKiller != iVictim && get_user_team(iKiller) != get_user_team(iVictim))
        {
            new 
iFirstReward 200;
            new 
iRewardAddition 100;
            new 
iNextReward iFirstReward iRewardAddition;

            new 
iCurrentMoney cs_get_user_money(iKiller);

            switch(
iFrags[iKiller]++)
            {
                case 
1cs_set_user_money(iKilleriCurrentMoney iFirstReward);
                default: 
cs_set_user_money(iKilleriCurrentMoney iNextReward);
            }

            
client_print(iKillerprint_chat"[BONUS] %i$"iFrags[iKiller] != iNextReward iFirstReward);
        }
    }
}

public 
eRoundEnd()
{
    new 
iPlayers[MAX_PLAYERS], iNum;
    
get_players(iPlayersiNum);

    for(new 
iiNumi++)
    {
        
iFrags[iPlayers[i]] = 0;
    }

__________________

Last edited by Napoleon_be; 12-28-2020 at 21:21.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
impossible89
Member
Join Date: Jun 2020
Old 12-29-2020 , 01:19   Re: Bonus money for killing a player
Reply With Quote #3

I want additional bonuses to be inserted in the plugin attached to Dox.bg, there is also a data / lang / txt file inside
impossible89 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-29-2020 , 19:04   Re: Bonus money for killing a player
Reply With Quote #4

Tbh, i cba merching codes...
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 12:11.


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