Scripting/Squirrel/Events/Player/onPlayerRconLoginAttempt

From VC-MP Wiki

Jump to: navigation, search

This event is called when a player tries to log in as an RCON admin with an invalid password.

Syntax

function onPlayerRconLoginAttempt( player, pass )

Parameters

  • player - The pointer of the player
  • pass - The password player tried to use

Example

This example kicks the player from the server if they try to log in with an invalid password.

function onPlayerRconLoginAttempt( player, pass )
{
     KickPlayer( player );
}

Notes

The function KickPlayer was also used in in this example. More info about it in the corresponding page.

Related Events

Personal tools
squirrel scripting