Jaspers Pin Code Script V1.0
This script requires all users to create a pincode.
If there is no pincode registered to the player, the player will automatic have to create a pincode after login.
This script is compatible with most registration systems because the pincode login/creation will be called once when the player spawns. This could be considered an additional login system.
If the player presses ESC or clicks on the X, the player will be kicked if they didn't pass it
Why would this be useful?
This script uses textdraws and is therefore useful if the user may have been infected with a key logger.
The user does not have to insert anything but will pass trough the pad by clicking on numbers.
License
This work is licensed under a
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. You may edit, but not re-upload without my permission. Exceptions can be made by contacting me simply by PM on this forum.
Commands
In this script, only 1 command is used.
To use this command, you have to be logged in to the rcon. eg /rcon login
USAGE: /deletepincode [PlayerName]
With this command you are able to delete a players pincode.
Requirements
- zcmd -
http://forum.sa-mp.com/showthread.php?t=91354
- sscanf -
http://forum.sa-mp.com/showthread.php?t=570927
Installation- Download the database and script in this topic.
- Open the script and change the following settings to your liking.
Code:
#define SERVER_NAME "Server Name" // Enter the name of your server here.
#define DIALOG_NONE 7279 // Make sure this number does not interfere with other dialogs in your scripts/gamemode.
#define MAX_LOGIN_ATTEMPTS 5 // How many tries for logging in does the player have before the server kicks the player?
// WARNING: Only set MAX_LOGIN_ATTEMPTS higher then 5 if you have knowledge of editing the following function: CheckAttempt(playerid)
- Compile the script and place the JaspersPinCodeScript.amx file in your /filterscripts/ folder.
- Put the database pspincodes.db in your /scriptfiles/ folder.
- Add JaspersPinCodeScript to filterscripts in server.cfg
Download
Script:
https://pastebin.com/pRyqG86N
Database:
https://ufile.io/8ha9w - mirror 1
Database:
https://files.fm/u/g4anhd7r - mirror 2
Bugs
None known at the moment. Please post in this topic if you find any or have suggestions.
Support
I provide full support on this script so if you need any, feel free to post in this topic.