Liberty Unleashed

Scripting => Script Help => Topic started by: CANYON on August 26, 2012, 04:49:59 am

Title: It is possible to make ID of the player in a chat in messages?
Post by: CANYON on August 26, 2012, 04:49:59 am
It is possible to make ID of the player in a chat in messages? :)

example:

CANYON [ID:0]: hello world
or
CANYON (0): hello world
Title: Re: It is possible to make ID of the player in a chat in messages?
Post by: Thijn on August 26, 2012, 10:35:42 am
Sure :)
Code: [Select]
function onPlayerChat( player, text )
{
Message(player.Name + " (" + player.ID + "): " + text );
return 0;
}
Title: Re: It is possible to make ID of the player in a chat in messages?
Post by: CANYON on August 26, 2012, 11:11:00 am
Wow! Thank you very much ;)

And it is possible to make so that color of a name of the player was his?
Title: Re: It is possible to make ID of the player in a chat in messages?
Post by: Rocky on August 26, 2012, 05:08:35 pm
function onPlayerChat( player, text )
{
   Message(player.ColouredName + " (" + player.ID + "): " + text );
   return 0;
}