Scripting/Squirrel/Events/Player/onPlayerRconLoginAttempt
From VC-MP Wiki
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
- onPlayerJoin
- onPlayerPart
- onPlayerCrashDump
- onPlayerSpawn
- onPlayerDeath
- onPlayerKill
- onPlayerTeamKill
- onPlayerChat
- onPlayerAction
- onPlayerPM
- onPlayerFailedPM
- onPlayerTeamChat
- onPlayerCommand
- onPlayerHealthChange
- onPlayerArmourChange
- onPlayerWeaponChange
- onPlayerCashChange
- onPlayerScoreChange
- onPlayerKeyStateChange
- onPlayerMove
- onPlayerRequestClass
- onPlayerRequestAmmunation
- onPlayerRequestAmmuWeapon
- onPlayerStartSpectating
- onPlayerExitSpectating
- onPlayerRconLogin
- onPlayerRconLoginAttempt
- onPlayerFall
- onPlayerVersion
