1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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.

HELP! How to make some professions receive messages on one phrase? (I'm Russian)

Discussion in 'DarkRP Modding Questions & Help' started by 100056Live, May 22, 2019.

Tags:
  1. 100056Live

    100056Live New Member

    I am creating an addon for a phone in which the message was sent to various professions, for example, I want to use the command /sos to call for a medic,firefighter and so on, as the police /911. How to do this? (I'm russian)
     
  2. Emperor Penguin

    Emperor Penguin New Member

    for _, v in ipairs(player.GetAll()) do
    if v:Team() == TEAM_COPS then
    DarkRP.talkToPerson(v, Color(255,211,0), "[911] ", Color(255,0,0), text")
    end
    end

    Вместо TEAM_COPS свой идентификатор профессии копов, а в text передавай текст...
     
    Last edited: Jun 3, 2019

Share This Page