command-guess
A guesser command who uses levenshtein distance algoritm written in pawn.
Now it's support ZCMD-like command processor!
Maybe if you want this to?support more command processor, just make an issue on my github?and i'll figure it out.
Usage:
Downloads:
GitHub Release
A guesser command who uses levenshtein distance algoritm written in pawn.
Now it's support ZCMD-like command processor!
Maybe if you want this to?support more command processor, just make an issue on my github?and i'll figure it out.
Usage:
PHP Code:
#include <a_samp>
#include <izcmd>
#include <command-guess>
main() {
? ? print("Script loaded");
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
? ? if (!success) {
? ? ? ? new
? ? ? ? ? ? guessCmd[32];
? ? ? ? CommandGuess(guessCmd, cmdtext);
? ? ? ? SendClientMessageEx(playerid, -1, "{FF0000}ERROR:{FFFFFF} \"%s\" is not found, did you mean \"%s\"?", cmdtext, guessCmd);
? ? ? ? return 1;
? ? }
? ? return 1;
}
Downloads:
GitHub Release
???? ???? ????? ?? ???????? ???? ?????, ?? ???? ???? ?? ?????? ?? ??? ???? ???? ???? ?? ??? ???? ??? ???? ??? ?? ?? ?????? ??????