AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   format() (https://forums.alliedmods.net/showthread.php?t=129363)

Amonel 06-12-2010 06:20

format()
 
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..

#8 SickneSS 06-12-2010 07:32

Re: format()
 
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.

Amonel 06-12-2010 07:36

Re: format()
 
ok and if i use "MSG_BROADCAST" instead of "MSG_ONE_UNREALIBLE" ?

Alka 06-12-2010 08:25

Re: format()
 
Will send to everyone?


All times are GMT -4. The time now is 14:43.

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