View Single Post
SANTO37
Member
Join Date: Aug 2008
Old 11-05-2019 , 13:44   Re: Real CS 1.6 Anti-Cheat Help Please(c# and amxx socket server/client)
Reply With Quote #11

Quote:
#include <amxmodx>
#include <sockets>

new g_socket;

public client_authorized(id) socket_DBClient(id);

public socket_DBClient(id) {

new ip[32], error;
get_user_ip(id, ip, charsmax(ip), 1);
client_print(id , print_chat, "%s", ip[0]);
g_socket = socket_open(ip, 1991, SOCKET_TCP, error);

if (error == 1 || error == 2 || error ==3) {
server_print("Player %d: ERROR: %d", id, error);
message_begin(MSG_ONE, SVC_DISCONNECT, {0, 0, 0}, id);
write_string("Please open DBClient!");
message_end();
} else {
socket_close(g_socket);
client_print(id, print_chat, "connected");
}

}
Crashed server.

I can give you my VPS server for nacknic development. What do you think about it?

Last edited by SANTO37; 11-05-2019 at 13:50.
SANTO37 is offline