Страница 4 от 4

Re: OciXCrom's Custom VIP Extras

Публикувано на: 22 Юли 2017, 15:13
от OciXCrom
camarossblack написа:Здравейте,

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

OciXCrom's Custom VIP Extras

Публикувано на: 06 Авг 2020, 13:20
от DON KHAN
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's Custom VIP Extras

Публикувано на: 06 Авг 2020, 14:21
от OciXCrom
I no longer support this plugin.

OciXCrom's Custom VIP Extras

Публикувано на: 06 Авг 2020, 21:18
от DON KHAN
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

OciXCrom's Custom VIP Extras

Публикувано на: 07 Авг 2020, 09:49
от atmax
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.