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;
}