if(dialogid == DIALID+1)
{
if(response)
{
if(dini_Exists(ustring))
{
GetPlayerName(playerid, name, sizeof(name));
format(ustring, sizeof(ustring), "UltraPadmin/Users/%s.txt", name);
new password[256];
password = dini_Get(ustring,"PLAYERPASSWORD");
if(strcmp(password,inputtext,false,strlen(password)) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{00ff00}You successfully logged in!");
}
else
{
ShowPlayerDialog(playerid, DIALID+1, DIALOG_STYLE_PASSWORD, "Login", "This account is registered! Please type your password here or you will be kicked!", "Login", "Kick me");
}
}
if(!dini_Exists(ustring))
{
SendClientMessage(playerid, 0xFFFFFFFF, "{ff0000}You are not registered!");
}
}
else
{
Kick(playerid);
}
}
}
Dini_Set(ustring, "PLAYERREGISTERDATE", regdate);
"UltraPadmin/Users/%s.txt"
Try:
pawn Код:
pawn Код:
|
PLAYERREGISTERDATE=13/5/2012 PLAYERIP=128.71.158.104 PLAYERMONEY=30000