RU
RU
UA
EN
PL
ГЛАВНАЯ
УСЛУГИ
ПЛАГИНЫ
КАРТЫ
REBUY
SCANMON
SALE
ФОРУМ
МОНИТОР
HELP
КОНТАКТ
Главная
/
Plugins
/
Quick & No scope detector
Quick & No scope detector
Теги:
Скачать плагины cs
Серверные
Плагин позволяет игрокам видеть, кто убил кого-либо без прицела либо с fastzoom-ом
- Настройки
qsd_enabled 1/0 - Включить/выключить плагин
qsd_messagetype hud/chat/log - тип сообщения (худ, лог-файл, чат)
qsd_chatprefix [Quick&NoScopeDetector] - Префикс сообщения в чате
Компилятор: 1.8.2
1058
Команды:
Кваров и команд нет
.sma / .sp
#include
#include
#include
#define MAX_PLAYERS 32 enum _:CvarsSettings { PluginEnabled, DisplayMessageType, PluginPrefix } new pCvars[CvarsSettings] new szPluginPrefix[25] enum _:PlayerScopeData { Float:ScopeTime, ScopeType } new ScopeData[MAX_PLAYERS+1][PlayerScopeData] new gMsgSync new MsgSayText new PluginForwardQuick, PluginForwardNoScope, g_iReturn public plugin_init() { new const PluginVersion[] = "1.2" register_plugin("Quick and No Scope Detector", PluginVersion, "EFFx") gMsgSync = CreateHudSyncObj() pCvars[PluginEnabled] = register_cvar("qsd_enabled","1") pCvars[DisplayMessageType] = register_cvar("qsd_messagetype","hud") pCvars[PluginPrefix] = register_cvar("qsd_chatprefix","[Quick&NoScopeDetector]") PluginForwardQuick = CreateMultiForward("client_NoScoped", ET_STOP, FP_CELL, FP_CELL, FP_CELL) PluginForwardNoScope = CreateMultiForward("client_QuickScoped", ET_STOP, FP_CELL, FP_CELL, FP_CELL) if(!PluginForwardQuick) { log_amx("client_NoScoped forward is not used by any other plugin.") } if(!PluginForwardNoScope) { log_amx("client_QuickScoped forward is not used by any other plugin.") } register_event("DeathMsg","checkQuickScopeKill","a","1>0", "4=scout","4=sg550", "4=awp", "4=g3sg1") register_event("CurWeapon","fw_EvCurWeapon","b","1=1","2=3","2=13", "2=18", "2=24") register_event("SetFOV","Zoom","b","1<90") MsgSayText = get_user_msgid("SayText") } public plugin_natives() { register_library("quicknoscoped") } public plugin_end() { DestroyForward(PluginForwardQuick) DestroyForward(PluginForwardNoScope) } public Zoom(id) { if(is_user_alive(id)) { ScopeData[id][ScopeTime] = _:get_gametime() } } public fw_EvCurWeapon(id) { ScopeData[id][ScopeType] = cs_get_user_zoom(id) } public checkQuickScopeKill() { if(!get_pcvar_num(pCvars[PluginEnabled])) return new KillerName[32],VictimName[32],WeaponName[17] new iKiller = read_data(1) new iVictim = read_data(2) new Float:GameTime = get_gametime() new bool:bNoScope = bool:(ScopeData[iKiller][ScopeType] == CS_SET_NO_ZOOM) new bool:bQuickScope = bool:(GameTime - ScopeData[iKiller][ScopeTime] <= 0.20) if(bNoScope || bQuickScope) { get_user_name(iKiller,KillerName,charsmax(KillerName)) get_user_name(iVictim,VictimName,charsmax(VictimName)) bNoScope ? ExecuteForward(PluginForwardNoScope, g_iReturn, iKiller, iVictim, get_user_weapon(iKiller)) : ExecuteForward(PluginForwardQuick, g_iReturn, iKiller, iVictim, get_user_weapon(iKiller)) read_data(4,WeaponName,charsmax(WeaponName)) QSD_ChatMessage ( "^4%s^1 Holy shit!^4 %s^1 %s^3 %s^1 with his^4 %s", get_pcvar_string(pCvars[PluginPrefix],szPluginPrefix,charsmax(szPluginPrefix)), szPluginPrefix, KillerName, bNoScope ? "just NO SCOPED" : "made a^4 QUICK SCOPE^1 on" , VictimName, WeaponName ) } } QSD_ChatMessage(const message[],withPrefixRemoved,any:...) { static szMsg[191] vformat(szMsg,charsmax(szMsg),message,3) replace_all(szMsg, charsmax(szMsg),"!g","^4") replace_all(szMsg, charsmax(szMsg),"!y","^1") replace_all(szMsg, charsmax(szMsg),"!t","^3") new const replaceIcons[] = {"^4","^3","^1"} new szMessageType[45] get_pcvar_string(pCvars[DisplayMessageType],szMessageType,charsmax(szMessageType)) switch(szMessageType[0]) { case 'H','h': { for(new i;i < sizeof replaceIcons;i++) { replace_all(szMsg,charsmax(szMsg),replaceIcons[i],"") } set_hudmessage(0,255,0,-1.0,0.25,1,1.0,5.0) ShowSyncHudMsg(0,gMsgSync,szMsg[withPrefixRemoved]) } case 'L','l': { for(new i;i < sizeof replaceIcons;i++) { replace_all(szMsg,charsmax(szMsg),replaceIcons[i],"") } log_amx(szMsg[withPrefixRemoved]) } default: { new Players[32],iPlayersNum,PlayerID get_players(Players,iPlayersNum,"ch") for(new i;i < iPlayersNum;i++) { PlayerID = Players[i] message_begin(MSG_ONE_UNRELIABLE,MsgSayText, .player = PlayerID) write_byte(PlayerID) write_string(szMsg) message_end() } } } }
Отправить
Загрузил
ADEPT
2020-03-10 15:35:53
0
51
Установить на сервер
Скачать
Нет оплаченых серверов
Купить сервер CS 1.6
Купить сервер CS:GO
Купить сервер CSS v34
Подключить свой VDS к панели
УКРАЇНСЬКИЙ - ПАТРІОТ [ 2013 - 2024 ] © 18+
195.211.60.213:27015
В І Л Ь Н А - У К Р А Ї Н А [ RYZEN 9 - 5.7 GHZ ]
195.211.60.213:27016
(Д) (І) (В) (О) (Ч) (А) - (В) (Л) (А) (Д) (А) | 18+
195.211.60.213:27017
Данная иконка означает, что плагин был проверен администрацией хостинга на тестовом сервере, и проблем с ним не было выявлено. Рекомендуем ставить исключительно проверенные плагины.
Плагин загружен на сервер, но проверка еще не была проведена.
CSHOST.COM.UA 2012-2024 Хостинг игровых серверов