Sandbird
Valued Member!
I've been trying 2 days now to implement some things on my clan's server and i've hit my head on the wall many times so far.
I just dont understand why BE is kicking me/players for stuff that 'I' put in my .pbo file.
I took a couple of functions like autorefuel etc and added some more stuff to functions to be run by admins in the game. For example
I put this inside a function that checks if the user requesting that is an admin and if he is i want this to be executed. BE complains with restriction #113. Is there a way i can tell "5 addMagazineCargo .." to ignore anything that comes out of actions/mycustomshit.sqf ?
Or do i have to add every single !"addMagazineCargo ['ItemWaterbottle', 1];"..... in my 5 addMagazineCargo line ?
Let me give another general example of what i am trying to do:
I have an admins.sqf that has an array of UIDs (my admins) and i want for them to be able to execute stuff. So i have this:
if (getPlayerUID player in (call compile preProcessFileLineNumbers "admins.sqf")) then
{
...... ignore anything i do here stupid BE .......and when i say anything i mean stuff like:
(Unitbackpack player) addMagazineCargo ['ItemSodaMdew', 2];
(Unitbackpack player) addMagazineCargo ['ItemWaterbottle', 1];
.......
without it bitching about in console and kicking regular users.
};
Thanks
I just dont understand why BE is kicking me/players for stuff that 'I' put in my .pbo file.
I took a couple of functions like autorefuel etc and added some more stuff to functions to be run by admins in the game. For example
Code:
(Unitbackpack player) addMagazineCargo ['ItemWaterbottle', 1];
Or do i have to add every single !"addMagazineCargo ['ItemWaterbottle', 1];"..... in my 5 addMagazineCargo line ?
Let me give another general example of what i am trying to do:
I have an admins.sqf that has an array of UIDs (my admins) and i want for them to be able to execute stuff. So i have this:
if (getPlayerUID player in (call compile preProcessFileLineNumbers "admins.sqf")) then
{
...... ignore anything i do here stupid BE .......and when i say anything i mean stuff like:
(Unitbackpack player) addMagazineCargo ['ItemSodaMdew', 2];
(Unitbackpack player) addMagazineCargo ['ItemWaterbottle', 1];
.......
without it bitching about in console and kicking regular users.
};
Thanks