dfgsdfghsdfhsdfh
Пользователь
- Регистрация
- 4 Май 2019
- Сообщения
- 36
- Симпатии
- 0
Спойлеры используйте
- OS
- Linux
- Amx Mod X
- AMXX 1.9.0
- Билд
- Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) ReHLDS version: 3.7.0.692-dev Build date: 18:58:01 Sep 21 2019 (1988) Build from: https://github.com/dreamstalker/rehlds/commit/e7232be
- ReGamedll
- ReGameDLL version: 5.13.0.447-dev+m Build date: 18:11:04 Jan 15 2020 Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/2eba3b1
- Metamod
- Metamod-r v1.3.0.128, API (5:13) Metamod-r build: 17:47:54 Aug 24 2018 Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Meta модули
-
Код:Currently loaded plugins:
description stat pend file vers src load unload
[ 1] VoiceTranscoder RUN - vtc.so v2017RC4 ini ANY
[ 2] AMX Mod X RUN - amxmodx.so v1.9.0.5263 ini Start ANY
[ 3] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 4] Reunion RUN - reunion.so v0.1.0.92c ini Start Never
[ 5] Revoice RUN - revoice.so v0.1.0.33 ini Start Never
[ 6] SafeNameAndChat RUN - safenameandchat.so v1.1 ini ANY
[ 7] WHBlocker RUN - whblocker.so v1.5.696 ini ANY
[ 8] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 9] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl2 ANY
[10] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl2 ANY Never
[11] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[12] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[15] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
15 plugins, 15 running
- Плагины
-
Код:Currently loaded plugins:
name version author file status
[ 1] Admin Loader v3.5 neygomon admin_loader.am running
[ 2] FreshBans v1.4.2b kanagava fresh_bans.amxx running
[ 3] Admin Chat v1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 4] Admin Commands v1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 5] Commands Menu v1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 6] Info. Messages v1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 7] Menus Front-End v1.9.0.5263 AMXX Dev Team menufront.amxx running
[ 8] Maps Menu v1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 9] NextMap v1.9.0.5263 AMXX Dev Team nextmap.amxx running
[ 10] Nextmap Chooser v1.9.0.5263 AMXX Dev Team mapchooser.amxx running
[ 11] Players Menu v1.9.0.5263 AMXX Dev Team plmenu.amxx running
[ 12] Plugin Menu v1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 13] Restrict Weapons v1.9.0.5263 AMXX Dev Team restmenu.amxx running
[ 14] TimeLeft v1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 15] Scrolling Message v1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 16] Admin Votes v1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 17] CS Misc. Stats v1.9.0.5263 AMXX Dev Team miscstats.amxx running
[ 18] CS Stats Logging v1.9.0.5263 AMXX Dev Team stats_logging.a running
[ 19] Stats Configuration v1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 20] Admin Voice Chat v0.2 mx?! admin_voice_cha running
[ 21] Whose the weapon? v2.1 Yek'-ta whose_the_weapo running
[ 22] WeaponBox FadeOut Effe v0.3 GordonFreeman & weaponbox_effec running
[ 23] Team Select v1.5.0 F@nt0M team_select.amx running
[ 24] [ReAPI] Hint blocker v0.1.0 F@tn0M reapi_hint_bloc running
[ 25] [ReAPI] Silly C4 v2.0 F@ntoM & Cheap_S silly_c4.amxx running
[ 26] Sale Weapons v1.1 MakapoH. sale_weapons.am running
[ 27] Parachute for ALL [ReA v3.0 Leo_[BH] parachute_for_a running
[ 28] [ReAPI] No Team Flash v0.0.3 Vaqtincha no_team_flash.a running
[ 29] Money Rewards v1.0.1 the_hunter money_rewards.a running
[ 30] Change Game Name v1.2 ReHLDS Team change_game_nam running
[ 31] Money Limit v0.1 mx?! money_limit.amx running
[ 32] Admin Money v0.9.3 f117bomb admin_money.amx running
[ 33] [ReAPI] No Reset MOney v0.0.5 Vaqtincha reapi1_no_reset running
[ 34] [ReAPI] Kill Rewards v0.0.3 Vaqtincha reapi1_kill1_re running
[ 35] Killer ScreenFade v0.0.5 Vaqtincha reapi_killer_sc running
[ 36] Invisible Spectator v1.0 ReHLDS Team invisible_spect running
[ 37] [reAPI] Flash Control v1.1 neugomon flash_control.a running
[ 38] Drop Pistols on Death v0.0.4 Vaqtincha reapi_dead_pist running
[ 39] Shop v1.1b neygomon cs_shop.amxx running
[ 40] Golden AK-47 & M4A1 v1.2a neygomon golden_ak_and_m running
[ 41] Bomb pickup on use v1.0.1 voed use_bomb_pickup running
[ 42] [ReAPI] Block Fire in v3.1.0 F@nt0M reapi_block_fit running
[ 43] Demo Recorder v2.4.1 F@nt0M demo_recorder.a running
[ 44] Announcer Killstreak v2.1 Jumper & mx?! Announcer_Kills running
[ 45] Advanced Kill Assists v1.0 Xelson next21_kill_ass running
[ 46] Donate money v0.1 Sanlerus \ di.al donate_money.am running
[ 47] FM ResetScore v0.1 neygomon fm_resetscore.a running
[ 48] C4 Timer on roundtime v0.3.3a neygomon c4_timer_on_rou running
48 plugins, 48 running
- Amxx Модули
-
Код:Список загруженных модулей:
Наименовани верси Автор Состо
CStrike 1.9.0.5263 AMX Mod X Dev Team running
CSX 1.9.0.5263 AMX Mod X Dev Team running
ReAPI 5.12.0.192 Asmodai & s1lent running
FakeMeta 1.9.0.5263 AMX Mod X Dev Team running
MySQL 1.9.0.5263 AMX Mod X Dev Team running
Engine 1.9.0.5263 AMX Mod X Dev Team running
Ham Sandwich 1.9.0.5263 AMX Mod X Dev Team running
Fun 1.9.0.5263 AMX Mod X Dev Team running
nVault 1.9.0.5263 AMX Mod X Dev Team running
Всего 9 модулей
- Ошибка
-
Код:Нету ошибки
- Исходник
-
Код:#include <amxmodx>
#include <csx>
#include <fakemeta>
#include <hamsandwich>
#include <sqlx>
#if AMXX_VERSION_NUM < 183
#include <colorchat>
#endif
#pragma semicolon 1
#define CHAT_PREFIX "^1[^4Магазин^1]" // Префикс в чате
#define SYS_MONEY 95 // Сколько давать сис денег за убийства/установку/дифуз бмб
/* Стоимость плюшек */
#define COAST_AK47 10000 // стоимость голд АК
#define COAST_M4A1 10000 // стоимость голд м4а1
#define COAST_UAMMO 7000 // стоимость анлим аммо
#define COAST_HP 4000 // стоимость 95HP
#define COAST_HSPEED 8000 // стоимость высокой скорости
#define COAST_LGRAV 8000 // стоимость низкой гравитации
#define get_bit(%1,%2) (%1 & (1 << (%2 & 31)))
#define set_bit(%1,%2) %1 |= (1 << (%2 & 31))
#define clr_bit(%1,%2) %1 &= ~(1 << (%2 & 31))
16000
#define is_user_valid(%1) (1 <= %1 <= 32)
new const MAXCLIP[] = { -1, 13, -1, 10, -1, 7, -1, 30, 30, -1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, -1, 7, 30, 30, -1, 50 };
enum _:ques { INSTALL_PLUGIN, LOAD_CASH, SAVE_CASH, INSERT_CASH };
enum DATA { STATUSLOAD, STEAMID[24], SYSMONEY, CASHBACK };
new Handle:g_sql, data[2], szQuery[512];
new g_iPlayerData[33][DATA], iIgnoreClient;
new iBuyShop, iUseUnlimAmmo, iUseLowGravity, iUseHighSpeed;
new iMainMenu, iBankMenu;
new const szMainItemName[][] = { "Gold AK-47", "Dragon Lore M4A1", "Бесконечные потроны", "+30HP", "Повышеная скорость", "Пониженая гравитация" };
new const szMainItemCoast[][] = { COAST_AK47, COAST_M4A1, COAST_UAMMO, COAST_HP, COAST_HSPEED, COAST_LGRAV };
new fwd, ret;
public plugin_init()
{
#define VERSION "1.1b"
register_plugin("Shop", VERSION, "neygomon");
register_cvar("sp_neygomon", VERSION, FCVAR_SERVER | FCVAR_SPONLY);
register_clcmd("say /shop", "clcmd_Shop");
register_clcmd("say_team /shop", "clcmd_Shop");
// register_clcmd("say /bank", "clcmd_Bank");
// register_clcmd("say_team /bank", "clcmd_Bank");
register_clcmd("say /money", "clcmd_Money");
register_clcmd("say_team /money", "clcmd_Money");
// register_clcmd("say /credit", "clcmd_Credit");
// register_clcmd("say_team /credit", "clcmd_Credit");
register_clcmd("say /help", "clcmd_Help");
register_clcmd("say_team /help", "clcmd_Help");
register_event("CurWeapon", "UnlimAmmo", "be", "1=1");
RegisterHam(Ham_Killed, "player", "fwd_PlrKilled", true);
fwd = CreateMultiForward("shop_weapons", ET_IGNORE, FP_CELL, FP_CELL);
}
public plugin_cfg()
{
set_task(1.5, "SQL_Init");
iMainMenu = menu_create("MAIN_MENU", "menu_handler");
iBankMenu = menu_create("BANK_MENU", "bankmenu_handler");
menu_setprop(iMainMenu, MPROP_EXITNAME, "Выход");
menu_setprop(iBankMenu, MPROP_EXITNAME, "Выход");
new strItem[64];
for(new i; i < sizeof(szMainItemName); i++)
{
formatex(strItem, charsmax(strItem), "%s \d[\r%d\y$\d]", szMainItemName, szMainItemCoast);
menu_additem(iMainMenu, strItem);
}
menu_additem(iBankMenu, "+1000 cash", "1000");
menu_additem(iBankMenu, "+3000 cash", "3000");
menu_additem(iBankMenu, "+5000 cash", "5000");
}
public client_putinserver(id)
{
if(is_user_bot(id) || is_user_hltv(id))
{
set_bit(iIgnoreClient, id);
return;
}
Load_Money(id);
}
public client_disconnect(id)
{
if(get_bit(iIgnoreClient, id))
{
clr_bit(iIgnoreClient, id);
return;
}
if(get_bit(iBuyShop, id))
{
clr_bit(iBuyShop, id);
clr_bit(iUseUnlimAmmo, id);
clr_bit(iUseLowGravity, id);
clr_bit(iUseHighSpeed, id);
}
Save_Money(id);
}
public bomb_planted(planter)
OpersMoney(planter);
public bomb_defused(defuser)
OpersMoney(defuser);
public fwd_PlrKilled(iVictim, iKiller)
{
if(!is_user_valid(iKiller) || iVictim == iKiller) return;
OpersMoney(iKiller);
if(get_bit(iBuyShop, iVictim))
{
clr_bit(iBuyShop, iVictim);
if(get_bit(iUseUnlimAmmo, iVictim))
clr_bit(iUseUnlimAmmo, iVictim);
if(get_bit(iUseLowGravity, iVictim))
{
clr_bit(iUseLowGravity, iVictim);
set_pev(iVictim, pev_gravity, 0.0);
}
if(get_bit(iUseHighSpeed, iVictim))
{
clr_bit(iUseHighSpeed, iVictim);
ExecuteHam(Ham_Item_PreFrame, iVictim);
}
}
}
public UnlimAmmo(id)
{
if(get_bit(iUseUnlimAmmo, id))
{
static pAmmo, pWeapon; get_user_weapon(id, pAmmo);
if(pAmmo < 3)
{
pWeapon = get_pdata_cbase(id, 373);
set_pdata_int(pWeapon, 51, MAXCLIP[get_pdata_int(pWeapon, 43, 4)]);
}
}
}
public clcmd_Shop(id)
{
if(!is_user_alive(id))
return client_print_color(id, 0, "%s ^4Магазин ^3недоступен^4! Вы мертвы!", CHAT_PREFIX);
Func_Menu(id);
return PLUGIN_HANDLED;
}
public clcmd_Bank(id)
{
if(g_iPlayerData[id][CASHBACK])
return client_print_color(id, 0, "%s ^4Вы не вернули свой старый долг! Осталось вернуть ^3%d$^4. Используйте команду ^3/credit", CHAT_PREFIX, g_iPlayerData[id][CASHBACK]);
Bank_Menu(id);
return PLUGIN_HANDLED;
}
public clcmd_Money(id)
{
client_print_color(id, 0, "%s ^4На вашем кошельке ^3%d ^4серебра", CHAT_PREFIX, g_iPlayerData[id][SYSMONEY]);
return PLUGIN_HANDLED;
}
public clcmd_Credit(id)
{
if(g_iPlayerData[id][CASHBACK])
{
if(g_iPlayerData[id][SYSMONEY] - g_iPlayerData[id][CASHBACK] >= 0)
{
g_iPlayerData[id][SYSMONEY] -= g_iPlayerData[id][CASHBACK];
g_iPlayerData[id][CASHBACK] = 0;
client_print_color(id, 0, "%s ^4Вы вернули Ваш долг. Спасибо!", CHAT_PREFIX);
}
else
{
g_iPlayerData[id][CASHBACK] -= g_iPlayerData[id][SYSMONEY];
client_print_color(id, 0, "%s ^4Вы вернули часть Вашего долга. Осталось вернуть ^3%d$", CHAT_PREFIX, g_iPlayerData[id][CASHBACK]);
}
} else client_print_color(id, 0, "%s ^4У Вас нет долгов. ^3Радуйтесь ", CHAT_PREFIX);
return PLUGIN_HANDLED;
}
public clcmd_Help(id)
{
static const szMessages[][] =
{
"^1Доступные команды: ^3/shop^4, ^3/bank^4, ^3/money^4, ^3/credit",
"^4Команда ^3/shop ^4откроет перед Вами магазин доп возможностей. Весь товар действует ^3до смерти",
// "^4Команда ^3/bank ^4позволяет взять ^1в долг ^4некую сумму денег для покупки возможностей в магазине",
"^4Команда ^3/money ^4позволяет узнать Ваш капитал для использования его в нашем магазине",
// "^4Команда ^3/credit ^4позволяет вернуть часть или весь долг, если Вы брали деньги в банке"
};
for(new i; i < sizeof szMessages; i++)
client_print_color(id, 0, "%s %s", CHAT_PREFIX, szMessages);
return PLUGIN_HANDLED;
}
Func_Menu(id)
{
static szStrMenuName[64]; formatex(szStrMenuName, charsmax(szStrMenuName), "\d[\rМагазин\d] \wНа вашем кошельке \r%d\w кредит", g_iPlayerData[id][SYSMONEY]);
menu_setprop(iMainMenu, MPROP_TITLE, szStrMenuName);
return menu_display(id, iMainMenu);
}
public menu_handler(id, menu, item)
{
switch(item)
{
case MENU_EXIT: return PLUGIN_HANDLED;
case 0:
{
// COAST_AK47
if(g_iPlayerData[id][SYSMONEY] < COAST_AK47)
return client_print_color(id, 0, "%s ^4У Вас ^3недостаточно ^4денег!", CHAT_PREFIX);
g_iPlayerData[id][SYSMONEY] -= COAST_AK47;
ExecuteForward(fwd, ret, id, 1);
client_print_color(id, 0, "%s ^4Вы купили ^3Золотой AK-47^4!", CHAT_PREFIX);
}
case 1:
{
// COAST_M4A1
if(g_iPlayerData[id][SYSMONEY] < COAST_M4A1)
return client_print_color(id, 0, "%s ^4У Вас ^3недостаточно ^4денег!", CHAT_PREFIX);
g_iPlayerData[id][SYSMONEY] -= COAST_M4A1;
ExecuteForward(fwd, ret, id, 2);
client_print_color(id, 0, "%s ^4Вы купили ^3Dragon Lore M4A1^4!", CHAT_PREFIX);
}
case 2:
{
if(g_iPlayerData[id][SYSMONEY] < COAST_UAMMO)
return client_print_color(id, 0, "%s ^4У Вас ^3недостаточно ^4денег!", CHAT_PREFIX);
g_iPlayerData[id][SYSMONEY] -= COAST_UAMMO;
set_bit(iUseUnlimAmmo, id);
client_print_color(id, 0, "%s ^4Вы купили ^3бесконечные патроны^4!", CHAT_PREFIX);
}
case 3:
{
if(g_iPlayerData[id][SYSMONEY] < COAST_HP)
return client_print_color(id, 0, "%s ^4У Вас ^3недостаточно ^4денег!", CHAT_PREFIX);
g_iPlayerData[id][SYSMONEY] -= COAST_HP;
set_pev(id, pev_health, pev(id, pev_health) + 30.0);
client_print_color(id, 0, "%s ^4Вы купили ^3+30HP^4!", CHAT_PREFIX);
}
case 4:
{
if(g_iPlayerData[id][SYSMONEY] < COAST_HSPEED)
return client_print_color(id, 0, "%s ^4У Вас ^3недостаточно ^4денег!", CHAT_PREFIX);
g_iPlayerData[id][SYSMONEY] -= COAST_HSPEED;
set_bit(iUseHighSpeed, id);
set_pev(id, pev_maxspeed, 420.0);
client_print_color(id, 0, "%s ^4Вы купили ^3высокую скорость^4!", CHAT_PREFIX);
}
case 5:
{
if(g_iPlayerData[id][SYSMONEY] < COAST_LGRAV)
return client_print_color(id, 0, "%s ^4У Вас ^3недостаточно ^4денег!", CHAT_PREFIX);
g_iPlayerData[id][SYSMONEY] -= COAST_LGRAV;
set_bit(iUseLowGravity, id);
set_pev(id, pev_gravity, 0.4);
client_print_color(id, 0, "%s ^4Вы купили ^3низкую гравитацию^4!", CHAT_PREFIX);
}
}
return set_bit(iBuyShop, id);
}
Bank_Menu(id)
{
static szStrTitle[64]; formatex(szStrTitle, charsmax(szStrTitle), "\d[\rBank\d] \wНа вашем кошельке \r%d\w кредит", g_iPlayerData[id][SYSMONEY]);
menu_setprop(iBankMenu, MPROP_TITLE, szStrTitle);
return menu_display(id, iBankMenu);
}
public bankmenu_handler(id, menu, item)
{
if(item == MENU_EXIT) return PLUGIN_HANDLED;
static _access, item_num[5], callback, addmoney;
menu_item_getinfo(menu, item, _access, item_num, charsmax(item_num), _, _, callback);
addmoney = str_to_num(item_num);
g_iPlayerData[id][SYSMONEY] += addmoney;
g_iPlayerData[id][CASHBACK] = addmoney;
return client_print_color(id, 0, "%s ^4Вы взяли ^1в кредит ^3%d$^4!", CHAT_PREFIX, addmoney);
}
public SQL_Init()
{
new g_SqlHost[32], g_SqlUser[32], g_SqlPass[32], g_SqlDb[32];
get_cvar_string("amx_sql_host", g_SqlHost, charsmax(g_SqlHost));
get_cvar_string("amx_sql_user", g_SqlUser, charsmax(g_SqlUser));
get_cvar_string("amx_sql_pass", g_SqlPass, charsmax(g_SqlPass));
get_cvar_string("amx_sql_db", g_SqlDb, charsmax(g_SqlDb));
g_sql = SQL_MakeDbTuple(g_SqlHost, g_SqlUser, g_SqlPass, g_SqlDb);
if(g_sql == Empty_Handle)
set_fail_state("unable to create SQL handler");
new err, error[256];
new Handle:g_checksql = SQL_Connect(g_sql, err, error, 255);
if(g_checksql == Empty_Handle)
{
log_amx("failed to connect to MySQL database");
log_amx("[ %d ] %s", err, error);
set_fail_state("mysql connection failed");
}
SQL_FreeHandle(g_checksql);
InstallPlugin();
}
public SQL_Handler(failstate, Handle:que, err[], errcode, data[], datasize)
{
switch(failstate)
{
case TQUERY_CONNECT_FAILED:
{
log_amx("MySQL connection failed");
log_amx("[ %d ] %s",errcode, err);
log_amx("Query state: %d", data[0]);
return PLUGIN_CONTINUE;
}
case TQUERY_QUERY_FAILED:
{
log_amx("MySQL query failed");
log_amx("[ %d ] %s", errcode, err);
log_amx("Query state: %d", data[0]);
return PLUGIN_CONTINUE;
}
}
new id = data[1];
switch(data[0])
{
case LOAD_CASH:
{
if(SQL_NumResults(que) <= 0)
{
g_iPlayerData[id][STATUSLOAD] = 2;
return PLUGIN_CONTINUE;
}
g_iPlayerData[id][SYSMONEY] = SQL_ReadResult(que, 0);
g_iPlayerData[id][CASHBACK] = SQL_ReadResult(que, 1);
g_iPlayerData[id][STATUSLOAD] = 1;
}
case INSERT_CASH:
{
if(SQL_AffectedRows(que) > 0)
g_iPlayerData[id][STATUSLOAD] = 1;
}
case INSTALL_PLUGIN, SAVE_CASH: { }
}
return PLUGIN_CONTINUE;
}
InstallPlugin()
{
data[0] = INSTALL_PLUGIN;
formatex(szQuery, 511, "CREATE TABLE IF NOT EXISTS `cs_shop` ( `steamid` varchar(25) DEFAULT NULL, `cash` int(5) DEFAULT NULL, `credit` int(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
SQL_ThreadQuery(g_sql, "SQL_Handler", szQuery, data, 2);
}
Load_Money(id)
{
data[0] = LOAD_CASH; data[1] = id;
get_user_authid(id, g_iPlayerData[id][STEAMID], charsmax(g_iPlayerData[][STEAMID]));
formatex(szQuery, 511, "SELECT `cash`, `credit` FROM `cs_shop` WHERE `steamid` = '%s'", g_iPlayerData[id][STEAMID]);
SQL_ThreadQuery(g_sql, "SQL_Handler", szQuery, data, 2);
}
Save_Money(id)
{
switch(g_iPlayerData[id][STATUSLOAD])
{
case 1:
{
data[0] = SAVE_CASH;
formatex(szQuery, 511, "UPDATE `cs_shop` SET `cash` = '%d', `credit` = '%d' WHERE `steamid` = '%s'", g_iPlayerData[id][SYSMONEY], g_iPlayerData[id][CASHBACK], g_iPlayerData[id][STEAMID]);
}
case 2:
{
data[0] = INSERT_CASH;
formatex(szQuery, 511, "INSERT INTO `cs_shop` (`steamid`, `cash`, `credit` ) VALUES('%s', '%d', '%d')", g_iPlayerData[id][STEAMID], g_iPlayerData[id][SYSMONEY], g_iPlayerData[id][CASHBACK]);
}
}
data[1] = id; SQL_ThreadQuery(g_sql, "SQL_Handler", szQuery, data, 2);
}
OpersMoney(id)
{
if(g_iPlayerData[id][CASHBACK])
{
if(g_iPlayerData[id][CASHBACK] - SYS_MONEY <= 0) g_iPlayerData[id][CASHBACK] = 0;
else g_iPlayerData[id][CASHBACK] -= SYS_MONEY;
}
else g_iPlayerData[id][SYSMONEY] += SYS_MONEY;
}
Можете помочь, скажите пожалуйста как сделать так, что бы плагин работал только с 3 раунда