w warings.php
znajdx
Kod:
$sql = "INSERT INTO " . WARNINGS_TABLE . " (userid, modid, date, value, reason, warning_viewed)
VALUES ($userid, " . $userdata['user_id'] . ", " . CR_TIME . ", $value, '$reason', 0)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not insert into warnings table', '', __LINE__, __FILE__, $sql);
}
potem dodaj
Kod:
$sql = "UPDATE " . USERS_TABLE . " SET user_points=user_points-1 WHERE user_id=$userid";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Błąd', '', __LINE__, __FILE__, $sql);
}
tu gdzie masz user_points=user_points-1 możesz sobie jedynke zmienic na inną liczbe, nie testowałem ale powinno działać
AIFM [1%] - kiedyś powstanie