Участник
Пользователь
- Сообщения
- 213
- Реакции
- 71
- Помог
- 2 раз(а)
- Ошибка
-
If I change it the code client_print it works & if I make client_print_color, plugin complies, no logs, but don't functions.
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5249 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 19 2019 13:31:53
Built from: https://github.com/alliedmodders/amxmodx/commit/6cecb34
Build ID: 5249:6cecb34
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.687-dev
Build date: 23:07:00 Aug 29 2019 (1965)
Build from: https://github.com/dreamstalker/rehlds/commit/4e4690b
- ReGamedll
-
ReGameDLL version: 5.11.0.394-dev
Build date: 18:45:35 Aug 29 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/3aa9872
- Версия Metamod
-
Metamod v1.21p37 2013/05/30 (5:13)
by Will Day
http://www.metamod.org/
Patch: Metamod-P (mm-p) v37
by Jussi Kivilinna
http://metamod-p.sourceforge.net/
compiled: May 30 2013, 11:41:16 EET (optimized)
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] SafeNameAndChat RUN - SafeNameAndChat. v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386. v0.1.0.1 ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 4] Revoice RUN - revoice_mm_i386. v0.1.0.3 ini Start Never
[ 5] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 6] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl3 ANY ANY
[ 7] Engine RUN - engine_amxx_i386 v1.9.0.5 pl3 ANY ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl3 ANY ANY
[ 9] GeoIP RUN - geoip_amxx_i386. v1.9.0.5 pl3 ANY ANY
[10] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl3 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl3 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl3 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386. v5.10.0. pl3 ANY Never
[14] hackdetector RUN - hackdetector_amx v0.15.32 pl3 ANY ANY
[15] ReAimDetector RUN - reaimdetector_am v0.2.2 pl3 ANY Never
[16] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl3 ANY ANY 16 plugins, 16 running
- Список плагинов
-
Recently I have disabled plugin, but it was at top of all chat plugins.
- Автор плагина
- General Memer
- Версия плагина
- 31/08/2019
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Scan_Say"
#define VERSION "31/08/2019"
#define AUTHOR "General Memer"
new Float:g_fCooldown[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say", "fwSayHandle");
}
public client_connect(iClient)
{
g_fCooldown[iClient] = 0.0;
}
public client_disconnected(iClient)
{
g_fCooldown[iClient] = 0.0;
}
public fwSayHandle(const iClient)
{
new sArg[194];
read_args( sArg, charsmax(sArg) );
remove_quotes(sArg);
new sCmd[32];
argbreak( sArg, sCmd, charsmax(sCmd), sArg, charsmax(sArg) );
if( equali(sCmd, "/scan") )
{
static Float:fGametime;
fGametime = get_gametime();
if( g_fCooldown[iClient] > fGametime )
return PLUGIN_HANDLED;
if( sArg[0] )
{
new sName[32];
get_user_name( iClient, sName, charsmax(sName) );
for(new i; i < 33; i++)
if( get_user_flags(i) & ADMIN_CHAT && i != 0 )
client_print_color(i, print_chat, "^4[PSL] A Scan From (%s)^1: '%s'", sName, sArg);
client_print_color(iClient, print_chat, "^4[PSL] ^3Your message has been sent.");
}
g_fCooldown[iClient] = fGametime + 2.0;
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
See Error Logs [Above]
I compile plugin locally with AMXX Compiler 1.90 [5249].
I compile plugin locally with AMXX Compiler 1.90 [5249].
В этой теме было размещено решение! Перейти к решению.