[Tool/Web/Other] SAMP AC v2 [Launcher]
#10

Mano eu compilei o Client dps peguei o hash e abri um server pra testar, mas quando eu executo o client e entro no servidor ele nгo conecta.

GM Teste:

Код:
#include <a_samp>
#include <socket>

#define AC_VERSION					"1.0.0.0"
#define AC_MD5_HASH					"******"
#define AC_CHECK_DELAY				(5) // segundos

#include <samp_ac>

public OnPlayerConnectAC(playerid, ip[], hash[])
{
	new str[128];
	format(str, 128, "[SAMP -AC] %s(id:%d) Conectou.", Nome(playerid), playerid);
	SendClientMessageToAll(-1, str);
	print(str);
	return 1;
}

public OnPlayerDisconnectAC(playerid, ip[], reason)
{
    new str[128];
	format(str, 128, "[SAMP -AC] %s(id:%d) Desconectou.", Nome(playerid), playerid);
	SendClientMessageToAll(-1, str);
	print(str);
	return 1;
}

public OnPlayerCheatAC(playerid, ip[], cheat_code)
{
    new str[128];
	if(cheat_code == CHEATCODE_MULTIPLE_EXEC)
	{
		format(str, 128, "[SAMP -AC] %s(id:%d) Detectado com Multi EXE.", Nome(playerid), playerid);
		SendClientMessageToAll(-1, str);
		print(str);
	}
	else if(cheat_code == CHEATCODE_SUSPECT_OBJECTS)
	{
        format(str, 128, "[SAMP -AC] %s(id:%d) Detectado com Arquivos suspeitos.", Nome(playerid), playerid);
		SendClientMessageToAll(-1, str);
		print(str);
	}
	else if(cheat_code == CHEATCODE_DIFF_NAME)
	{
        format(str, 128, "[SAMP -AC] %s(id:%d) Detectado com Nick diferente do Client.", Nome(playerid), playerid);
		SendClientMessageToAll(-1, str);
		print(str);
	}
	else if(cheat_code == CHEATCODE_CHANGED_AC)
	{
        format(str, 128, "[SAMP -AC] %s(id:%d) Detectado com Client Editado.", Nome(playerid), playerid);
		SendClientMessageToAll(-1, str);
		print(str);
	}
	else if(cheat_code == CHEATCODE_DIFF_VERSION)
	{
        format(str, 128, "[SAMP -AC] %s(id:%d) Detectado com Client versгo antiga.", Nome(playerid), playerid);
		SendClientMessageToAll(-1, str);
		print(str);
	}
	else if(cheat_code == CHEATCODE_CLOSE_AC)
	{
        format(str, 128, "[SAMP -AC] %s(id:%d) Fechou o Cliente.", Nome(playerid), playerid);
		SendClientMessageToAll(-1, str);
		print(str);
	}

	return 1;
}

stock Nome(playerid)
{
	new name[24];
	GetPlayerName(playerid, name, 24);
	return name;
}
stock KickPlayer(playerid) return SetTimerEx("KDel", 1000, false, "i", playerid);
forward KDel(playerid);public KDel(playerid) {Kick(playerid); return 1;}
server_log.txt:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[16:21:19] 
[16:21:19] Server Plugins
[16:21:19] --------------
[16:21:19]  Loading plugin: socket.so
[16:21:19]  Socket plugin v0.2b loaded.
[16:21:19]   Loaded.
[16:21:19]  Loaded 1 plugins.

[16:21:19] 
[16:21:19] Filterscripts
[16:21:19] ---------------
[16:21:19]   Loaded 0 filterscripts.

[16:21:19] Script[gamemodes/SAMP_AC.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[16:21:19] Number of vehicle models: 0
[16:23:26] [connection] incoming connection: 177.35.69.184:61264 id: 0
[16:23:27] [join] Kolor4dO has joined the server (0:177.35.69.184)
[16:23:56] Kicking 177.35.69.184 because they didn't logon to the game.
[16:24:30] socket_connect(): Socket ID 0 has failed to connect.
[16:24:30] [part] Kolor4dO has left the server (0:1)
[16:25:09] [connection] incoming connection: 177.35.69.184:54953 id: 0
[16:25:10] [join] Kolor4dO has joined the server (0:177.35.69.184)
[16:25:39] Kicking 177.35.69.184 because they didn't logon to the game.
[16:26:13] socket_connect(): Socket ID 0 has failed to connect.
E acho que vocк colocou a include errada no download da uma olhada ae.
Reply


Messages In This Thread
SAMP AC v2 [Launcher] - by F1N4L - 07.05.2018, 18:00
Re: SAMP AC v2 [Launcher] - by Felipe_Freeze - 07.05.2018, 19:03
Re: SAMP AC v2 [Launcher] - by F1N4L - 07.05.2018, 19:17
Re: SAMP AC v2 [Launcher] - by KoloradO - 11.05.2018, 14:43
Re: SAMP AC v2 [Launcher] - by PilateGR - 11.05.2018, 16:10
Re: SAMP AC v2 [Launcher] - by F1N4L - 11.05.2018, 16:47
Re: SAMP AC v2 [Launcher] - by PT - 12.05.2018, 23:16
Re: SAMP AC v2 [Launcher] - by F1N4L - 14.05.2018, 11:13
Re: SAMP AC v2 [Launcher] - by Cleyson - 14.05.2018, 18:38
Re: SAMP AC v2 [Launcher] - by KoloradO - 14.05.2018, 20:32

Forum Jump:


Users browsing this thread: 1 Guest(s)