Las Venturas Playground
Chat Handler - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: Chat Handler (/thread-7756.html)



Chat Handler - [Griffin] - 04-05-2008

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.


Re: Chat Handler - Badeend - 04-05-2008

And what should the chat handler do what the normal chat event can't?


Re: Chat Handler - tomozj - 04-05-2008

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?


Re: Chat Handler - [Griffin] - 04-05-2008

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.


Re: Chat Handler - tomozj - 04-05-2008

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.


Re: Chat Handler - [Griffin] - 04-05-2008

(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.


Re: Chat Handler - tomozj - 04-05-2008

Maybe just set it as a preference? :+


Re: Chat Handler - [Griffin] - 04-05-2008

thats what i meant  :+


Re: Chat Handler - [Griffin] - 04-10-2008

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.