Help :)
#1

How i can create command that change password in dudb inclue


i need just the function who are change password thnx all
Reply
#2

pawn Код:
if(strcmp(cmd, "/changepass", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "You need to login first.");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "USAGE: /changepass [new password]");
                return 1;
            }
            strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);
            SendClientMessage(playerid, COLOR_YELLOW, "Password has been changed successfuly");
        }
        return 1;
    }
Change pPassword with the password variable used in your registration system.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)