17.02.2018, 16:53
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.
- zcmd - https://sampforum.blast.hk/showthread.php?tid=91354
- sscanf - https://sampforum.blast.hk/showthread.php?tid=570927
Installation
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.
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.
Screenshots
https://preview.ibb.co/mQyGRS/sa_mp_542.png
https://preview.ibb.co/iWHzfn/sa_mp_543.png
https://preview.ibb.co/nxOi6S/sa_mp_544.png
https://preview.ibb.co/eU9C0n/sa_mp_545.png
https://preview.ibb.co/cLJi6S/sa_mp_546.png
https://preview.ibb.co/jgT5Ln/sa_mp_547.png
Requirementshttps://preview.ibb.co/mQyGRS/sa_mp_542.png
https://preview.ibb.co/iWHzfn/sa_mp_543.png
https://preview.ibb.co/nxOi6S/sa_mp_544.png
https://preview.ibb.co/eU9C0n/sa_mp_545.png
https://preview.ibb.co/cLJi6S/sa_mp_546.png
https://preview.ibb.co/jgT5Ln/sa_mp_547.png
- zcmd - https://sampforum.blast.hk/showthread.php?tid=91354
- sscanf - https://sampforum.blast.hk/showthread.php?tid=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
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.