Проверенный
Участник
- Сообщения
- 2,288
- Реакции
- 1,740
- Помог
- 31 раз(а)
Не работает функция rg_find_ent_by_class. Соответственно невозможно удалить ентити с помощью FL_KILLME.
Тестовый плагин
Код:
version
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
game version
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
meta list
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.133 ini Start Never
[ 2] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5378 ini Start ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] Ultimate Unprecacher RUN - unprecacher_i386.so vBeta 2.5.3 ini Chlvl Chlvl
[10] MySQL RUN - mysql_amxx_i386.so v1.10.0.5378 pl3 ANY ANY
[11] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl3 ANY Never
[12] ReAPI RUN - reapi_amxx_i386.so v5.10.0.188-dev pl3 ANY Never
[13] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl3 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5378 pl3 ANY ANY
[15] GeoIP RUN - geoip_amxx_i386.so v1.10.0.5378 pl3 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5378 pl3 ANY ANY
[17] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5378 pl3 ANY ANY
[18] Engine RUN - engine_amxx_i386.so v1.10.0.5378 pl3 ANY ANY
18 plugins, 18 running
amxx version
AMX Mod X 1.10.0.5378 (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: Aug 2 2019 00:48:30
Built from: https://github.com/alliedmodders/amxmodx/commit/0bd6944
Build ID: 5378:0bd6944
Core mode: JIT+ASM32
Тестовый плагин
Код:
#pragma semicolon 1
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <reapi>
#define OBJECT_THROWING_KNIFE 1489
public plugin_init()
{
register_plugin("", "1.0", "fl0wer");
register_clcmd("say e", "@e");
register_clcmd("say t", "@t");
}
@e(id)
{
server_print("print start");
new maxEntities = global_get(glb_maxEntities);
new className[32];
for (new i = 0; i < maxEntities; i++)
{
if (is_nullent(i))
continue;
if (get_entvar(i, var_chain) != OBJECT_THROWING_KNIFE)
continue;
get_entvar(i, var_classname, className, charsmax(className));
server_print("%d: %s", i, className);
}
server_print("print end");
return PLUGIN_HANDLED;
}
@t(id)
{
server_print("print start");
new entity = NULLENT;
new className[32];
while ((entity = rg_find_ent_by_class(entity, "info_target", true)))
{
if (get_entvar(entity, var_chain) != OBJECT_THROWING_KNIFE)
continue;
get_entvar(entity, var_classname, className, charsmax(className));
server_print("%d: %s", entity, className);
}
server_print("print end");
return PLUGIN_HANDLED;
}