I have been working on my starwars rp server (from scratch) and I have come across something I never thought of doing before and I really look forward to doing this; color chat with regiment and class tags (just networked strings) but in the players name when he or her talk in chat.
How might I do this, I have looked up how and all I can find is OnPlayerChat, apon editing and bug testing I had no luck except errors.
Any ideas?
-- Ranking names in order, the rank that comes first is always used for new players!
GM.Config.Ranks = { "Cadet", "PVT", "PFC", "LCPL","CPL", "SGT", "CSGT", "SGM", "COM" }
-- Default Regiments in order (You can add new regiments ingame)
GM.Config.DefaultRegiments = {
{
name = "Recruit",
color = Color( 200, 200, 200 ),
weapons = { "weapon_fists" },
model = "",
id = 1
},
{
name = "Storm Trooper",
color = Color( 200, 10, 200 ),
weapons = { "weapon_fists" },
model = "",
id = 2
}
}
player:GetNWString( “RPRank” ) and player:GetNWInt( “Regiment” ) – Returns the regiments number id.
Can someone help?