GetMaxPlayers: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 5: Line 5:
==Syntax==
==Syntax==
  int getMaxPlayers ()
  int getMaxPlayers ()
==Required Arguments==
''This function has no arguments.''


==Example==
==Example==
  playermax = '''GetMaxPlayers''' ();
  playermax = [[GetMaxPlayers]] ();
  serverChat ( "There are currently ", playermax, " player slots in this server." );
  [[serverChat]] ( "There are currently ", playermax, " player slots in this server." );

Revision as of 19:54, 25 March 2006

Description

This function returns the maximum number of player slots on the server.

Syntax

int getMaxPlayers ()

Required Arguments

This function has no arguments.

Example

playermax = GetMaxPlayers ();
serverChat ( "There are currently ", playermax, " player slots in this server." );