Difference between revisions of "StartVoteMap"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "===From the Scripting Manual=== ''procedure StartVoteMap(voter: byte; mapname: string);'' '''Parameter Info:''' voter (Byte): Player ID of the player who will appear as ...")
 
(Fixed the declaration & description)
 
Line 1: Line 1:
 
===From the Scripting Manual===
 
===From the Scripting Manual===
  ''procedure StartVoteMap(voter: byte; mapname: string);''
+
  ''procedure StartVoteMap(Mapname, Reason: string);''
 
   
 
   
 
  '''Parameter Info:'''
 
  '''Parameter Info:'''
   voter (Byte): Player ID of the player who will appear as the Vote Starter.
+
   Mapname (String): Case sensitive name of the map to be voted, excluding the .PMS file extension.
  mapname (String): Case sensitive name of the map to be voted, excluding the .PMS file extension.
+
  Reason (String): Text that will appear as the reason of the Map Vote.
 
   
 
   
 
  '''Description:'''
 
  '''Description:'''
   This function will start a map vote for (mapname) and will appear as started by (voter).
+
   This function will start a map vote for (Mapname) and will appear as started by '''Server''' with the (Reason) as a reason.
 
      
 
      
 
==Examples==
 
==Examples==
<source lang="pascal">StartVoteMap(1,'ctf_Kampf'); //Start a map vote for ctf_Kamf from player 1</source>
+
<source lang="pascal">StartVoteMap('ctf_Kampf', 'Time to spray!'); //Start a map vote for ctf_Kamf</source>
  
  

Latest revision as of 23:03, 7 June 2013

From the Scripting Manual

procedure StartVoteMap(Mapname, Reason: string);

Parameter Info:
 Mapname (String): Case sensitive name of the map to be voted, excluding the .PMS file extension.
 Reason (String): Text that will appear as the reason of the Map Vote.

Description:
 This function will start a map vote for (Mapname) and will appear as started by Server with the (Reason) as a reason.
    

Examples

StartVoteMap('ctf_Kampf', 'Time to spray!'); //Start a map vote for ctf_Kamf


External Links