[Ajuda] Login
#7

Код:
if (strcmp(cmd, "/logar", true) ==0 )
	{
	    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
	    {
	        new tmppass[64];
			if(gPlayerLogged[playerid] == 1)
			{
				SendClientMessage(playerid, COLOR_GREY, " Vocк jб estб logado.");
				return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USE: /logar [Senha]");
				ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, " Servidor ", " Nome Do Servidor", "Logar", "Esperar");
				return 1;
			}
			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
			Encrypt(tmppass);
			OnPlayerLogin(playerid,tmppass);
		}
		return 1;
	}
	if (strcmp(cmd, "/registrar", true) ==0 )
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 1)
			{
				SendClientMessage(playerid, COLOR_GREY, " Vocк jб estб logado.");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, 64, "Players/%s.ini", sendername);
			new File: hFile = fopen(string, io_read);
			if (hFile)
			{
				SendClientMessage(playerid, COLOR_YELLOW, "Este Nick jб existe, use outro.");
				fclose(hFile);
 				ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, " Servidor", " Nome Do Servidor\nDigite sua Senha para Registrar!!!", "Registrar", "Cancelar");
				return 1;
			}
	        new tmppass[64];
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USE: /registrar [Senha]");
				SendClientMessage(playerid, COLOR_YELLOW, "-==> Use Nome_Sobrenome ( Ex: eeee Ou rrrrl ) <==-");
 				ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, " Servidor", " Nome Do Servidor", "Registrar", "Cancelar");
				return 1;
			}
			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
			Encrypt(tmppass);
			OnPlayerRegister(playerid,tmppass);
		}
		return 1;
	}
Ele n fecha o samp server quando registro ou faзo login

@Edit

Код:
SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team

[22:53:05] 
[22:53:05] Server Plugins
[22:53:05] --------------
[22:53:05]  Loading plugin: streamer
[22:53:05] 

*** Streamer Plugin v2.6 by Incognito loaded ***

[22:53:05]   Loaded.
[22:53:05]  Loaded 1 plugins.

[22:53:05] 
[22:53:05] Filterscripts
[22:53:05] ---------------
[22:53:05]   Loading filterscript 'xD.amx'...
[22:53:05]   to load filterscript 'xD.amx'.
[22:53:05]   Loaded 1 filterscripts.

[22:53:05] 
---------------------------------------------------------
[22:53:05] Server Ligado: [05/10/2013 22:53:05]
[22:53:05] ---------------------------------------------------------

[22:53:05] -----------------------------
[22:53:05] *** GM Iniciado ***
[22:53:05] -----------------------------
[22:53:06] [t]: 22 Orgs Carregadas
[22:53:06] [t]: 241 Casas Carregadas
[22:53:06] [t]: 7 Empresas Carregadas
[22:53:06] [t]: 130 Carros Carregados
[22:53:06] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[22:53:06]  
[22:53:06]  
[22:53:06]  - =Server = - 
[22:53:06] _____________________
[22:53:06]  Servidor
[22:53:06]  
[22:53:06] Number of vehicle models: 72
[22:53:13] Incoming connection: 25.182.55.122:58157
[22:53:57] Incoming connection: 25.182.55.122:63583
[22:53:57] [join] Samp_Samp has joined the server (0:25.182.55.122)
[22:54:04] Samp_Samp has logged in.
Sera que a unica soluзгo e apagando este sistema de login e registro e colocar outro ?
Reply


Messages In This Thread
Login - by CromadoH - 06.10.2013, 01:14
Re: Login - by Don_Speed - 06.10.2013, 01:16
Re: Login - by CromadoH - 06.10.2013, 01:20
Re: Login - by [THs]ShadoW - 06.10.2013, 01:30
Re: Login - by bruxo00 - 06.10.2013, 11:21
Re: Login - by Zivo - 06.10.2013, 11:37
Re: Login - by CromadoH - 07.10.2013, 01:16
Re: Login - by PT - 07.10.2013, 08:43

Forum Jump:


Users browsing this thread: 1 Guest(s)