I have met the problem to use user’s message to transfer data between client and server side… I just do the following procedures, by which I expect that by typing command 'Remessage" in server side, the client side can show the Msg “The message has been received!!”… Client side file is stored at ‘lua\autorun\client’ and server side file is put at ‘lua\autorun\server’
On client side:
function my_message_hook( um )
Msg( “The message has been received!!” )
On the server side:
local rp = RecipientFilter() – Grab a CRecipientFilter object
rp:AddAllPlayers() – Send to all players!
However, in console after I type in Remessage, nothing happens… Anyone knows the reason?
Thank you very much!