Author Topic: Script needs help  (Read 820 times)

Beary

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-5
    • View Profile
Script needs help
« on: July 23, 2015, 06:05:52 am »
function onPlayerChat( player, text )
{
if (player.Colour = 1 )
{
   Message("[#00ffff][FBI] "+ "[#ff8000]- " + player.ColouredName + " [#ffffff]: " + text );
}
if (player.Colour = 2 )
{
   Message("[#00ffff][LCPD] "+ "[#ff8000]- " + player.ColouredName + " [#ffffff]: " + text );
}
   return 0;
}

This is my source has two roles, colors are 1 and 2, although you can use, but when the FBI sent are displayed?

How can I make?

 

© Liberty Unleashed Team.