php unscrambler API (NOT A cleo/prog) (for lsrp and gms with unscramble required)

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
I had this unscramble api made with a looot of help from stackoverflow, google and many websites and my shit php skills.
but this shit works
80% of this is made using copy pasta.
with this you can make a unscrambler for lsrp using samp funcs and http functions, all you need to do is host the api somewhere or at ur own pc for fast response and send http requests (post/get)
you can give it a list of words, I took one from google containing 467k words and its not instant but its still fast.
too bad there is no samp funcs in 0.3.DL but you can still do it with cleo  I think.

anyways here.
[attachment=5403]

I've tested the api with chrome and pawn
pawn code for testing:
Code:
forward public UpdateResponse_UNS(playerid, response_code, data[]);

public UpdateResponse_UNS(playerid, response_code, data[])
{

    if(response_code == 200)
    {
        SFM(playerid, COLOR_WHITE, "Unscrambled: {00CCFF}%s", data);
    }
    else
    {
        SFM(playerid, COLOR_WHITE, data);
    }
}

CMD:unscramble(playerid, params[])
{
new pr2[128];
if(sscanf(params, "s[128]", pr2)) return SFM(playerid, COLOR_RED, "/unscramble [word]");
    HTTP(playerid, HTTP_GET, sprintf("localhost/uns/unscramble.php?scrambled=%s", pr2), "", "UpdateResponse_UNS");
return 1;
}
some screens of test
X6nanOs.jpg

HLBqsSO.png

9xVKqgf.jpg

CG8wSNn.png

pFPezDe.jpg

You can have a word list containing characters from a server scrambled word and compile them together so then later you can have a accurate list for a specific server.
 

Attachments

  • unscrambler.zip
    1.4 MB · Views: 79

Suicide Bomb

Active member
Joined
Jun 22, 2014
Messages
100
Reaction score
1
I'm not quite sure why you'd get PHP involved in this? It's such a waste of resources.
 

niggerfaggot

New member
Joined
Jan 11, 2019
Messages
2
Reaction score
0
u still didnt answer me yet, im on samp 0.3DL and it doesnt work, how do i install it plz? ty
 
Top