Jump to content
  • 0

Login/Register la intrare pe server .


TheDevils

Question

3 answers to this question

Recommended Posts

Stiam eu . Din cate stiu eu parola de la cont se salveza undeva in ladmin , nu ?

Edit :

Trebuie sa modific asta nu :

[pawn] if(!udb_Exists(PlayerName2(playerid))) SendClientMessage(playerid,orange, "CONT: Exemplu /register [parola] pentru a crea un cont");

else

{

    PlayerInfo[playerid][Registered] = 1;

format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName));

new tmp2[256]; tmp2 = dini_Get(file,"ip");

if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) )

{

LoginPlayer(playerid);

if(PlayerInfo[playerid][Level] > 0)

{

format(string,sizeof(string),"CONT: Ati fost autentificat in mod automat. (Level %d)", PlayerInfo[playerid][Level] );

SendClientMessage(playerid,green,string);

      }

  else SendClientMessage(playerid,green,"CONT: Ati fost autentificat in mod automat.");

      }

else SendClientMessage(playerid, green, "CONT: Acest nume este deja inregistrat, va puteti loga prin tastarea /login [parola]");

}

return 1;

}[/pawn]

si mai trebuie sa modific la ondialogresponse ,nu??

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.