←  Bugi

AMXX.pl: Support AMX Mod X i SourceMod

»

CoD Nowy
Problem z Bugiem

Jerem96 - zdjęcie Jerem96 01.11.2011

Witam.
Mam taki dziwny bug, że jak robię reset w statystykach to jak gram tą klasą to automatycznie zmieniają mi się klawisze.
Proszę o pomoc.
Odpowiedz

M3nt0s - zdjęcie M3nt0s 01.11.2011

Zbugowalo ci sie hp dodaj o 1 pkt wiecej w hp i bedzie dzialac :)
Odpowiedz

Jerem96 - zdjęcie Jerem96 01.11.2011

A jest jakiś sposób żeby temu zapobiec?
Odpowiedz

M3nt0s - zdjęcie M3nt0s 01.11.2011

Ale to dzieje sie na twoim cod modzie czy na czyims?

Jesli na twoim to:
Podeslij silnik swojego coda i dodaj plugin:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Real HP"
#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.43, 0, 0.0, 0.3, 0.0, 0.0)
show_hudmessage(id, "[Zdrowie: %d]", pev(id, pev_health));
iCounter[id]=0;
}
return FMRES_IGNORED;
}
Odpowiedz