![]() |
Customized Chat Script
Basically it will disable the default chat above the players head, and instead it will be placed in a box :)
if the player has clientr.isStaff added their name will be red. thanks to mark sir link and cbk1994 for their help with this. feel free to use it on your server if you want to, but please do not claim it as your own :D Here Is A Screenshot. http://i56.tinypic.com/t8ojs4.png PHP Code:
|
Quote:
|
Do you care to explain further please?
what can you see wrong with it atm :3? thanks btw. its only by people telling me that il be able to fix. |
Iv updated the script to be serverside.
i hope it now displays the chat properly. |
go back to the thread I posted in and look at how onPlayerChats an onRemotePlayerChats are used. Chat is already available on the clientside so there is no point in sending and receiving that data once again.
I'm not sure if player.isadmin returns correctly on the clientside, but isadminguild(player.guild) should work fine, and that is probably preferable. |
The chat is only displaying clientside.. aka only showing what yourself chats and no one elses X_X
|
Quote:
PHP Code:
|
Quote:
Also, the way you are checking for staff would not work at all, it will display red names for any player who logs in and is staff (regardless of who is chatting), and any normal player would see staff chat without red names. Go back to the other thread and look at the example I posted and follow it a bit more carefully, and modify the addChat function to suit your specific needs |
Quote:
|
| All times are GMT +2. The time now is 05:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.