jednkaże zamiast zniknąć po pau sekundach zostaje on na stałe
proszę o porade
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Nick Show"
#define VERSION "1.0"
#define AUTHOR "cce"
[sma]
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Nick Show"
#define VERSION "1.0"
#define AUTHOR "cce"
new gmsgStatusText;
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");
gmsgStatusText = get_user_msgid("StatusText");
}
public on_ShowStatus(id){
{
if ( !is_user_alive(id)) return;
static HUD[64];
static nick[33], pid
pid = read_data(2)
get_user_name(pid, nick, 32)
switch(cs_get_user_team(pid)) {
case CS_TEAM_T:
{
formatex(HUD, charsmax(HUD), "[ZM3] %s", nick );
}
case CS_TEAM_CT:
{
formatex(HUD, charsmax(HUD), "[ZM3] %s", nick );
}
}
message_begin(MSG_ONE_UNRELIABLE, gmsgStatusText, _, id);
write_byte(0);
write_string(HUD);
message_end();
}
}
public on_HideStatus(id)
{
message_begin(MSG_ONE_UNRELIABLE, gmsgStatusText, _, id);
message_end();
}