Jump to content

Solved


t3wz

Recommended Posts

https://wiki.multitheftauto.com/wiki/OutputChatBox

Required Arguments 
text: The text string that you wish to send to the chat window. If more than 128 characters it will not be showed in chat.  
Optional Arguments 
  
NOTE: When using optional arguments, you must supply all arguments before the one you wish to use. For more information on optional arguments, see Optional Arguments.  
visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility.  
r: The amount of red in the color of the text. Default value is 231.  
g: The amount of green in the color of the text. Default value is 217.  
b: The amount of blue in the color of the text. Default value is 176.  
[b]colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used.[/b] 

Link to comment
Exactly what he said.
outputChatBox("#00ff00Player Has been muted by #ff0000Admin", getRootElement(), 255, 255, 255, true) 

Notice the "True" on the end. That enables the Color Codes

no no

Those messages:

$player has been banned$by_admin_4all. $data2

ADMIN: $admin has banned $player $data $data2

$player has been kicked$by_admin_4all.

ADMIN: $admin has kicked $player $data

$player has been muted$by_admin_4all. $data2

ADMIN: $admin has muted $player $data $data2

$player has been unmuted$by_admin_4all.

ADMIN: $admin has unmuted $player

$player has been frozen$by_admin_4all.

You have been frozen$by_admin_4plr.

ADMIN: $admin has frozen $player

$player has been unfrozen$by_admin_4all.

You have been unfrozen$by_admin_4plr.

ADMIN: $admin has unfrozen $player

$player has been slapped$by_admin_4all. ($data HP)

ADMIN: $admin has slapped $player ($data HP)

You have shouted at $player

$player's health has been changed to $data

Your health has been changed to $data$by_admin_4plr.

ADMIN: $admin has changed $player's health to $data

$player's armour has been changed to $data

Your armour has been changed to $data$by_admin_4plr.

ADMIN: $admin has changed $player's armour to $data

$player's money has been set to $data

Your money has been set to $data$by_admin_4plr.

ADMIN: $admin has set $player's money to $data

$player's skin has been changed to $data

Your skin has been changed to $data$by_admin_4plr.

ADMIN: $admin has changed $player's skin to $data

$player has been moved to the $data team.

You have been moved to the $data team$by_admin_4plr.

ADMIN: $admin has moved $player to the $data team

Set '$data' to '$data2'

ADMIN: Set '$data' to '$data2' by $admin

.............................

In resources\[admin]\conf\messages.xml

Link to comment

Go to [admin]/server/admin_server.lua and try to replace line 527

this:

if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b ) end 

to this one:

if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b, true ) end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...