AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   VIP plugin access (https://forums.alliedmods.net/showthread.php?t=328238)

sir_PaBlo 11-01-2020 13:47

VIP plugin access
 
Hello
I need you again
I have a VIP plugin
This plugin has difficulty accessing
I only have access to VIPs
But VIPs do not have access to this
Conversely, admins have access to the menu
I put the plugin at the bottom
please help

Attachment 184784

OciXCrom 11-01-2020 14:02

Re: VIP plugin access
 
Maybe try posting 10 more threads, I'm sure that will help. You already got an answer in one of the previous posts you made, so go ahead and find it.

sir_PaBlo 11-01-2020 14:41

Re: VIP plugin access
 
Quote:

Originally Posted by OciXCrom (Post 2723342)
Maybe try posting 10 more threads, I'm sure that will help. You already got an answer in one of the previous posts you made, so go ahead and find it.


I have never been helped in this
This plugin is different from that one
I also asked for this plugin only in the menu display menu in a specific round
Thank you so much for not helping:x

sir_PaBlo 11-01-2020 14:45

Re: VIP plugin access
 
Quote:

Originally Posted by OciXCrom (Post 2723342)
Maybe try posting 10 more threads, I'm sure that will help. You already got an answer in one of the previous posts you made, so go ahead and find it.


In this plugin, if you try and take the time, I have not given access to admins to restrict their access.
VIP_FLAG_C
This plugin has access to the menu
You also try to look at the plugin and compare it with other posts and then criticize about it

OciXCrom 11-01-2020 14:50

Re: VIP plugin access
 
Maybe if you don't copy/paste your posts 15 times people will take you more seriously.
Post the .inc file the plugin is using so we can see what VIP_FLAG_C is.
Also, this is the Scripting section. If you have no experience in coding and are not willing to learn, you shouldn't post here.

sir_PaBlo 11-01-2020 15:28

Re: VIP plugin access
 
Quote:

Originally Posted by OciXCrom (Post 2723349)
Maybe if you don't copy/paste your posts 15 times people will take you more seriously.
Post the .inc file the plugin is using so we can see what VIP_FLAG_C is.
Also, this is the Scripting section. If you have no experience in coding and are not willing to learn, you shouldn't post here.


I will learn if you help
Please send your telegram id so that I can send you everything I understood and the inc file.
You are very selfish
If you are very upset about this situation, help me not to ask you any more questions in this regard

sir_PaBlo 11-01-2020 15:31

Re: VIP plugin access
 
Quote:

Originally Posted by OciXCrom (Post 2723349)
Maybe if you don't copy/paste your posts 15 times people will take you more seriously.
Post the .inc file the plugin is using so we can see what VIP_FLAG_C is.
Also, this is the Scripting section. If you have no experience in coding and are not willing to learn, you shouldn't post here.

PHP Code:

/* Access flags */
#define VIP_FLAG_ALL 0      // Any flag
#define VIP_FLAG_A (1<<0)   // Flag "a"
#define VIP_FLAG_B (1<<1)   // Flag "b"
#define VIP_FLAG_C (1<<2)   // Flag "c"
#define VIP_FLAG_D (1<<3)   // Flag "d"
#define VIP_FLAG_E (1<<4)   // Flag "e"
#define VIP_FLAG_F (1<<5)   // Flag "f"
#define VIP_FLAG_G (1<<6)   // Flag "g"
#define VIP_FLAG_H (1<<7)   // Flag "h"
#define VIP_FLAG_I (1<<8)   // Flag "i"
#define VIP_FLAG_J (1<<9)   // Flag "j"
#define VIP_FLAG_K (1<<10)  // Flag "k"
#define VIP_FLAG_L (1<<11)  // Flag "l"
#define VIP_FLAG_M (1<<12)  // Flag "m"
#define VIP_FLAG_N (1<<13)  // Flag "n"
#define VIP_FLAG_O (1<<14)  // Flag "o"
#define VIP_FLAG_P (1<<15)  // Flag "p"
#define VIP_FLAG_Q (1<<16)  // Flag "q"
#define VIP_FLAG_R (1<<17)  // Flag "r"
#define VIP_FLAG_S (1<<18)  // Flag "s"
#define VIP_FLAG_T (1<<19)  // Flag "t"
#define VIP_FLAG_U (1<<20)  // Flag "u"
#define VIP_FLAG_V (1<<21)  // Flag "v"
#define VIP_FLAG_W (1<<22)  // Flag "w"
#define VIP_FLAG_X (1<<23)  // Flag "x"
#define VIP_FLAG_Y (1<<24)  // Flag "y"
#define VIP_FLAG_Z (1<<25)  // Flag "z"

/* Returns 1 if player is VIP, otherwise 0 */
native VSGetUserVip(id)

/* Returns 1 if player have a flag, otherwise 0 */
native VSGetVipFlag(idflag)

/* Returns flags the player as sum of bits */
native VSGetVipFlags(id)

/* Register new item
Parameters: 
    name - item name
    flag - access flag
Returns:
    id of item
*/
native VSRegisterItem(name[], flag)

/* Returns 1 if the privilege is enabled, otherwise 0 */
native VSGetItemState(id)

/* Activate the privilege on the menu */
native VSEnableItem(id)

/* Disables the privilege of the menu */
native VSDisableItem(id)

/* Sets the privileges name of the menu */
native VSSetItemName(idname[])

/* Called when the player has chosen an element */
forward VSItemSelected(iditemid)

/* Called when a VIP connects */
forward VSVipConnect(id)

/* Called when player opening menu */
forward VSOpeningMenu(id

vipsystem.inc

OciXCrom 11-01-2020 16:59

Re: VIP plugin access
 
What is Telegram? Who said I have Telegram?

Do your admins have flag "c"?

sir_PaBlo 11-02-2020 02:38

Re: VIP plugin access
 
Quote:

Originally Posted by OciXCrom (Post 2723366)
What is Telegram? Who said I have Telegram?

Do your admins have flag "c"?

No Admin has c flag
This flag is for VIPs
I have not given access to the menu for my admins, but the plugin has given them access
In this plugin, I have access to VIPs, but none of them have access to this
I do not know what the problem is

OciXCrom 11-02-2020 07:31

Re: VIP plugin access
 
What flags do your admins have?


All times are GMT -4. The time now is 14:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.