Author Topic: It is possible to make ID of the player in a chat in messages?  (Read 1490 times)

CANYON

  • Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
    • View Profile
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
« Last Edit: August 26, 2012, 05:51:59 am by CANYON »

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: It is possible to make ID of the player in a chat in messages?
« Reply #1 on: August 26, 2012, 11:35:42 am »
Sure :)
Code: [Select]
function onPlayerChat( player, text )
{
Message(player.Name + " (" + player.ID + "): " + text );
return 0;
}

CANYON

  • Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
    • View Profile
Re: It is possible to make ID of the player in a chat in messages?
« Reply #2 on: August 26, 2012, 12:11:00 pm »
Wow! Thank you very much ;)

And it is possible to make so that color of a name of the player was his?

Rocky

  • Full Member
  • ***
  • Posts: 105
  • Karma: +5/-3
    • View Profile
Re: It is possible to make ID of the player in a chat in messages?
« Reply #3 on: August 26, 2012, 06:08:35 pm »
function onPlayerChat( player, text )
{
   Message(player.ColouredName + " (" + player.ID + "): " + text );
   return 0;
}
Look for lu server testers, Requirements are:
English good enough to communicate.
Good knowledge about gaming.

PM me those who are interested.

 

© Liberty Unleashed Team.