Hello There, Guest! Login or Register


Chat Handler
#1
The topic pretty much explains it. A chat handler to override the default chat event. Which is quite easy with the cancelEvent()
Ive already got a head start on one, and its pretty much finished. It can't be finished yet since there isn't chat rights yet.
Reply
#2
And what should the chat handler do what the normal chat event can't?
Reply
#3
It would be good if unique 'channels' could be created, with allocated channel numbers for different things -- so implementing a private chat for virtual worlds would be a doddle, when it comes to it.

And what the chat hander would do? Allow all chat to be handled explicitly by the gamemode, thus preventing any bugs with the regular chat in MTA being used and allowing total control / customization, right?
Reply
#4
yes, like tomozj said. its totally customizable. Also like the default chat is normally white, So with this we can set players colors and what not.
This would also be a start on admin/gang/regular chat ect.
Reply
#5
Yeah, maybe like the ID in the main chat the colour of the player's blip, so for example, for an admin

[34] tomozj: Hai

You know what I mean? So it's all readable but you can tell IDs too.
Reply
#6
(04-05-2008, 01:46 AM)tomozj link Wrote: Yeah, maybe like the ID in the main chat the colour of the player's blip, so for example, for an admin

[34] tomozj: Hai

You know what I mean? So it's all readable but you can tell IDs too.

i was more thinking of
[34] tomozj: Hai
or
tomozj: Hai

and also the ability to toggle ids in chat on and off, like the examples.
Reply
#7
Maybe just set it as a preference? :+
Reply
#8
thats what i meant  :+
Reply
#9
ok, im almost finished with the main part of the handler, so far i need these rights;

CAN_CHAT
CAN_CHAT_ADMIN
CAN_RECEIVE_ADMIN
CAN_CHAT_VIP
CAN_RECEIVE_VIP
CAN_CHAT_REGULAR
CAN_RECEIVE_REGULAR
CAN_CHAT_GANG
CAN_RECEIVE_GANG
CAN_CHAT_PHONE
CAN_RECEIVE_PHONE
CAN_CHAT_PM
CAN_RECEIVE_PM

and maybe some echo tags as well;
[admin]
[vip]
[regular]
[gang]
[phone]
[pm]
[world]

once im finished with this part, i was going to add features like chat rooms; like tomozj said. This I thought would be cool to make as GUI.
Reply