Jump to content

FrN

Membru
  • Posts

    9
  • Joined

  • Last visited

    Never

FrN's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. FrN

    Problema

    Ca sa dezactivezi acele pickupuri: Pui la : public OnGameModeInit() { DisableInteriorEnterExits(); //asta return 1; }
  2. FrN

    Bug Parola

    Aici se mai uita cineva?......
  3. FrN

    Comanda necunoscuta

    Foarte bun ! 5/5
  4. FrN

    Bug Parola

    http://pastebin.com/MKVqvmjE
  5. FrN

    Bug Parola

    Am facut un test sa fiu mai sigur si am aflat : Mi-am facut un cont , m-am inregistrat cu parola " nume " apoi am inchis sv si m-am dus in server > scriptfiles>users>numelecontului si la parola era " nwoe " . Apoi am deschis serverul am intrat si am scris parola " nwoe " si nu mergea , apoi am scris parola " nume " si a mers . Am inchis iar sv , m-am dus iar in scriptfiles > users > numelecontului si am pus la adminlevel 1400 ( owner ) apoi m-am dus pe server si a mers doar parola " nwoe" . Problema pe care o vad este ca nu imi salveaza parolele corect in scriptfiles>users . In GM am cam asa la OnDialogResponse : if(dialogid == 12346 || dialogid == 12347) { if(strlen(inputtext)) { new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerLogin(playerid,tmppass); } else { new loginstring[128]; new loginname[64]; gPlayerLogTries[playerid] += 1; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{EBDB14}Parola Incorecta\n{FFFFFF}Te rugam tasteaza parola corecta!\n{FFFFFF}Parole introduse: {FA0021}%d{FFFFFF}/4 then {FA0021}Ban!",gPlayerLogTries[playerid],loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); if(gPlayerLogTries[playerid] == 4) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "ProNation AutoBot : Ai fost ban-at permanent. Motiv: Introducerea parolei gresite de 4 ori!"); Ban(playerid); } } } if(dialogid == 12345) { if(strlen(inputtext)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "users/%s.ini", sendername); new File: hFile = fopen(string, io_read); if (hFile) { SendClientMessage(playerid, COLOR_YELLOW, "Acest username exista deja in baza de date , alege altul!"); fclose(hFile); return 1; } new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerRegister(playerid,tmppass); } else { new regstring[128]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"{FFFFFF}Welcome, {F81414}%s \n \n{FFFFFF}You dont have an account.\n \nPlease register your account by typing the password below:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit"); } } if(dialogid == 50) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pSex] = 1; SendClientMessage(playerid,COLOR_YELLOW,"OK,Deci esti {FF2C00}barbat"); ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"{F81414}Alege unde vrei sa fi spawnat","Los Santos \nSan Fierro \nLas Venturas","Select",""); } else if(listitem == 1) { PlayerInfo[playerid][pSex] = 2; SendClientMessage(playerid,COLOR_YELLOW,"OK,Deci esti {FF2C00}femeie"); ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"{F81414}Alege unde vrei sa fi spawnat","Los Santos \nSan Fierro \nLas Venturas","Select",""); } } } if(dialogid == 51) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pOrigin] = 2;//LS SendClientMessage(playerid,COLOR_YELLOW,"OK,Deci vei fi spawnat in {FF2C00}Los Santos"); ShowPlayerDialog(playerid,53,DIALOG_STYLE_INPUT,"{F81414}Varsta","Scrie ce varsta ai!","OK",""); //ShowPlayerDialog(playerid,52,DIALOG_STYLE_INPUT,"E-mail","Scrie e-mail tau!","OK",""); //SpawnPlayer(playerid); } else if(listitem == 1) { PlayerInfo[playerid][pOrigin] = 1;//SF SendClientMessage(playerid,COLOR_YELLOW,"OK,Deci vei fi spawnat in {FF2C00}San Fierro"); ShowPlayerDialog(playerid,53,DIALOG_STYLE_INPUT,"{F81414}Varsta","Scrie ce varsta ai!","OK",""); //ShowPlayerDialog(playerid,52,DIALOG_STYLE_INPUT,"E-mail","Scrie e-mail tau!","OK",""); //SpawnPlayer(playerid); } else if(listitem == 2) { PlayerInfo[playerid][pOrigin] = 3;//LV SendClientMessage(playerid,COLOR_YELLOW,"OK,Deci vei fi spawnat in {FF2C00}Las Venturas"); ShowPlayerDialog(playerid,53,DIALOG_STYLE_INPUT,"{F81414}Varsta","Scrie ce varsta ai!","OK",""); //ShowPlayerDialog(playerid,52,DIALOG_STYLE_INPUT,"E-mail","Scrie e-mail tau!","OK",""); //SpawnPlayer(playerid); } } } /*if(dialogid == 52) { if(response) { OnPlayerUpdateEx(playerid); SendClientMessage(playerid,COLOR_YELLOW,"OK,multumim pentru confirmarea e-mail dvs."); //SpawnPlayer(playerid); ShowPlayerDialog(playerid,53,DIALOG_STYLE_INPUT,"Varsta","Scrie ce varsta ai!","OK",""); } }*/ if(dialogid == 53) { if(response) { new varsta = strval(inputtext); if(varsta >5 && varsta<90) { format(string,256,"{FFFF00}Deci ai{FF2C00} %d {FFFF00}ani",varsta); SendClientMessage(playerid,COLOR_GRAD1,string); PlayerInfo[playerid] = varsta; RegistrationStep[playerid] = 0; TutTime[playerid] = 1; OnPlayerUpdateEx(playerid); } else return ShowPlayerDialog(playerid,52,DIALOG_STYLE_INPUT,"{F81414}Varsta","Scrie ce varsta ai!","OK",""); } }
  6. FrN

    Bug Parola

    Am citit , am prin dialog sistemul de inregistrare / logare.
  7. FrN

    Bug Parola

    Nu prea inteleg la ce te referi , sunt incepator in domeniu insa acesta e GM-ul . Multumesc :wink:
  8. FrN

    Bug Parola

    Salut , am o problema cu un server de SA:MP , Jucatorii cu functia de Admin se pot loga cu orice parola . Ma poate ajuta cineva cu asta , doar adminii se pot loga cu orice parola , insa jucatorii fara aceasta functie trebuie sa-si scrie parola. Multumesc.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.