03.05.2012, 00:07
pawn Код:
public OnPlayerLogin(playerid,password[])
{
new h_password[ 129 ];
WP_Hash( h_password, sizeof ( h_password ), password );
if(strcmp ( h_password, pData[ playerid ][ pPassword ] ) )
{
INI_ParseFile(UPath ( playerid ), "LoadUser_%s", .bExtra = true, .extra = playerid);
SendClientMessage(playerid,C_GREEN,"Correct Password");
}
else
{
new dbug[500];
format(dbug,sizeof(dbug),"Password %s [ %s ]",password,h_password);
print(dbug); // thats for debuging
SendClientMessage(playerid,C_RED,"Wrong Password");
SPD(playerid,D_LOGIN,PASSWORD,""CSERVER"",""CWHITE"Please Enter Your Password ToLogin","Proceed","Quit");
}
return 1;
}