• 1-use concommand?
    6 replies, posted
Is there a way to make a concommand ONLY be used ONCE by a SteamID? so to say, you type in "hello" in console and it gives you a weapon, then you can't use that concommand again.
[code] concommand.Add("hello",function(ply) if ply.hello then return end ply:Give("weapon_357") ply.hello = true end) [/code]
[QUOTE=Kevlon;49206407][code] concommand.Add("hello",function(ply) if ply.hello then return end ply:Give("weapon_357") ply.hello = true end) [/code][/QUOTE] attempt to index a nil value! ( hello )
[QUOTE=AIX-Who;49206478]attempt to index a nil value! ( hello )[/QUOTE] That's not how it works...
Maybe [CODE]if ply.hello ~= nil then return end[/CODE]
[QUOTE=MPan1;49207269]Maybe [CODE]if ply.hello ~= nil then return end[/CODE][/QUOTE] My code is syntax-correct. He just said that for no reason
Thanks Kevlon!
Sorry, you need to Log In to post a reply to this thread.