[ROZWIĄZANE] Zmiana Kodu Pluginu Wiadomośc...
HappySpace
15.08.2012
Kod tego pluga pokazuje wiadomość na starcie rundy !
#include <amxmodx>
public plugin_init()
{
register_plugin("Grasz na serwerze CIACH", "1.0", "amxx.pl")
register_event("HLTV", "wyswietl", "a", "1=0", "2=0", "3=0", "4=0")
}
public wyswietl()
{
set_hudmessage(0, 0, 255, 0.5, 0.1, 0, 6.0, 7.0)
show_hudmessage(0, "Grasz na serwerze CIACH")
}
sebul
16.08.2012
Automatyczna wiadomość
Ten temat został przeniesiony z forum
do
Amaroq
16.08.2012
#include <amxmodx>
public plugin_init()
{
register_plugin("Grasz na serwerze CIACH", "1.0", "amxx.pl")
register_event("HLTV", "wyswietl", "a", "1=0", "2=0", "3=0", "4=0")
}
public wyswietl()
{
set_hudmessage(0, 255, 0, 0.5, 0.1, 0, 6.0, 7.0)
show_hudmessage(0, "Grasz na serwerze CIACH")
}
HappySpace
17.08.2012
#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, 255, 0, 0.5, 0.1, 0, 6.0, 7.0)
show_hudmessage(id, "|-HoFo-|%s | HP: %d |-HoFo-|",name,get_user_health(cel),get_user_armor(cel))
}
}
public on_HideStatus(id){
set_hudmessage(0, 0, 254, 0.28, 0.50, 0, 6.0, 99.0,0.0,0.0,1)
show_hudmessage(id, "")
}
QuahodronN
17.08.2012
#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, 255, 0, -1, -1, 0, 6.0, 7.0) show_hudmessage(id, "|-HoFo-|%s | HP: %d |-HoFo-|",name,get_user_health(cel),get_user_armor(cel)) } } public on_HideStatus(id){ set_hudmessage(0, 0, 254, 0.28, 0.50, 0, 6.0, 99.0,0.0,0.0,1) show_hudmessage(id, "") }
sebul
17.08.2012
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL