Closed anormaltwig closed 10 months ago
Done.
I think you forgot to add it to the resource/serverevents.res
file.
Because of this the teamonly
field won't be networked?
"player_say"
{
"userid" "short" // user ID on server
"text" "string" // the say text
"teamonly" "bool" // is it teamonly <-- This line needs to be added
}
Or is it intentional that it's only serverside?
No I did not, but you can open a separate issue for that if you really need to.
I am not sure whether that would break network compatibility with existing servers is all.
I just tested it and it doesn't break network compatibility. The teamonly field also works on the client if only the server has the entry, so it seems like it's only required serverside to send it.
Details
its already available to where the event is called from