hud_centerid
GoldeN 29.03.2010
Witam. Mam problem. Jak zrobić, aby po najechaniu na kogokolwiek na środku pojawiał się jego nick? Bo jak zrobie hud_centerid 1 to mi lvl itd. wyświetla na środku. ; /
GoldeN 30.03.2010
Nie ma tam nic. Jak sie najedzie na kogoś to jego info pojawia się w lewym dolnym rogu, a ja tak nie chce, chce, żeby się pojawiało na środku.
Użytkownik GoldeNx3 edytował ten post 30.03.2010 20:50
Użytkownik GoldeNx3 edytował ten post 30.03.2010 20:50
G[o]Q
30.03.2010
nie da sie tak bo to wlasnie jest wykorzystane min w diablo czy bf2 to pokazania aktualnego statusu gracza
GoldeN 30.03.2010
nie da sie tak bo to wlasnie jest wykorzystane min w diablo czy bf2 to pokazania aktualnego statusu gracza
A na BF2 mam tak, że odznaki i fragi mam w dolnym lewym rogu a jak najade celownikiem na gracza, to pokazuje jego info (Nick) na środku...
DarkGL
31.03.2010
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#define PLUGIN "cosik"
#define VERSION "1.0"
#define AUTHOR "DarkGL"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_PreThink(id){
new cel, body
get_user_aiming(id, cel, body)
if(cel != 0 && is_user_alive(id) && cs_get_user_team(id) != CS_TEAM_SPECTATOR)
{
new name[64];
get_user_name(cel,name,63);
set_hudmessage(0, 0, 255, 0.28, 0.50, 0, 6.0, 1.0)
show_hudmessage(id, "%s | HP: %d | AP: %d",name,get_user_health(cel),get_user_armor(cel))
}
}
podawałem ten plugin w innym temaci
G[o]Q
31.03.2010
Dark lepiej
register_event("StatusValue", "on_ShowStatus", "be", "1=2", "2!0"); register_event("StatusValue", "on_HideStatus", "be", "1=1", "2=0");zamiast prethinka
DarkGL
31.03.2010
/* Plugin generated by AMXX-Studio */nie mogłem znaleźć czy event showStatus wywołuje się ciągle czy tylko raz strzelałem
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#define PLUGIN "cosik"
#define VERSION "1.0"
#define AUTHOR "DarkGL"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("StatusValue", "on_ShowStatus", "be", "1=2", "2!0");
register_event("StatusValue", "on_HideStatus", "be", "1=1", "2=0");
}
public on_ShowStatus(id){
new cel, body
get_user_aiming(id, cel, body)
if(cel != 0 && is_user_alive(id))
{
new name[64];
get_user_name(cel,name,63);
set_hudmessage(0, 0, 255, 0.28, 0.50, 0, 6.0, 99.0,0.0,0.0,1)
show_hudmessage(id, "%s | HP: %d | AP: %d",name,get_user_health(cel),get_user_armor(cel))
}
}
public on_HideStatus(id){
set_hudmessage(0, 0, 255, 0.28, 0.50, 0, 6.0, 99.0,0.0,0.0,1)
show_hudmessage(id, "")
}
GoldeN 31.03.2010
A nie da się tak, aby wyświetlało jak na BFie? Ze swoich na inny a przeciwników na inny kolor?