- Ошибка
-
Ошибок нету
- ОС
- Linux
- Amx Mod X
-
AMX Mod X v1.9.0.5294
- Билд
-
ReHLDS version: 3.11.0.767-dev
- ReGamedll
-
ReGameDLL version: 5.21.0.546-dev
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 3] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl1 ANY ANY
[ 8] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl1 ANY ANY
[ 9] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl1 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl1 ANY ANY
[11] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl1 ANY ANY
- Список плагинов
-
[ 1] Admin Base 1.9.0.5294 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0.5294 AMXX Dev Team adminhelp.amxx running
[ 4] Multi-Lingual System 1.9.0.5294 AMXX Dev Team multilingual.am running
[ 5] Menus Front-End 1.9.0.5294 AMXX Dev Team menufront.amxx running
[ 6] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 7] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 8] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 9] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 10] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 11] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 12] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 13] NextMap 1.9.0.5294 AMXX Dev Team nextmap.amxx running
[ 14] Nextmap Chooser 1.9.0.5294 AMXX Dev Team mapchooser.amxx running
[ 15] TimeLeft 1.9.0.5294 AMXX Dev Team timeleft.amxx running
[ 16] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 17] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 18] StatsX 1.9.0.5294 AMXX Dev Team statsx.amxx running
[ 19] Zombie Plague 4.3 Fix5a MeRcyLeZZ zombie_plague40 running
[ 20] Auto Join on Connect 0.1 VEN auto_join_on_co running
[ 21] Angel 0.2 Aloe zp_zclass_black debug
- Автор плагина
- Aloe
- Версия плагина
- 0.2
- Исходный код
-
#include <amxmodx>
#include <zombieplague>
#include <fakemeta>
#include <hamsandwich>
#include <engine>
#define PLUGIN "Angel"
#define AUTHOR "Aloe"
#define VERSION "0.2"
new zclass_name[] = { "Ангел" };
new zclass_info[] = { "Летает" };
new zclass_model[] = {"NF_blackangel"};
new const zclass_clawmodel[] = { "nighthands/hands_blackangel.mdl" };
const zclass_health = 2100
const zclass_speed = 220
const Float:zclass_gravity = 0.48
const Float:zclass_knockback = 1.2
new canFly[33] = false;
new g_zclass_blackangel;
public plugin_precache() {
register_plugin(PLUGIN, VERSION, AUTHOR);
g_zclass_blackangel = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback);
}
public client_putinserver(id) {
canFly[id] = false;
}
public client_disconnected(id) {
canFly[id] = false;
}
public zp_user_infected_post(player, infector) {
if (g_zclass_blackangel == zp_get_user_zombie_class(player) && !zp_get_user_nemesis(player)) {
canFly[player] = true;
}
return PLUGIN_CONTINUE;
}
public client_PreThink(id) {
if ((!is_user_alive(id) || !zp_get_user_zombie(id)) || (g_zclass_blackangel != zp_get_user_zombie_class(id)) || zp_get_user_nemesis(id)) {
return ZP_PLUGIN_HANDLED;
}
if (!(pev(id, pev_button) & IN_JUMP)) {
canFly[id] = false;
}
else {
canFly[id] = true;
}
return PLUGIN_CONTINUE;
}
public client_PostThink(id) {
if ((!is_user_alive(id) && zp_get_user_zombie(id)) && (g_zclass_blackangel != zp_get_user_zombie_class(id)) && !zp_get_user_nemesis(id) || canFly[id]) {
new Float:velocity[3] = 0.0;
entity_get_vector(id, 2, velocity);
velocity[2] = random_float(200.00, 200.00);
entity_set_vector(id, 2, velocity);
return ZP_PLUGIN_HANDLED;
}
return ZP_PLUGIN_HANDLED;
}
Проблема в том, когда захожу на сервер я не могу стрелять, глушитель прикреплять, так же за зомби никого резать не могу. Вся проблема начинается с куска кода public client_PostThink. Я вообще не могу понять в чем причина, т.к. оно не должно влиять на стрельбу и т.д. Когда я комментирую кусок кода, все хорошо, но зм не летает.
В этой теме было размещено решение! Перейти к решению.
Вложения
-
1.8 KB Просмотры: 57