31.12.2017, 06:20
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
So For Checking If Player Having Required Admin level or not i am using this In My GM
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
For For Checking That The Player Is Of Required Admin level I Use This In FS
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
In Gamemod i have Having Like This
Код:
enum PlayerData { bip, Registered, LoggedIn, Level, Helper, Tag }; new PlayerInfo[MAX_PLAYERS][PlayerData];
Код:
if(PlayerInfo[playerid][Level] < 6)
So On Top I Added This In My FS
Код:
enum PlayerData { Level }; new PlayerInfo[MAX_PLAYERS][PlayerData];
Код:
if(PlayerInfo[playerid][Level] < 6) return SendClientMessage(playerid,COLOR_YELLOW,"You are not allowed to use this command.");
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