PacMan Posted March 24, 2010 Posted March 24, 2010 It would be nice if there were add scripting function for virtual set ACL rights for player at time of current game. Something like: setPlayerAclGroup (player thePlayer, string groupName, bool access) Or: loginAclGroup( player thePlayer, string groupName ) logoutAclGroup( player thePlayer ) That would be a good alternative use for its own account system.
robhol Posted March 24, 2010 Posted March 24, 2010 Agreed, something like that would be useful. Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
lil Toady Posted March 25, 2010 Posted March 25, 2010 Not like you can't script those functions Do not PM me, im not going to read it anyway.
PacMan Posted March 25, 2010 Author Posted March 25, 2010 With these functions would be much easier, for example, take your "admin" resource. There are commands to administer the server, but to use them need ACL right, could simply get necessary rights and working with any resources. You can certainly go the difficult way and write your own system for temporary obtaining of rights, constantly adding and removing user accounts and ACL rights, but agree it is not the best solution.
PacMan Posted March 25, 2010 Author Posted March 25, 2010 Better still make a function similar to temporary login with obtaining rights as it is now using /login triggered event onPlayerLogin and leaving onPlayerLogout. When player logout ACL rights should automatically disappear. For example: playerLogin( player thePlayer, acl theAcl ) playerLogout( player thePlayer )
Recommended Posts