mohabhassan / NightFall

MOHAA/MOHSH/MOHBT dgamex86 wrapper.
https://www.x-null.net/forums/forum.php
12 stars 5 forks source link

[Feature Request] chat/dmmessage event #4

Closed eduzappa18 closed 5 years ago

eduzappa18 commented 5 years ago

A new event similar to the 'servercommand' event Something like this:

dmmessage local.player local.type local.text:
       // your code here
end

local.player - Player that has sent the message
local.type   - The type of chat
               -1 = Team chat ('sayteam' command)
                0 = Global chat ('say' command)
                1 = Private chat ('sayprivate', 'sayone' command)
local.text   - The message's text

and as you said, If you return 1 the message won't pass, but if you return 0 it will.

mohabhassan commented 5 years ago

Alright, will be there next release ! Stay sharp !

mohabhassan commented 5 years ago

Implemented with release v1.1.0!