This site uses cookies. In order to read how we handle cookies please click here. Click on this message to accept and hide.
Перейти вверх
3.145.186.173.US

NDCH NDCH Lua tutorials

How to use masked functions.
Lets create a send to operators custom function via permissions object.

Code
--// create a blank permissions object
isOpPerm = Hub.newPermissions();
--// set the is_operator mask
isOpPerm.is_operator = true;

--// create a custom function
sendToOps = function(text)
    --// use the masked send to all function using our perm object.
    Hub.mSendToAll(isOpPerm, text);
end;

Комментарии

There are no comments for this page, you can leave one here.