Raised This Month: $ Target: $400
 0% 

[HELP] get_pdata_int and StatusText


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode