Author Topic: ChatMapVote  (Read 3471 times)

0 Members and 1 Guest are viewing this topic.

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
ChatMapVote
« on: October 22, 2007, 09:54:33 pm »
this has probably been done before, but...

Script Name: ChatMapVote
Script Description: Command: !map  [name] (two spaces after !map to avoid confusion) votes [name].pms, just made to make map voting easier for people with too many climb maps in their maps folder.
Original Author(s): me, possibly someone before me, didn't check...
Core Version: 2.6.3 I think...
Code:
(from OnPlayerSpeak)
Code: [Select]
    if FileExists('Maps/'+Temp2+'.pms') then begin
      if ContainsString(ReadFile(Maplist),Temp2) then begin
        StartVoteMap(ID,Temp2);
      end else WriteConsole(ID,'Cannot vote map, map not found in mapslist.',$FF50FF50);
    end else WriteConsole(ID,'Cannot vote map, map does not exist.',$FF50FF50);

File is attached
« Last Edit: October 23, 2007, 12:38:03 pm by Kavukamari »
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline Master Chief43

  • Soldier
  • **
  • Posts: 224
  • When life gives you lemons, eat them :D
Re: ChatMapVote
« Reply #1 on: October 22, 2007, 11:08:22 pm »
hm... the map description is not really clear...
What must you type?
What happens after the map has been voted for...? (when it wins)
In-Game Name: "Master Chief43"
Favorite Map: ctf_Ash
Favorite Mods: Special Operation 2.0, Original Soldier 1.9
Favorite Guns: [MP5][AK74][socom][Barret]

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ChatMapVote
« Reply #2 on: October 23, 2007, 12:41:14 am »
^its just a normal mapvote. that means if u press f12 it will change map and if u press f11 it wont. -.-

well no offence but you can type /votemap mapname just as well, and theres even a built in time limit, so id say this script is kinda useless except for the noobs who dont know /votemap ^_^

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: ChatMapVote
« Reply #3 on: October 23, 2007, 05:18:30 am »
^its just a normal mapvote. that means if u press f12 it will change map and if u press f11 it wont. -.-

well no offence but you can type /votemap mapname just as well, and theres even a built in time limit, so id say this script is kinda useless except for the noobs who dont know /votemap ^_^
I didn't know about it until you (or some1 in ur server, cant remember) told me about it.. :)
Latest server as of Oct. 22, 07 is 2.6.3 I believe..

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ChatMapVote
« Reply #4 on: October 23, 2007, 09:54:36 am »
^ so from now on you should read the servers and soldats changelogs to know about all secret commands :P

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: ChatMapVote
« Reply #5 on: October 23, 2007, 12:37:11 pm »
... I didn't know about /votemap ... would've been useful :P

are there copies of changelogs on the forums (here)?
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline blake

  • Major(1)
  • Posts: 28
Re: ChatMapVote
« Reply #6 on: October 30, 2007, 02:37:01 am »
Script Description: Command: !map  [name] (two spaces after !map to avoid confusion) votes [name].pms, just made to make map voting easier for people with too many climb maps in their maps folder.


/votemap (mapnamehere) exists.
Edit: Damnit, already been posted.