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