![]() |
Custom Chat System
Ok, Custom Chat system some people mgiht no what this is some people might not
Well on graal at the moment when a player talks text appears above the players head, i am wondering can it be done where when player talks a chat bubble appears above there head and text inside it could anyone give me a simple script to show this? thanks |
I am pretty sure you can disable chat being shown with the enablefeatures function, then have a script loop through the players in the level, and draw using your bubble chat function.
A crude example that should work: PHP Code:
Other functions that may be of help: onRemotePlayerChats(player_obj, player_chat); |
Its definitely possible as its been done numerous times on UC servers.
|
Nice example thanks, also how to change the colour of it and also add a chat bubble ?
|
Quote:
- Use polygon in findimg, or: - Use a bubble image, stretchx, and stretchy. To change the color, you can change it like so: PHP Code:
|
So i could make a bubble image and out the x and y
|
Here's an example of how to draw an image and stretch it accordingly.
PHP Code:
|
Ok now can you make a complete script so it works for an example wud be very helpfull
|
Just to quote the scripting forum rules, although I'm sure you all do not need the reminder.
Quote:
|
Quote:
|
Old script, but I'm not getting on where the player chat should go after drawing the image.
|
Just a note:
On Maloria and other servers that have done this, the script for displaying the chat is done in a gani, so that the text doesn't lag behind when the player is moving. |
Text should not lag behind a player if scripted correctly. Stefan has also stated it is more efficient and faster to run a loop of all players and display things like chat that way rather than using a gani.
|
any pointers on where to run after getting the image drawn?
|
Get the text in.
|
Nevermind
|
| All times are GMT +2. The time now is 06:16 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.