Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 05 Aug 2017 04:57 PM |
| I want admins in my game to have a special text when they chat, I have this: AdminID={ ########## = true, [52591864] = true, [17057521] = true, [46448050] = true } if AdminID[game.Players.LocalPlayer.UserId] then useFont=Enum.Font.Code useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize useNameColor = Color3.new(255/255,255/255,0/255) useChatColor = Color3.new(255/255,255/255,0/255) useChannelColor = Color3.new(255/255,255/255,0/255) else useFont=extraData.Font or ChatSettings.DefaultFont useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize useNameColor = extraData.NameColor or ChatSettings.DefaultNameColor useChatColor = extraData.ChatColor or ChatSettings.DefaultMessageColor useChannelColor = extraData.ChannelColor or useChatColor end Problem is that it only shows locally and not to the whole server, this is in DefaultChatMessage |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 05 Aug 2017 05:00 PM |
AdminID={ [43525234] = true, [52591864] = true, [17057521] = true, [46448050] = true }
if AdminID[game.Players.LocalPlayer.UserId] then useFont=Enum.Font.Code useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize useNameColor = Color3.new(255/255,255/255,0/255) useChatColor = Color3.new(255/255,255/255,0/255) useChannelColor = Color3.new(255/255,255/255,0/255) else useFont=extraData.Font or ChatSettings.DefaultFont useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize useNameColor = extraData.NameColor or ChatSettings.DefaultNameColor useChatColor = extraData.ChatColor or ChatSettings.DefaultMessageColor useChannelColor = extraData.ChannelColor or useChatColor end ________ |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 05 Aug 2017 05:03 PM |
| I meant to say that I'm trying to have admins in my game have special chat but it only works locally |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2017 05:05 PM |
| which one of the modules are you attempting to change? i would recommend removing the admin chat roblox has in place and editing it accordingly |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 05 Aug 2017 05:09 PM |
| I am editing DefaultChatMessage |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2017 05:22 PM |
| you should be editing ExtraDataInitializer |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 05 Aug 2017 05:50 PM |
Is this the proper way of adding userids?
Players = { { --- Left as an example UserId=46448050, UserId=43525234, UserId=52591864, UserId=17057521, UserId=47210434, ChatColor = Color3.new(1, 215/255, 0) } } } |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2017 10:13 PM |
| i didn't use their setup because i wanted to have custom name colors as well as custom chat colors, you can probably do it for yourself as well if you edit some of the functions |
|
|
| Report Abuse |
|
|