Login-Register -.-
#1

SOLVED
Reply
#2

haven't try this?

pawn Код:
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");
}
Reply
#3

SOLVED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)