Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:passwordigraca(playerid,params[])
- {
- new ime[40];
- new acc[40];
- new password[60];
- new string[128];
- new pom;
- if(sscanf(params, "s[30]s[30]", ime,password)) return SCM(playerid,-1, "/passwordigraca [Nick] [Novi Password]");
- format(acc,30,"/Korisnici/%s.ini",ime);
- pom = udb_hash(password);
- if(!fexist(acc)) return SCM(playerid, -1, "Taj nick ne postoji!");
- new INI:iniFile = INI_Open(acc);
- INI_WriteInt(iniFile,"Lozinka",pom);
- INI_Close(iniFile);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement