1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Sending messages to all players in a script

Discussion in 'Modding Help' started by Asu, May 18, 2013.

Thread Status:
Not open for further replies.
  1. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Hi, I was wondering if it is possible to send message from a script, not just serverside ( Like does client.AddToChat ).

    It is possible? If yes, howto?
     
  2. nkChehov

    nkChehov Ballista Bolt Thrower
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    172
    I know 2 ways:
     
  3. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    I'll try with DrawText. It may be better to draw it everywhere on the screen.
    But, is it possible to block a message before it is sent to all clients in ChatCommands.as ?
     
  4. nkChehov

    nkChehov Ballista Bolt Thrower
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    172
    Dont get the question
     
  5. VanHuek

    VanHuek KAG Guard Tester

    Messages:
    751

    No everyone would see it.
     
    LightTab2 likes this.
  6. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    ChatCommands.as is just for chat messages.
    You can block chat messages in onServerProcessChat (in ChatCommands.as) by returning false.
     
  7. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Ok returning false doesn't show the message right :)
    Thanks shad. You can close this topic now ;)
     
Thread Status:
Not open for further replies.