Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ChangePassWord By : Artyom Triodin
- //Important Download Dini.inc if you dont have and Create a Folder In scriptfiles the folder's Name Need To Be - Logins
- // Have Any Problems Send Me A Message !!! :) !!! yes it is have 6 warrning but dont worry its nothing thats only the lose indetation warrning only cuz of pastebin txt :) !!!
- //Have Errors Ask Me just Message !!!
- //Add Me On Facebook : https://www.facebook.com/#!/aartyom.ttriodin
- //All Credit To Artyom Triodin Thx For Downloading :) !!! ... Enjoey ... . .. . . . .. . .
- #include <a_samp>
- #include <dini>
- #define NEWPASS 1
- #define OLDPASS 2
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0xFFFF00C8, "/ChangePass if You Dont Like Your Old Pass");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/ChangePass", cmdtext, true, 10) == 0)
- {
- new Logins[28];
- GetPlayerMoney(playerid);
- GetPlayerMoney(dini_Int(Logins, "Cash"));
- if(GetPlayerMoney(playerid)) return GivePlayerMoney(playerid, dini_Int(Logins, "Cash"));
- new pName [MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(Logins, sizeof(Logins), "/Logins/%s.txt", pName);
- if(dini_Exists(Logins))
- {
- SendClientMessage(playerid, 0x00FF00C8, "Type Your Old Password !!! ");
- ShowPlayerDialog(playerid, OLDPASS, DIALOG_STYLE_PASSWORD, "Old Password Recuided !!! ...", "Type Your Old Password : ", "Done", "Cancel");
- ShowPlayerDialog(playerid, NEWPASS, DIALOG_STYLE_INPUT, "ChangePassword", "Change Yor Password!!!", "Change", "Cancel");
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == NEWPASS)
- {
- if(response == 0)
- {
- new pName;
- GetPlayerName(playerid, "%s", pName);
- }
- if(response == 1)
- {
- if(!strlen(inputtext))
- {
- SendClientMessage(playerid, 0x00FF00C8, "Change Yor Password!!!");
- ShowPlayerDialog(playerid, NEWPASS, DIALOG_STYLE_INPUT, "Password Change......", "Please Create Your Password!!!", "Register", "Quit");
- }
- Register(playerid, (inputtext));
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- stock Register(playerid, key[])
- {
- new Logins[28];
- new pName [MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(Logins, sizeof(Logins), "/Logins/%s.txt", pName);
- dini_Create(Logins);
- dini_Set(Logins, "Passwort", key);
- dini_IntSet(Logins, "Freaktion", 0);
- SendClientMessage(playerid, 0x00FF00C8, "Passwrd Changed :) !!! :) :)");
- return 1;
- }
- stock Login(playerid, key[])
- {
- new Logins[28];
- new pName [MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(Logins, sizeof(Logins), "/Logins/%s.txt", pName);
- if(!strcmp(key, dini_Get(Logins, "passwort"), false))
- {
- SendClientMessage(playerid, 0x00FF00C8, "You SuccesFully Logged-In !!!!!!!!!!!!");
- return 1;
- }
- else
- {
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT,""COL_RED"TRY AGAIN",""COL_RED"You Have Entered An Incorrect Password.\n"COL_GREEN"Type Your Real Password If You Forgut Your Password Create A New Account Or Ask Th Administrator!!!\n"COL_BLUE"Type Your Password!!!:::\n"COL_YELLOW"Server Mod By Artyom Triodin\n"COL_BLUEE"System By Artyom Triodin","Login","Quit");
- return 1;
- }
- }
- //ChangePassWord By : Artyom Triodin
- //Important Download Dini.inc if you dont have and Create a Folder In scriptfiles the folder's Name Need To Be - Logins
- //Have Errors Ask Me just Message !!!
- //Add Me On Facebook : https://www.facebook.com/#!/aartyom.ttriodin
- //All Credit To Artyom Triodin Thx For Downloading :) !!! ... Enjoey ... . .. . . . .. . .
Advertisement
Add Comment
Please, Sign In to add comment