Pointsystem

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

      Pointsystem

      Product: Pointsystem

      Version: n.A.

      Editor: Alex

      Developer: FreeUser

      Year of development: 2004

      Needed ressources: -

      Alternative ressources: -

      Screenshots: -


      Description:

      The pointsystem is an addon that gives your users points for the time they spend online. 1min = 1 point
      You can use this to create top lists of users who are online the most, ett....
      Good luck

      If you wish to make it a point system based on words, and not online time, follow these instructions.

      Firstly, we need to stop the point system from working.

      Find custom_logout_logger => [

      Remove 'plugindir::PointSystem.pm',

      Save Settings.dat.

      Open TextCommands.pm

      Find the following code in sub text_handler

      Quellcode

      1. if (my $error=check_gagged($main))
      2. {
      3. return $error;
      4. }


      And add, just below the }

      Quellcode

      1. else
      2. {
      3. my @points = split(/\s/,$text);
      4. my $count = 0;
      5. my $count2 = 0;
      6. my $count3 = $main->getOnlineUsersCount();
      7. if ($count3 > '1')
      8. {
      9. foreach (@points)
      10. {
      11. if ($count < 2.01)
      12. {
      13. $count = $count+0.2;
      14. }
      15. }
      16. }
      17. my $user = $main->{current_user};
      18. my $points = $user->{points};
      19. my $spam = $user->{spam};
      20. $main->loadUser($user->{name},$user);
      21. $user->{points} = $points + $count;
      22. $main->saveUser($user);
      23. }


      Post here if you have any problems, and I will help you.

      ----------------------------

      Have fun. Best regards, your GTChat-Developer.com - Team!

      Zum Eintrag in der Datenbank