• steam id weapon
    1 replies, posted
Is there a way i can make it so a certain player is given a weapon based on their steamid i know it is possible this is what i have but i get a syntax error if ply:SteamID() == "steamidhere" then ply:Give("weaponhere")
[lua]if ply:SteamID() == "steamidhere" then ply:Give("weaponhere")[/lua] You forgot the end statement [lua] if ply:SteamID() == "steamidhere" then ply:Give("weaponhere") end [/lua] Also, ply must exist. If you use this in a function/hook that does not have this declared. You will get null variable errors, :D.
Sorry, you need to Log In to post a reply to this thread.