SetGameType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:


==See Also==
==See Also==
{{All Seeing Eye functions}}
{{ASE functions}}

Revision as of 10:54, 12 September 2006

This function sets a string containing a name for the game type. This should be the game-mode that is active, for example "Capture The Flag" or "Deathmatch". This is then displayed in the server browser and external server browsers.

Syntax

bool setGameType ( string gameType )

Required Arguments

  • gameType: A string containing a name for the game mode

Returns

Returns true if the game type was set, false if an invalid argument was passed to the function.

Example

This example sets the game type to Capture The Flag.

setGameType ( "Capture The Flag" )

See Also

Template:ASE functions