//----- Paswörter -----\\
Ganz unten:
stock Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
return 1;
}
ÜBER die Abfragen der Passwörter:
new pwd[36];
pwd = Encrypt(inputtext(playerid));
//----- Egal welche Passwörter eingeben und trotzdem einloggen -----\\
GivePlayerMoney(playerid,dini_Int(save,"Geld"));
SetPlayerSkin(playerid,dini_Int(save,"Skin"));
SetPlayerWantedLevel(playerid,dini_Int(save,"Wanteds"));
pInfo[playerid][autos] =dini_Int(save,"Autoführerschein");
pInfo[playerid][flug] =dini_Int(save,"Flugführerschein");
pInfo[playerid][mofa] =dini_Int(save,"Mofaführerschein");
pInfo[playerid][kfz] =dini_Int(save,"Lkwführerschein");
pInfo[playerid][motorrad] =dini_Int(save,"Motorradführerschein");
pInfo[playerid][boot] =dini_Int(save,"Bootsführerschein");
pInfo[playerid][alevel] =dini_Int(save,"Adminlevel");
pInfo[playerid][fRank] =dini_Int(save,"Fraktionsrank");
/\
|
Das hat nichts unter OnPlayerConnect zu tun
(Ungetestet ;))
Viel Spaß