Scripting/mIRC/Functions/Misc/SetMaxPlayers

From VC-MP Wiki

Jump to: navigation, search

This will set the maximum ammount of players allowed in the server

Syntax

alias vcmp.setmaxplayers !return $dll( " $+ $scriptdirvcmp.dll $+ ", SetMaxPlayers, $1- )

Arguments

  • $1 - ServerID
  • $2 - MaxPlayers

Example

This will set the max players to 25 when the rcon is connected

on *:SIGNAL:vcmp.server.connected:{
     vcmp.setmaxplayers $1 25
}

Notes

This example uses vcmp.server.connected.

Related Functions

Personal tools
squirrel scripting