예제 #1
0
	void pack(int flags)
	{
		msg_pack_start(NETMSGTYPE_CL_CALLVOTE, flags);
		msg_pack_string(type, -1);
		msg_pack_string(value, -1);
		msg_pack_end();
	}
예제 #2
0
	void pack(int flags)
	{
		msg_pack_start(NETMSGTYPE_SV_VOTE_SET, flags);
		msg_pack_int(timeout);
		msg_pack_string(description, -1);
		msg_pack_string(command, -1);
		msg_pack_end();
	}
예제 #3
0
	void pack(int flags)
	{
		msg_pack_start(NETMSGTYPE_CL_CHANGEINFO, flags);
		msg_pack_string(name, -1);
		msg_pack_string(skin, -1);
		msg_pack_int(use_custom_color);
		msg_pack_int(color_body);
		msg_pack_int(color_feet);
		msg_pack_end();
	}
예제 #4
0
	void pack(int flags)
	{
		msg_pack_start(NETMSGTYPE_CL_SAY, flags);
		msg_pack_int(team);
		msg_pack_string(message, -1);
		msg_pack_end();
	}
예제 #5
0
static void server_send_rcon_line(int cid, const char *line)
{
	msg_pack_start_system(NETMSG_RCON_LINE, MSGFLAG_VITAL);
	msg_pack_string(line, 512);
	msg_pack_end();
	server_send_msg(cid);
}
예제 #6
0
	void pack(int flags)
	{
		msg_pack_start(NETMSGTYPE_SV_CHAT, flags);
		msg_pack_int(team);
		msg_pack_int(cid);
		msg_pack_string(message, -1);
		msg_pack_end();
	}
예제 #7
0
static void server_send_map(int cid)
{
	msg_pack_start_system(NETMSG_MAP_CHANGE, MSGFLAG_VITAL|MSGFLAG_FLUSH);
	msg_pack_string(config.sv_map, 0);
	msg_pack_int(current_map_crc);
	msg_pack_end();
	server_send_msg(cid);
}
예제 #8
0
	void pack(int flags)
	{
		msg_pack_start(NETMSGTYPE_SV_VOTE_OPTION, flags);
		msg_pack_string(command, -1);
		msg_pack_end();
	}
예제 #9
0
	void pack(int flags)
	{
		msg_pack_start(NETMSGTYPE_SV_BROADCAST, flags);
		msg_pack_string(message, -1);
		msg_pack_end();
	}