Liberty Unleashed

Scripting => Script Help => Topic started by: Beary on July 23, 2015, 05:05:52 am

Title: Script needs help
Post by: Beary on July 23, 2015, 05: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?