Premium Реклама Spotlight Bundles Boost Банери Кредити
Основно Начало Сървъри Marketplace Форум Сървъри
Общности Хостинг Добави Auction Boost
Ресурси
Библиотеки Карти Видеа Магазин Bundles
Инструменти
Builder Demo CFG HUD
AMXX API
Вход Регистрация
TOP SERVER
[IG] Easy Surf | Ramp Fix | RANKS | REPLAYS
Counter-Strike 1.6
surf_flyin_fortress
40.160.19.36:27015
18.05 18:49
10/64
188ms
/ Библиотеки / server_comm.inc

server_comm.inc

.inc 1.5 KB 57 реда 04.04.2026
Pawn / AMX Mod X
#if defined _server_comm_included
	#endinput
#endif

#define _server_comm_included

#if AMXX_VERSION_NUM >= 175
	#pragma reqlib server_comm
	#if !defined AMXMODX_NOAUTOLOAD
		#pragma loadlib server_comm
	#endif
#else
	#pragma library server_comm
#endif

/*
 * Called when the server receives data from another server
 * 
 * @param		data - The string containing data
 * @param		len - The length of the data
 * 
 * @return		Return value is ignored
 * 
 */
forward scomm_receive(data[], len);

/*
 * Sends data to a given IP
 * 
 * @param		ip - The IP to send data to
 * @param		data - The data to send
 * 
 * @note		The port must be at the end of the IP address
 * @note		To send data back to the same server, use "loopback" as the IP and no port at the end of it
 * 
 * @return		Returns 1 on success, 0 on failure
 * 
 */
native scomm_send(const ip[], const data[]);

/*
 * Sends formatted data to a given IP
 * 
 * @param		ip - The IP to send data to
 * @param		format - The format of the data
 * 
 * @note		The port must be at the end of the IP address
 * @note		To send data back to the same server, use "loopback" as the IP and no port at the end of it
 * 
 * @return		Returns 1 on success, 0 on failure
 * 
 */
native scomm_sendf(const ip[], const format[], any:...);
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
РЕКЛАМИРАЙ ПРИ НАС!
AMXX-BG.INFO
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <server_comm>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в scripting/include/
3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe
PrivateServ.NET