Узнать больше об этом обновлении...Убран кусок кода который мог положить сервер
if (health[user] <= 100 - GIVE_HEALTH)
set_user_health(user,health[user] + GIVE_HEALTH);
else if(health[user] > 100 - GIVE_HEALTH)
set_user_health(user,100);
>>
const MAX_HP = 100; // Максимальное кол-во HP игрока
set_user_health(user, min(MAX_HP, health[user] + GIVE_HEALTH));
1) при использовании плагина в консоле
Error: server failed to transmit file 'sound/weapons/holywater_pinpul.wav'
Error: server failed to transmit file 'sound/weapons/holywater_deploy.wav'
Можно. Можно все, если захотеть.2) Можно ли оптимизировать под reapi ?
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <engine>
new user
while((user = find_ent_in_sphere(user,origin,HEAL_RADIUS)) != 0)
{
if(is_user_alive(user) && get_user_team(user) == get_user_team(id))
{
#if defined SCREENFADE
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, user);
write_short(1<<10);
write_short(1<<10);
write_short(0x0000);
write_byte(170);
write_byte(255);
write_byte(0);
write_byte(75);
message_end();
#endif
new health[32];
health[user] = get_user_health(user);
if (health[user] <= 100 - GIVE_HEALTH)
set_user_health(user,health[user] + GIVE_HEALTH);
else if(health[user] > 100 - GIVE_HEALTH)
set_user_health(user,100);
}
}
while((user = find_ent_in_sphere(user,origin,HEAL_RADIUS)) != 0)