OciXCrom's Custom VIP Extras

Неодобрените плъгини биват прехвърляни в този раздел. Не препоръчваме да ги ползвате, тъй като най-вероятно съдържат бъгове или същестуват такива плъгини, които вършат по-добра работа от тези тук.
Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Re: OciXCrom's Custom VIP Extras

Мнение от OciXCrom » 22 Юли 2017, 15:13

camarossblack написа:Здравейте,

Имам въпрос относно този плъгин. Някой пробвал ли го е. Има ли въпросния проблем, както при мен. Плъгина си работи идеално, но когато тръгна да сменям моделите на ВИП играчите (слагам нови скинове), както трябва и сменя мапа и сървъра крашва ? Постоянно преглеждам да не допускам аз грешки, но няма. Пробвал съм с доста скинове и с нито един не стана, всеки път крашва.
Има такъв проблем, да. Скиновете не може да се променят чрез квар, тъй че тази опция не работи. Местя темата в неодобрени плъгини. За момента не ми се занимава да правя нов или да оправям този. Ще трябва да промениш скиновете директно в .sma файла.

Аватар
DON KHAN
Извън линия
Foreigner
Foreigner
Мнения: 5
Регистриран на: 19 Авг 2019, 20:28
Се отблагодари: 1 път

OciXCrom's Custom VIP Extras

Мнение от DON KHAN » 06 Авг 2020, 13:20

hi,
can u add saving system in this VIP Extras so if player want to save the menu after choosing items so if he died and respawn again so he will get that items again which he choosed before & please also add Clear setting so if any player wanna use the menu again so he will clear setting and then at next spawn he can use menu again.
+ i need a help in this menu.
i wanna make the menu.
player with ADMIN_RESERVATION access can use menu 3 times,
player with ADMIN_BAN access can use menu 4 times,
player with ADMIN_LEVEL_E access can use menu 5 times,
player with ADMIN_IMMUNITY access can use menu 6 times,
player with ADMIN_LEVEL_A access can use menu 8 times,
and player with ADMIN_RCON access can use menu 10 times.
just give me a example with only 1 access and i will add other access by myself.

Thank You for this awesome plugin.. :clap:

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

OciXCrom's Custom VIP Extras

Мнение от OciXCrom » 06 Авг 2020, 14:21

I no longer support this plugin.

Аватар
DON KHAN
Извън линия
Foreigner
Foreigner
Мнения: 5
Регистриран на: 19 Авг 2019, 20:28
Се отблагодари: 1 път

OciXCrom's Custom VIP Extras

Мнение от DON KHAN » 06 Авг 2020, 21:18

OciXCrom написа: 06 Авг 2020, 14:21 I no longer support this plugin.
i see that u said u are not supporting this plugin now.
but i need just little help just tell me how can i make this menu use X times for each flag
just give me 1 example

Аватар
atmax
Извън линия
Потребител
Потребител
Мнения: 492
Регистриран на: 22 Мар 2018, 15:06
Се отблагодари: 37 пъти
Получена благодарност: 43 пъти

OciXCrom's Custom VIP Extras

Мнение от atmax » 07 Авг 2020, 09:49

Im going to show you how you can set a max usages for the items if you want to do it for menus then you should check for usages before the switch else if you want it for each item then check in the cases.

First create your variables and set them up.

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

const MAX_ADMIN_USES = 5
new g_iUse[33]

Then register a new event for new round. In this event you will restore the usages back to 0, if you have a respawn server then you should register an ham event ham_spawn that means on player spawn.

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

public event_new_round()
{
	//Second get the players amount
	new iPlayers[32], iNum
	get_players(iPlayers,iNum,"ch")
	
	//Use a loop to go thru all the players and set their usages to 0
	for(--iNum; iNum>=0; iNum--)
	{
		g_iUse[iPlayers[iNum]] = 0
	}
}
Third: At the begining I told you when you should do it in a case or before the switch.
Thats how you gonna check if the player that opens the menu, usages are more than your set.

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

//Here get the player flags
if(get_user_flags(id) & ADMIN_BAN)
	{
		if(++g_iUse[id] > MAX_ADMIN_USES)
			{
	//If they are you can print a chat message
				client_print(id, print_chat, "[Out of limit] You can buy this item/You can use this menu in the next round")
				return PLUGIN_HANDLED	//And return 0
			}
			//If not then give them the items or in case its befire rhe switch just continue with the cases..
	}
PS: I apologize in advance for any mistakes, because I wrote it from my phone.
Rest in peace my friend I always will remember you! 🖤👊

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

Обратно към “Неодобрени/стари плъгини”

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 6 госта