Counter-Strike 1.6
VIP
Cs-PlovdiV.com - Aim Attack
93.123.16.4:27022
aim_map2
Играчи: 4/16
aim_map2
Counter-Strike 1.6
VIP
93.123.16.4:27022 Cs-PlovdiV.com - Aim Attack aim_map2 4/16

Need Help Plugin

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
Infamous2018
Извън линия
Foreigner
Foreigner
Мнения: 522
Регистриран на: 08 Апр 2018, 16:56
Се отблагодари: 14 пъти
Получена благодарност: 21 пъти

Need Help Plugin

Мнение от Infamous2018 » 29 Май 2020, 18:23

Hello i need an Help Plugin.

You say /help and an Menu opens. In the Menu i need to add 3 Things :

- ABOUT ZOMBIES
- ABOUT COUNTER TERRORISTS
- ABOUT GUNXPMOD+POWERS

When you click as Example "ABOUT ZOMBIES" then an new Windows should be open with the Text.

As Example: We have any Zombies in this MOD -> The most Zombies have special things -> Only work when u do it with Key E

So i think i need only create in cstrike then :

ABOUT ZOMBIES.txt ( The Word counter here have 1399 )
ABOUT COUNTER TERRORISTS.txt ( The Word counter here have 1082 )
ABOUT GUNXPMOD+POWERS.txt ( The Word counter here have 274 )

Аватар
TryAgain
Извън линия
Потребител
Потребител
Мнения: 182
Регистриран на: 25 Яну 2017, 16:59
Се отблагодари: 1 път
Получена благодарност: 26 пъти

Need Help Plugin

Мнение от TryAgain » 29 Май 2020, 19:00

Код за потвърждение: Избери целия код

#include <amxmodx>

public plugin_init()
{
	register_plugin("Help Menu", "0.1", "TryAgain")
	register_concmd("say /help","helpmenu")
	register_concmd("say_team /help","helpmenu")
}

public helpmenu(id)
{
	new imenu = menu_create("", "imenufunc")
	
	menu_additem(imenu,"ABOUT ZOMBIES")
	menu_additem(imenu,"ABOUT COUNTER TERRORISTS")
	menu_additem(imenu,"ABOUT GUNXPMOD+POWERS")
	
	menu_setprop(imenu, MPROP_EXIT, MEXIT_ALL)
	menu_display(id, imenu)
}

public imenufunc(id, imenu, item)
{
	if(item == MENU_EXIT)
	{
		menu_destroy(imenu)
		return PLUGIN_HANDLED
	}
	
	switch(item)
	{
		case 0:show_motd(id, "ABOUT ZOMBIES.txt","")
		case 1:show_motd(id, "ABOUT COUNTER TERRORISTS.txt","")
		case 2:show_motd(id, "ABOUT GUNXPMOD+POWERS.txt","")
	}
	
	return PLUGIN_HANDLED
}
This is the second way: 1 + 2

Аватар
Infamous2018
Извън линия
Foreigner
Foreigner
Мнения: 522
Регистриран на: 08 Апр 2018, 16:56
Се отблагодари: 14 пъти
Получена благодарност: 21 пъти

Need Help Plugin

Мнение от Infamous2018 » 29 Май 2020, 20:22

This is the second way: 1 + 2 yes i know but i dont understand this plugin about menu. Its really confusing me. But your plugin works fine. Thanks for this

Аватар
OciXCrom
Извън линия
Owner
Owner
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1309 пъти
Обратна връзка:

Need Help Plugin

Мнение от OciXCrom » 29 Май 2020, 21:44

You can also use these two for easier and more advanced configuration:

https://amxx-bg.info/forum/viewtopic.php?f=32&t=62
https://amxx-bg.info/forum/viewtopic.php?f=32&t=57

Аватар
Infamous2018
Извън линия
Foreigner
Foreigner
Мнения: 522
Регистриран на: 08 Апр 2018, 16:56
Се отблагодари: 14 пъти
Получена благодарност: 21 пъти

Need Help Plugin

Мнение от Infamous2018 » 29 Май 2020, 23:47

Oxi your Menu Builder is to complicated for me. I dont understand the system. As example the ini file.

So i add here now what?

"help" "say /help"

And then? I have now to create the file "help.txt" and add codes there and add it to cstrike ? I dont understand this system.

Аватар
OciXCrom
Извън линия
Owner
Owner
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1309 пъти
Обратна връзка:

Need Help Plugin

Мнение от OciXCrom » 30 Май 2020, 00:22

MotdCommands.ini (add at bottom):

Код за потвърждение: Избери целия код

/helpzm = ABOUT ZOMBIES.txt
/helpct = ABOUT COUNTER TERRORISTS.txt
/helpgunxp = ABOUT GUNXPMOD+POWERS.txt
SimpleMenu.ini (add at bottom):

Код за потвърждение: Избери целия код

[New Menu = Help Menu]

[Menu Settings]
MENU_OPEN = say /help, say_team /help

[Menu Items]
"ABOUT ZOMBIES" "say /helpzm"
"ABOUT COUNTER TERRORISTS" "say /helpct"
"ABOUT GUNXPMOD+POWERS" "say /helpgunxp"

Аватар
Infamous2018
Извън линия
Foreigner
Foreigner
Мнения: 522
Регистриран на: 08 Апр 2018, 16:56
Се отблагодари: 14 пъти
Получена благодарност: 21 пъти

Need Help Plugin

Мнение от Infamous2018 » 30 Май 2020, 11:20

OK OXI i will try this way . Will give Feedback.

Добавено преди 24 минути 37 секунди:
So when i say /help the Menu is open. When i try to click on of them, nothing happens.


Server tried to send invalid command:"say /helpzm
"
Server tried to send invalid command:"say /helpzm
"
Server tried to send invalid command:"say /helpct
"
Server tried to send invalid command:"say /helpgunxp

Код за потвърждение: Избери целия код

[Default Settings]
;These are the default settings for each menu created.
;You can add certain options in [Menu Settings] if you want to change them.
;Please note that every menu needs to have a different MENU_OPEN settings, therefore there's no default one.

MENU_TITLE = My Simple Menu
MENU_TITLE_PAGE = %newline%Page:\d
MENU_BACK = \yPrevious Page
MENU_NEXT = \yNext Page
MENU_EXIT = \rClose
;MENU_OPEN = say /menu, say_team /menu, amx_mymenu -- This must be set with a different value on every menu!
MENU_FLAG = 0
MENU_TEAM = 0
MENU_ALIVEONLY = 0
MENU_ITEMS_PER_PAGE = 7
MENU_REOPEN = 0
MENU_ITEM_FORMAT = %item%
MENU_PREFIX = !g[Simple Menu]!n
MENU_NOACCESS = You have no access to this menu.
MENU_NOTEAM = Your team isn't allowed to use this menu.
MENU_ALIVE = You need to be alive to use this menu.
MENU_DEAD = You need to be dead to use this menu.
MENU_SOUND =

[[New Menu = Help Menu]

[Menu Settings]
MENU_OPEN = say /help, say_team /help

MENU_OPEN = say /menu, say_team /menu, amx_mymenu
MENU_REOPEN = 1

[Menu Settings]
MENU_OPEN = say /help, say_team /help

[Menu Items]
"ABOUT ZOMBIES" "say /helpzm"
"ABOUT COUNTER TERRORISTS" "say /helpct"
"ABOUT GUNXPMOD+POWERS" "say /helpgunxp"
MotdCommands.ini

Код за потвърждение: Избери целия код

/helpzm = ABOUT ZOMBIES.txt
/helpct = ABOUT COUNTER TERRORISTS.txt
/helpgunxp = ABOUT GUNXPMOD+POWERS.txt
At cstrike added:
ABOUT ZOMBIES.txt
ABOUT COUNTER TERRORISTS.txt
ABOUT GUNXPMOD+POWERS.txt

Изображение

Аватар
OciXCrom
Извън линия
Owner
Owner
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1309 пъти
Обратна връзка:

Need Help Plugin

Мнение от OciXCrom » 30 Май 2020, 15:10

Your game is set to block the execution of "say" commands (not sure what the point of that is). This is an issue with your game, not the plugin or the server. It will work for other players.

Аватар
Infamous2018
Извън линия
Foreigner
Foreigner
Мнения: 522
Регистриран на: 08 Апр 2018, 16:56
Се отблагодари: 14 пъти
Получена благодарност: 21 пъти

Need Help Plugin

Мнение от Infamous2018 » 30 Май 2020, 16:04

um yes u are right. it looks that steam cs blocked this. With non steam cs its working.

Аватар
OciXCrom
Извън линия
Owner
Owner
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1309 пъти
Обратна връзка:

Need Help Plugin

Мнение от OciXCrom » 30 Май 2020, 20:50

It's a problem with your game in particular, not Steam CS in general. I'm using Steam CS too and don't have such an issue.

Публикувай отговор
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Заявки за плъгини”

Кой е на линия

Потребители разглеждащи този форум: Google [Bot] и 3 госта