[ZE] Other servers menu

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

[ZE] Other servers menu

#1

Post by Muhammet20 » 6 Months 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 :)
[Not interested in CS/Pawn anymore]
[Learning HTML coding language]

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1997
Joined: 3 Years Ago
Location: Egypt
Has thanked: 33 times
Been thanked: 111 times
Age: 22
Contact:

#2

Post by Raheem » 6 Months 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
Turkey
Posts: 408
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 16
Contact:

#3

Post by Muhammet20 » 6 Months Ago

@Raheem i don't understand
[Not interested in CS/Pawn anymore]
[Learning HTML coding language]

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1997
Joined: 3 Years Ago
Location: Egypt
Has thanked: 33 times
Been thanked: 111 times
Age: 22
Contact:

#4

Post by Raheem » 6 Months 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
Turkey
Posts: 408
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 16
Contact:

#5

Post by Muhammet20 » 6 Months Ago

Raheem wrote:
6 Months 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
[Not interested in CS/Pawn anymore]
[Learning HTML coding language]

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1997
Joined: 3 Years Ago
Location: Egypt
Has thanked: 33 times
Been thanked: 111 times
Age: 22
Contact:

#6

Post by Raheem » 6 Months 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
Turkey
Posts: 408
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 16
Contact:

#7

Post by Muhammet20 » 6 Months Ago

Raheem wrote:
6 Months 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
[Not interested in CS/Pawn anymore]
[Learning HTML coding language]

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

#8

Post by Muhammet20 » 6 Months Ago

@Raheem why you don't trash this topic?
[Not interested in CS/Pawn anymore]
[Learning HTML coding language]

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1997
Joined: 3 Years Ago
Location: Egypt
Has thanked: 33 times
Been thanked: 111 times
Age: 22
Contact:

#9

Post by Raheem » 6 Months 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