Author Topic: Map Rater/Randomizer  (Read 1326 times)

0 Members and 1 Guest are viewing this topic.

Offline ShadowDancer

  • Major(1)
  • Posts: 22
Map Rater/Randomizer
« on: March 27, 2010, 07:08:41 am »
Script Name:Map Rater/Randomizer
Script Description: Allows players to rate maps
Original Author(s): ShadowDancer (Randomizing algorithm by JFK)
Version:  beta
Core Version: 2.6.5
Code: http://nopaste.gamedev.pl?&id=6611

How it works? When player type /rate he changes current map rate. Every hour server making new maplist. Map with rating 5 will appear 5 times in maplist, 3 - 3 times etc. You can change how many times will apear map with 0 votes(default 3).

Commands
/rate [1-5] - rates map
/rating - display current map rating
/rating [map name] - display map rating
/unrate - makes vote invalid
/maplist - displays list of all maps
/maprandomize - (AdminOnly)makes new maplist

Before you launch script be sure, that DataFile directory exists.
It's beta version, I'm currently testing it.
« Last Edit: March 27, 2010, 12:36:27 pm by ShadowDancer »
Sorry, I'm not native English speaker...

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Map Rater/Randomizer
« Reply #1 on: March 27, 2010, 10:34:55 am »
I don't really mind getting no credit for stuff I made, but I don't like too see others getting it for stuff I made.

The part you ripped out of Hacktanks script was made by me, he never mentioned it and I don't really care, but since you mention him here it gives the impression that he made it.

http://forums.soldat.pl/index.php?topic=34305.msg410785#msg410785

It's a simple piece of code, but it seems ppl can't think of it themselves, so you guys are welcome. Don't forget that I'm the king of randomizing and regular expressions around here, heh ;)

Also, nice script, both functions already existed but it seems a good idea to combine them.
Come join: EliteCTF
Listen to: My Music