What The Command Says I Am Not Allowed To Use,Even If I Have Permission
#1

Hello Guys I Am Having My Whole Admin System In My Gamemode, Recently I made a filterscript for event and i make a cmd:event in it which can be used by admin level 6 but i am not able to use it it says i am not allowed here is the example code

In Gamemod i have Having Like This
Код:
enum PlayerData
{
	bip,
	Registered,
	LoggedIn,
	Level,
	Helper,
	Tag
};
new PlayerInfo[MAX_PLAYERS][PlayerData];
So For Checking If Player Having Required Admin level or not i am using this In My GM
Код:
if(PlayerInfo[playerid][Level] < 6)
Now When It Comes To Filtescript I Want Level 6 Admin Should Be Able To Use Cmd:event
So On Top I Added This In My FS
Код:
enum PlayerData
{
	Level
};
new PlayerInfo[MAX_PLAYERS][PlayerData];
For For Checking That The Player Is Of Required Admin level I Use This In FS
Код:
if(PlayerInfo[playerid][Level] < 6) return SendClientMessage(playerid,COLOR_YELLOW,"You are not allowed to use this command.");
But I Am Having A Problem When I Use The cmd:event it says u r not allowed to use this cmd even if i am level 10
i want to ask
Does I Have To Add That cmd In GM To Make It Work If Yes Plzz Tell Me How I Can Make It Work In FS and also why this problem is arising
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)