Raised This Month: $32 Target: $400
 8% 

the plugin has been working since round 3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jonny1990
Senior Member
Join Date: Apr 2020
Old 04-13-2020 , 14:47   the plugin has been working since round 3
Reply With Quote #1

Guys please make sure that bonuses fall out from the 3rd round

Code:
#include <amxmodx>
#include < fakemeta >
#include <gamecms_present>
#include <fun>
#include <cstrike>
#include <colorchat>
#include <reapi>


public OnPresentCoreStopped()
    pause("d");
   
public plugin_cfg()
{
    CmsAddPresent(300, "weapon АК-47", -1, 0, 0, "weapon");
    CmsAddPresent(301, "weapon M4A1", -1, 0, 0, "weapon");
    CmsAddPresent(302, "weapon 1000$", -1, 0, 0, "weapon");
    CmsAddPresent(303, "weapon AWP", -1, 0, 0, "weapon");
    //и т.д...
}


public OnTakePresent(id, itemId, iEntity)
{
    switch(itemId)
    {
        case 300:
        {
            if(rg_give_item(id, "weapon_ak47", GT_DROP_AND_REPLACE))
            {
                rg_set_user_bpammo(id, CSW_AK47, 90);
                ColorChat(id, print_chat, "^4[server] ^1you got it AK47")
                return 2;
            }
        }
        case 301:
        {
            if(rg_give_item(id, "weapon_m4a1", GT_DROP_AND_REPLACE))
            {
                rg_set_user_bpammo(id, CSW_M4A1, 90);
                ColorChat(id, print_chat, "^4[server] ^1you got it M16")
                return 2;
            }
        }
        case 302:
        {
               cs_set_user_money(id, min(cs_get_user_money(id) + 1000, 16000));
               ColorChat(id, print_chat, "^4[server] ^1you got it")
               return 2;
        }
        case 303:
        {
            if(rg_give_item(id, "weapon_awp", GT_DROP_AND_REPLACE))
            {
                rg_set_user_bpammo(id, CSW_AWP, 90);
                ColorChat(id, print_chat, "^4[server] ^1you got it AWP")
                return 2;
        }

    }
 
    return PLUGIN_CONTINUE;
}
jonny1990 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 18:18.


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