Mam 920 lvl i gdy mam dodane więcej niż 950 w hp to mam krzywy ekran i nie widać broni
czesto na codach jest tak że gdy sie ma 255+ ale u mnie inaczej ;/
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Napisano 16.09.2012 17:30
Napisano 17.09.2012 08:59
register_message(get_user_msgid("Health"),"MessageHealth");Oraz:public MessageHealth(msg_id, msg_dest, msg_entity)
{
static health;
health = get_msg_arg_int(1);
if (health < 256) return;
if (!(health % 256))
set_pev(msg_entity, pev_health, pev(msg_entity, pev_health)-1);
set_msg_arg_int(1, get_msg_argtype(1), 255);
}A następnie wgraj na serwer taki plugin:#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "HP BUG"
#define VERSION "1.0"
#define AUTHOR "R3X"
#define CHANNEL 1
#define FRAMES 10
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("Health"),"message_health");
register_forward(FM_PlayerPreThink, "fwPreThink", 1);
}
public message_health(msg_id,msg_dest,msg_entity)
{
if(pev(msg_entity, pev_health) >= 255)
{
set_msg_arg_int(1, ARG_BYTE, 255);
}
return PLUGIN_CONTINUE;
}
public fwPreThink(id)
{
if(!is_user_alive(id))
return FMRES_IGNORED;
static iCounter[33]={0,...};
if(++iCounter[id] >= FRAMES)
{
set_hudmessage(0, 255, 0, 0.02, 0.23, 0, 0.0, 0.3, 0.0, 0.0);
show_hudmessage(id, "HP: %d", pev(id, pev_health));
iCounter[id]=0;
}
return FMRES_IGNORED;
}Lub bez wiadomosci w hud#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "HP BUG"
#define VERSION "1.0"
#define AUTHOR "R3X"
#define CHANNEL 1
#define FRAMES 10
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("Health"),"message_health");
}
public message_health(msg_id,msg_dest,msg_entity)
{
if(pev(msg_entity, pev_health) >= 255)
{
set_msg_arg_int(1, ARG_BYTE, 255);
}
return PLUGIN_CONTINUE;
}Poradnik nie jest mój lecz ja go tylko udostępniam w celu pomocy innym graczą Użytkownik Vindetta edytował ten post 17.09.2012 09:01
Napisano 17.09.2012 14:11
Jak to u Ciebie inaczej? jeżeli posiadasz cod mod nowy to zrób tak:
Usun w silniku:register_message(get_user_msgid("Health"),"MessageHealth");Oraz:public MessageHealth(msg_id, msg_dest, msg_entity) { static health; health = get_msg_arg_int(1); if (health < 256) return; if (!(health % 256)) set_pev(msg_entity, pev_health, pev(msg_entity, pev_health)-1); set_msg_arg_int(1, get_msg_argtype(1), 255); }A następnie wgraj na serwer taki plugin:#include <amxmodx> #include <amxmisc> #include <fakemeta> #define PLUGIN "HP BUG" #define VERSION "1.0" #define AUTHOR "R3X" #define CHANNEL 1 #define FRAMES 10 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_message(get_user_msgid("Health"),"message_health"); register_forward(FM_PlayerPreThink, "fwPreThink", 1); } public message_health(msg_id,msg_dest,msg_entity) { if(pev(msg_entity, pev_health) >= 255) { set_msg_arg_int(1, ARG_BYTE, 255); } return PLUGIN_CONTINUE; } public fwPreThink(id) { if(!is_user_alive(id)) return FMRES_IGNORED; static iCounter[33]={0,...}; if(++iCounter[id] >= FRAMES) { set_hudmessage(0, 255, 0, 0.02, 0.23, 0, 0.0, 0.3, 0.0, 0.0); show_hudmessage(id, "HP: %d", pev(id, pev_health)); iCounter[id]=0; } return FMRES_IGNORED; }Lub bez wiadomosci w hud#include <amxmodx> #include <amxmisc> #include <fakemeta> #define PLUGIN "HP BUG" #define VERSION "1.0" #define AUTHOR "R3X" #define CHANNEL 1 #define FRAMES 10 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_message(get_user_msgid("Health"),"message_health"); } public message_health(msg_id,msg_dest,msg_entity) { if(pev(msg_entity, pev_health) >= 255) { set_msg_arg_int(1, ARG_BYTE, 255); } return PLUGIN_CONTINUE; }Poradnik nie jest mój lecz ja go tylko udostępniam w celu pomocy innym graczą
QTM_CodMod.sma 38,97 KB 52 Ilość pobrań
QTM_CodMod.amxx
Napisano 17.09.2012 15:03
Użytkownik TSUBA edytował ten post 17.09.2012 15:05
Napisano 17.09.2012 18:05
Napisano 17.09.2012 19:34
Użytkownik TSUBA edytował ten post 17.09.2012 19:41
Napisano 18.09.2012 14:18
Napisano 19.09.2012 11:59
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.DarkGL to mój autorytet.
CoD Nowy
Polaczenie informacji HUD.Napisany przez SHiBBy., 12.11.2025 |
|
|
|||
Paczka perkow.perki Napisany przez NAVIK, 24.03.2025 |
|
|
|||
CoD Nowy
Plugin na małe mapy.Napisany przez NAVIK, 16.02.2025 |
|
|
|||
CoD Nowy
Dodatkowe, osobne trzy linie opisu klasNapisany przez Rafii, 27.01.2025 |
|
|
|||
CoD Nowy
problem z kompilacjaNapisany przez Anonimowy09, 21.01.2025 |
|
|
0 użytkowników, 0 gości, 0 anonimowych