Quote:
Originally Posted by Loriel
I am probably missing something here, but why would you ever call functions outside of function blocks?
|
Normally, you never would; this is to try to catch/prevent abuse of script rights.
PHP Code:
findPlayer("cbk1994").addItem("gun_ak47", 5);
function onCreated() {
// blah
}
Quote:
Weapon/GUI-Script SomeRandomWeapon has been added/updated by cbk1994!
[note: top line of code is now removed]
Weapon/GUI-Script SomeRandomWeapon has been added/updated by cbk1994!
Tig: Woah, that was fast.
|
etc.
Right now I'm simply denying anything I can't get the callstack for, and then only allowing it for a list of allowed scripts.
However, I'd like it if I could see what function is trying to add an item so staff can tell if it was an honest glitch, or if someone is trying to abuse powers (Era has had a lot of abuse of power problems lately).