Raised This Month: $ Target: $400
 0% 

[solved] spectator change player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-09-2009 , 08:11   [solved] spectator change player
Reply With Quote #1

Well, I found a code that can detect if a player spectates in a certain mode... but not if he switches the player in that mode, what's the best way to detect WHEN a spectator views another player than the old one in the same spec mode ?

the code I got 'till now:
PHP Code:
register_message(get_user_msgid("TextMsg"), "msg_textMsg")
//...
 
public msg_textMsg(msgiddestid)
{
    static 
msg[32]
    
get_msg_arg_string(2msg31)
 
    if(
equali(msg"#Spec_Mode4"))
        
client_print(0print_chat"[debug] %s spectating %s in %d mode"get_player_name(id), get_player_name(entity_get_int(idEV_INT_iuser2)), entity_get_int(idEV_INT_iuser1))
 
    return 
PLUGIN_CONTINUE

and I debugged the textmsg, doesn't trigger when I change a player...
__________________
Hunter-Digital is offline
 



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 01:35.


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