01.04.2012, 10:50
(
Последний раз редактировалось vassilis; 06.07.2012 в 01:11.
)
SOLVED
if(udb_hash(inputtext) == tmp)
{
gPlayerLogged[playerid] = 1;
PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
SendClientMessage(playerid,-1, "[SYSTEM]: Successfully logged in!");
if(PlayerInfo[playerid][pAdminLevel] > 1)
{
GameTextForPlayer(playerid,"~r~server~w~:welcome back admin!",3000,3);
}
}
else
{
SendClientMessage(playerid, -1,""COL_RED"SERVER"COL_WHITE":The password you inserted was "COL_RED" wrong "COL_WHITE" ,please insert your password!");
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Welcome Back", "Welcome back to Chaos Cops N Robbers server Developed by Unlimited Gaming 2012!\nInvite players to your house or go rob.Don't forget to arrest some criminals!\n Please insert your password below.", "Login", "Leave");
}