Raised This Month: $ Target: $400
 0% 

get id of player reciving msg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 09-15-2004 , 11:10   get id of player reciving msg
Reply With Quote #1

i registered a msg with register_message(get_user_msgid("SayText"),"m yfunc"), with get_msg_arg_int(1) i get the id of the person who sends this message
the func is called (if not team say) as often as there are players on server, but how do i get the id of the player it is currently send to?
__________________
alias White Panther
karlos is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-15-2004 , 17:51  
Reply With Quote #2

public yourfunc (id) {
iirc, that should work
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 09-20-2004 , 09:37  
Reply With Quote #3

1) device its not working, the id i returns is not a players id and is always the same (maybe the id of the msg)
any1 can help?
2) btw how to get the number of players it is send to? when normal say then number = max players, if team say the number of team mates, but how to get these from the msg?


solved 1):
i use myfunc(msgid,dummy,receiver_id)
dont really know if msgid is the msg id but its not a player id, so its logical thats its msg id
__________________
alias White Panther
karlos is offline
Reply


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 17:10.


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