

Nad standardowym hp jest napis : Twoje hp 4000 (hp się zmienia w zależności ile dostałeś obrażeń )

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 10.05.2010 19:24
RPS !!!
Pomagam tylko na PW!Napisano 10.05.2010 19:32
#define FRAMES 10na np.
#define FRAMES 20
#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, 200, 200, 0.02, 0.91,0,0.0, 0.5,0.0,0.0,CHANNEL ); show_hudmessage(id, "HP: %d", pev(id, pev_health)); iCounter[id]=0; } return FMRES_IGNORED; }
Napisano 10.05.2010 19:56
RPS !!!
Pomagam tylko na PW!0 użytkowników, 1 gości, 0 anonimowych