1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Changing old /advert to add more color

Discussion in 'DarkRP Modding Questions & Help' started by dom 2, Jan 5, 2018.

  1. dom 2

    dom 2 New Member

    I'm using the old advert chat command on my server and I was wondering if there was a way to add an additional color that would fill in for the user's name. (In regular advert it's one color for [Advert] Name and another one for the text, I would like one specifically for the name). Thanks!
  2. RFK_2018

    RFK_2018 New Member

    I believe this requires some editing, not too sure. Never bothered to try with how DarkRP had its thing setup so Just wrote the most simple server information to client, to get what the player typed and have it display on the players chat using chat.AddText

    My Funtion: ply:Tell( Color( 180, 0, 0 ), "[ADVERT] ", team.GetColor( ply:Team() ), ply:Nick(), color_white, " " .. text )

    How the client reads it. chat.AddText( *Excatly what's inside ply:Tell* )

Share This Page