Skip to content

Commit

Permalink
Update DeathGift.sma
Browse files Browse the repository at this point in the history
  • Loading branch information
ArKaNeMaN committed Mar 9, 2019
1 parent 44457cb commit d5e0150
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions DeathGift.sma
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ public plugin_init(){
}

cfgExec(){
new pCvars[cvars];
pCvars[cDropRarity] = create_cvar("awDgDropRarity", "0.1", FCVAR_NONE, "Редкость выпадения подарка");
pCvars[cLifeTime] = create_cvar("awDgLifeTime", "15", FCVAR_NONE, "Время жизни подарка (0 - бесконечно)");
pCvars[cMoneyMin] = create_cvar("awDgMoneyMin", "500", FCVAR_NONE, "Минимальная сумма получаемая за подарок");
pCvars[cMoneyMax] = create_cvar("awDgMoneyMax", "5000", FCVAR_NONE, "Максимальная сумма получаемая за подарок");
new pCvars[cvars], cvarDesc[128];
formatex(cvarDesc, charsmax(cvarDesc), "%L", LANG_SERVER, "CVAR_DROP_RARITY");
pCvars[cDropRarity] = create_cvar("awDgDropRarity", "0.1", FCVAR_NONE, cvarDesc);
formatex(cvarDesc, charsmax(cvarDesc), "%L", LANG_SERVER, "CVAR_LIFE_TIME");
pCvars[cLifeTime] = create_cvar("awDgLifeTime", "15", FCVAR_NONE, cvarDesc);
formatex(cvarDesc, charsmax(cvarDesc), "%L", LANG_SERVER, "CVAR_MONEY_MIN");
pCvars[cMoneyMin] = create_cvar("awDgMoneyMin", "500", FCVAR_NONE, cvarDesc);
formatex(cvarDesc, charsmax(cvarDesc), "%L", LANG_SERVER, "CVAR_MONEY_MAX");
pCvars[cMoneyMax] = create_cvar("awDgMoneyMax", "5000", FCVAR_NONE, cvarDesc);

bind_pcvar_float(pCvars[cDropRarity], dropRarity);
bind_pcvar_num(pCvars[cLifeTime], giftLifeTime);
Expand Down

0 comments on commit d5e0150

Please sign in to comment.