Czy plugin jest dobry?
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fun>
#include <csx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "karpielek"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_damage(atakujacy, atakowany, ile_hp, jaka_bron, gdzie, team_killer)
{
if(team_killer)
{
new hp = get_user_health(atakowany)
set_user_health(atakowany,hp + ile_hp)
}
}Podczas kompilacji są errory:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team aaaa.sma(22) : warning 217: loose indentation Header size: 260 bytes Code size: 232 bytes Data size: 88 bytes Stack/heap size: 16384 bytes; estimated max. usage=45 cells (180 bytes) Total requirements: 16964 bytes 1 Warning. Done.
Chodzi mi o to, gdy strzela się w swojego, to normalnie krew leci, i go odrzuca (no normalne zachowanie jak na friendly fire i strzelaniem do teamu) Tylko że nie odbiera mu HP. Tak jakby fake friendly fire.
Proszę o pomoc!


Dodatki SourceMod



Temat jest zamknięty









