2 problems
1.if i use this:
PHP Code:
new name[32]
new TEAM = get_pdata_int(id, 114, 5)
if( TEAM == 1 )
{
pev(id, pev_netname, name, 31)
client_print(id, print_chat, "%s", name)
}
or
PHP Code:
new name[32]
new TEAM = get_pdata_int(id, 114, 5)
if( TEAM == 2 )
{
pev(id, pev_netname, name, 31)
client_print(id, print_chat, "%s", name)
}
when i am T or CT, these two codes both don't work(i can't get the name)
where is wrong?
2.how to change the StatusText properly?
i use this:
PHP Code:
register_event("StatusText", "StatusText_Event", "b")
public StatusText_Event(id)
{
new text[64]
format(text, 63, "AAAABBBBCCCC")
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("StatusText"), {0, 0, 0}, id)
write_byte(0)
write_string(text)
message_end()
}
when i aim player, the text(AAAABBBBCCCC) will display forever....
can anyone give me an example?
thank you for your help