26.06.2013, 16:55
pawn Код:
CMD:changepass(playerid, params[])
{
new player[MAX_PLAYER_NAME],string[256]; // the player name, // and the string for the path
if(sscanf(params, "s[256]", parms))return SendClientMessage(playerid, -1, "/changepassword [password]");//sscanf, what ever u write after /change
format(string, 256, "/%s.ini", player);//put ur ini path here but keep the player
new INI:file = INI_Open(string); // opening the path
INI_WriteString(file, "Password", params);//writing in the path
INI_Close(file);// close the file
return 1;
}