Skip to content

function ban (server-side)

Available since version: 0.0.4

Note

The reason string can't be longer than 255 characters.

This function will ban the player on the server.

Declaration

void ban(int id, int minutes = 0, string reason)

Parameters

  • int id: the player id.
  • int minutes: the time how long ban will take in minutes. Passing 0 will cause the player to have permanent ban.
  • string reason: ="" the reason why player was banned.