View Single Post
Author Message
keyblade
Member
Join Date: Nov 2010
Location: China
Old 10-02-2011 , 02:04   [HELP] get_pdata_int and StatusText
Reply With Quote #1

2 problems

1.if i use this:
PHP Code:
new name[32]
new 
TEAM get_pdata_int(id1145)
if( 
TEAM == )
{
    
pev(idpev_netnamename31)
    
client_print(idprint_chat"%s"name)

or

PHP Code:
new name[32]
new 
TEAM get_pdata_int(id1145)
if( 
TEAM == )
{
    
pev(idpev_netnamename31)
    
client_print(idprint_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(text63"AAAABBBBCCCC")
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("StatusText"), {000}, 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
keyblade is offline