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.

Problem with script

Discussion in 'Player General Chat' started by PYfffE, Feb 5, 2019.

  1. PYfffE

    PYfffE New Member

    Hi.I want to create a script, but I have a prolem.
    Code (Text):
    local function spawn( player )
       print( player:Nick().. " has spawned!." )
       player:SetArmor( 100 )
    end
    hook.Add( "PlayerSpawn", "some_unique_name", spawn )
    The "print" function is called after each respawn and is works, but player does not receive armor.
    What the problem is?
     
  2. Pab14567

    Pab14567 Well-Known Member

    where is this added ?

    make sure you specify which player s receiving the armor
     

Share This Page