RU
RU
UA
EN
PL
ГЛАВНАЯ
УСЛУГИ
ПЛАГИНЫ
КАРТЫ
REBUY
SCANMON
SALE
ФОРУМ
МОНИТОР
HELP
КОНТАКТ
Главная
/
Plugins
/
DRUGS SHOP
DRUGS SHOP
Теги:
Скачать плагины cs
Серверные
Необычный магазин для сервера , где вы можете купить наркотики
Компилятор: 1.8.2
887
Команды:
say /drugs - Откроет магазин наркотиков
.sma / .sp
#include
#include
#include
#include
#define PLUGIN "[JB] Drugs Shop" #define VERSION "1.0" #define AUTHOR "Opo4uMay" new keysmenu = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8) public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_concmd("say /drugs", "shop_drugs") register_concmd("say_team /drugs", "shop_drugs") register_menu("Menu 1", keysmenu, "Drugsmenu") } public shop_drugs(id) { static menu[500], len len = 0 if (cs_get_user_team(id) == CS_TEAM_T || cs_get_user_team(id) == CS_TEAM_CT) { len += formatex(menu[len], charsmax(menu) - len, "\rМагазин наркотиков 1.0- \yby Opo4uMapy^n") if(cs_get_user_money(id) < 1000) len += formatex(menu[len], charsmax(menu) - len, "\r1.\dГероин - \r(200брони) \w- \y1000 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r1.\wГероин - \r(200брони) \w- \y1000 $^n") if(cs_get_user_money(id) < 1500) len += formatex(menu[len], charsmax(menu) - len, "\r2.\dМак - \r(200хп) \w- \y1500 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r2.\wМак - \r(\r200хп) \w- \y1500 $^n") if(cs_get_user_money(id) < 3000) len += formatex(menu[len], charsmax(menu) - len, "\r3.\dГашиш - \r(255хп+брони) \w- \y3000 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r3. \wГашиш - \r(255хп+брони) \w- \y3000 $^n") if(cs_get_user_money(id) < 6000) len += formatex(menu[len], charsmax(menu) - len, "\r4.\dТрамадол - \r(Cкорость) \w- \y6000 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r4.\wТрамадол - \r(Cкорость) \w- \y6000 $^n") if(cs_get_user_money(id) < 6000) len += formatex(menu[len], charsmax(menu) - len, "\r5.\dМарихуана - \r(Cмоук+2 флеш) \w- \y6000 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r5.\wМарихуана - \r(Cмоук+2 флеш) \w- \y6000 $^n") if(cs_get_user_money(id) < 8000) len += formatex(menu[len], charsmax(menu) - len, "\r6.\dКрек - \r(Тихие шаги) \w- \y8000 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r6.\wКрек - \r(Тихие шаги) \w- \y8000 $^n") if(cs_get_user_money(id) < 8000) len += formatex(menu[len], charsmax(menu) - len, "\r7.\dЛСД - \r(Гравитация) \w- \y8000 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r7.\wЛСД - \r(Гравитация) \w- \y8000 $^n") if(cs_get_user_money(id) < 10000) len += formatex(menu[len], charsmax(menu) - len, "\r8.\dВодка - \r(Очки+глок) \w- \y10000 $^n") else len += formatex(menu[len], charsmax(menu) - len, "\r8.\wВодка - \r(Очки+глок) \w- \y10000 $^n") len += formatex(menu[len], charsmax(menu) - len, "\r0.^n") show_menu(id, keysmenu, menu, -1, "Menu 1") } return PLUGIN_HANDLED } public Drugsmenu(id, key) { switch(key) { case 0: { if(cs_get_user_money(id) >= 1000) { set_user_armor(id, 200); cs_set_user_money(id, cs_get_user_money(id) - 1000) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4Героин!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } case 1: { if(cs_get_user_money(id) >= 200) { set_user_health(id, 200); cs_set_user_money(id, cs_get_user_money(id) - 1500) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4Мак!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } case 2: { if(cs_get_user_money(id) >= 3000) { set_user_health(id, 255); set_user_armor(id, 255); cs_set_user_money(id, cs_get_user_money(id) - 3000) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4Гашиш!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } case 3: { if(cs_get_user_money(id) >= 6000) { set_user_maxspeed(id, 370.0); cs_set_user_money(id, cs_get_user_money(id) - 6000) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4Трамадол!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } case 4: { if(cs_get_user_money(id) >= 6000) { give_item(id, "weapon_smokegrenade"); give_item(id, "weapon_flashbang"); give_item(id, "weapon_flashbang"); cs_set_user_money(id, cs_get_user_money(id) - 6000) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4Марихуану!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } case 5: { if(cs_get_user_money(id) >= 8000) { set_user_footsteps(id, 0) cs_set_user_money(id, cs_get_user_money(id) - 8000) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4Крек!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } case 6: { if(cs_get_user_money(id) >= 8000) { set_user_gravity(id, 0.4) cs_set_user_money(id, cs_get_user_money(id) - 8000) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4ЛСД!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } case 7: { if(cs_get_user_money(id) >= 10000) { give_item(id, "nightvision") give_item(id, "weapon_glock18") cs_set_user_bpammo( id, CSW_GLOCK18, 250); cs_set_user_money(id, cs_get_user_money(id) - 10000) Color_Print(0, "^1[^4Наркота^1] Ты купил ^4Водку!") } else { Color_Print(0, "^1[^4Наркота^1] Тебе не хватает ^4баксов!") } } } return PLUGIN_HANDLED } stock Color_Print(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") // Green Color replace_all(msg, 190, "!y", "^1") // Default Color replace_all(msg, 190, "!team", "^3") // Team Color if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
Отправить
Загрузил
exec208
2019-01-11 04:05:28
0
28
Установить на сервер
Скачать
Нет оплаченых серверов
Купить сервер CS 1.6
Купить сервер CS:GO
Купить сервер CSS v34
Подключить свой VDS к панели
Данная иконка означает, что плагин был проверен администрацией хостинга на тестовом сервере, и проблем с ним не было выявлено. Рекомендуем ставить исключительно проверенные плагины.
Плагин загружен на сервер, но проверка еще не была проведена.
CSHOST.COM.UA 2012-2024 Хостинг игровых серверов