[ZE] Other servers menu

Useless Stuffs, Spam ... etc
Post Reply
User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

[ZE] Other servers menu

#1

Post by Muhammet20 » 1 Month Ago

hi all,
i made this plugin when you type /servers you will see other servers menu

Info:
If You want to remove say /servers you should use this native below:

Code: Select all

native ze_open_servers_menu(id)
so here is the code:

Code: Select all

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "[ZE] Other Servers"
#define VERSION "1.0"
#define AUTHOR "Kaya Gaming"


public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)

	register_clcmd("say /server","open_server_menu")
}
public plugin_natives()
{
	register_native("ze_open_servers_menu","native_open_servers_menu",1)
}
public native_open_servers_menu(id)
{
	open_server_menu(id)
}
public open_server_menu(id)
{
	static menu, string[128]
	
	formatex(string, sizeof(string), "Servers")
	menu = menu_create(string, "servers_handle")
	
	
	/*============================================*/
	formatex(string, sizeof(string), "Server Name")
	menu_additem(menu, string, "1", 0)
	/*============================================*/
	formatex(string, sizeof(string), "Server Name")
	menu_additem(menu, string, "2", 0)
	/*============================================*/
	formatex(string, sizeof(string), "Server Name")
	menu_additem(menu, string, "3", 0)	
	/*============================================*/
	formatex(string, sizeof(string), "Server Rules")
	menu_additem(menu, string, "4", 0)
	/*============================================*/
	formatex(string, sizeof(string), "Server Name")
	menu_additem(menu, string, "5", 0)
	/*============================================*/
	formatex(string, sizeof(string), "Server Name")
	menu_additem(menu, string, "6", 0)
	
	
	// You can add or remove
	// Info: if you added or removed anyhthing you should remove their case from servers_handle
	
	
	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
	menu_display(id, menu, 0)
	
	return ITEM_ENABLED
}
public servers_handle(id, menu, item)
{
	if(!is_user_connected(id))
		return
	
	if(item == MENU_EXIT)
	{
		menu_destroy(menu)
		return
	}
	
	new data[6], szName[64];
	new access, callback;
	
	menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
	
	new key = str_to_num(data);
	
	switch(key)
	{
		case 1:
		{
			client_cmd(id,"connect >IP<")
		}
		case 2:
		{
			client_cmd(id,"connect >IP<")
		}
		case 3:
		{
			client_cmd(id,"connect >IP<")
		}
		case 4:
		{
			client_cmd(id,"connect >IP<")
		}
		case 5:
		{
			client_cmd(id,"connect >IP<")
		}
		case 6:
		{
			client_cmd(id,"connect >IP<")
		}
	}	
	return
}

ENJOY :)
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#2

Post by Raheem » 1 Month Ago

Without information queries, then it's only name+ip so xRedirect is better then.
You don't know? Learn and you will know.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#3

Post by Muhammet20 » 1 Month Ago

@Raheem i don't understand
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#4

Post by Raheem » 1 Month Ago

I mean we can't know how many players in the server or what map they play .. etc these are the queries that should be send to the server so we got these info.

xRedirect show you full server list with all information, you don't know xRedirect?
You don't know? Learn and you will know.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#5

Post by Muhammet20 » 1 Month Ago

Raheem wrote:
1 Month Ago
I mean we can't know how many players in the server or what map they play .. etc these are the queries that should be send to the server so we got these info.

xRedirect show you full server list with all information, you don't know xRedirect?
no i wasn't know xRedirect
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#6

Post by Raheem » 1 Month Ago

Read more about it here: https://forums.alliedmods.net/showthread.php?t=29886

Sadly VALVE from 2 months blocked "connect" command to be executed in STEAM games, so redirect now is useless in steam game but still working in cracked/illegal games.
You don't know? Learn and you will know.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#7

Post by Muhammet20 » 1 Month Ago

Raheem wrote:
1 Month Ago
Read more about it here: https://forums.alliedmods.net/showthread.php?t=29886

Sadly VALVE from 2 months blocked "connect" command to be executed in STEAM games, so redirect now is useless in steam game but still working in cracked/illegal games.
okay thanks
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#8

Post by Muhammet20 » 1 Month Ago

@Raheem why you don't trash this topic?
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#9

Post by Raheem » 1 Month Ago

Trashed xd
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest