/changepass command
#4

Quote:
Originally Posted by BlackBank3
Посмотреть сообщение
pawn Код:
COMMAND:changepass(playerid, params[])
{
    new file[256], PlayerName[MAX_PLAYER_NAME], buf[150];
    GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
    if(Account[playerid][Logged] != 1) return SendClientMessage(playerid,Red,"You are not logged in, so you can't use this command!");
    if(strlen(params) >= 3)
    {
        format(file, sizeof(file), "users/%s.txt", PlayerName);
        WP_Hash(buf, sizeof(buf), params);
        dini_Set(file, "Password", buf);
        SendClientMessage(playerid,Green, "Your password has been succesfull changed!");
    }
    else
    {
        SendClientMessage(playerid, Red, "Your password need to be atleast 3 characters long!");
    }
    return 1;
}
Here you go.
100% Working Thanx ! +1Rep
Reply


Messages In This Thread
/changepass command - by ServerScripter - 17.09.2011, 15:33
Re: /changepass command - by Pasa - 17.09.2011, 15:52
Re: /changepass command - by BlackBank - 17.09.2011, 16:00
Re: /changepass command - by ServerScripter - 17.09.2011, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)