GetMaxPlayers: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:


==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 11:01, 26 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." )