How i can replace
if code:GetValue() == "AUTTTISM" then
(That not working)
concommand.Add("promocode", function()
local main = vgui.Create("DFrame")
main:SetSize(300, 90)
main:MakePopup()
main:Center()
main.Paint = function()
Derma_DrawBackgroundBlur(main, main.startTime)
draw.RoundedBox(0, 5, 5, 500, 385, Color(0, 0, 0, 200))
end
local code = vgui.Create("DTextEntry",main)
code:SetSize(280,20)
code:SetPos(10,60)
code:SetMultiline(false)
code.OnEnter = function()
if code:GetValue() == "AUTTTISM" then
timer.Create("code", 999999, 1, function() -- simple use
LocalPlayer():PS2_AddStandardPoints(200)
end)
end
end
end)
Thanks in advance