Are there console commands for it? I need a console command that can give people points (basically the functionality of going into the admin tap, right clicking and selecting give points, but in a rcon console command)
if there are console commands, what is the give one? and also, if there arent but theres a known way of adding console commands to do what im trying to accomplish (give points for undefined’s pointshop), then please link thread.
I found this, but it dosen’t work…
concommand.Add("ps_give_points", function(ply, cmd, args) if #args != 2 then ply:ChatPrint("Missing arguments! ps_give_points <player-id> <points>") return end other = player.GetByID(args) points = tonumber(args) if points < 0 then ply:ChatPrint("You can't give a negative amount of points") return end if (ply:IsAdmin()) and other and points and IsValid(other) and other:IsPlayer() then other:PS_GivePoints(points) other:PS_Notify(ply:Nick(), ' gave you ', points, ' points.') ply:PS_Notify('You gave "', other:Nick(), '" ', points, ' points.') end end)