Raised This Month: $ Target: $400
 0% 

format()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Amonel
Senior Member
Join Date: May 2009
Old 06-12-2010 , 06:20   format()
Reply With Quote #1

using format(), i use this thing to print to players:

message_begin(MSG_ONE_UNRELIABLE, g_iMsgID_SayText)
write_byte(id)
write_string(szMsg)
message_end()


what do i have to edit to send it to only 1 player or a definit group of players..
Amonel is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 06-12-2010 , 07:32   Re: format()
Reply With Quote #2

message_begin(MSG_ONE_UNREALIBLE,giMsgID_SayT ext,_,id)
write_byte(id)
write_string(szMsg)
message_end()

==> That is for id (One player)

For a group of players,you can make a menu and choose the players or loop by team.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Amonel
Senior Member
Join Date: May 2009
Old 06-12-2010 , 07:36   Re: format()
Reply With Quote #3

ok and if i use "MSG_BROADCAST" instead of "MSG_ONE_UNREALIBLE" ?
Amonel is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-12-2010 , 08:25   Re: format()
Reply With Quote #4

Will send to everyone?
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Old 06-12-2010, 13:40
fysiks
This message has been deleted by fysiks.
Reply



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 14:43.


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