diff --git a/pointsystemlib.php b/pointsystemlib.php index bc3ccb2..acc532b 100644 --- a/pointsystemlib.php +++ b/pointsystemlib.php @@ -25,7 +25,13 @@ function points($name) { $temp = $db["points"][$name]; return $temp; } -function addpoint($name, $point, $reason="") {} +function addpoint($name, $point, $reason="") { + chechtimebanpoint(); + $db = loaddb(); + $db["points"][$name] += $point; + $db["logs"][$name][] = "Add " . $point . "points: " . $reason; + savedb($db); +} function rmpoint($name, $point, $reason="", $force=true) {} function paypoint($byname, $toname, $point, $reason="") {} function logpoint($name) {}