Jump to content

Copying a MTA function?


.:HyPeX:.

Recommended Posts

Hey guys, how could i clone a function down??

Should it be like this?

  
MySetAccountData = setAccountData 
  

i also thought about this, but could be harder and longer:

  
function MySetAccountData(acc, data, val) 
  
local Return = setAccountData(acc, data, val) 
  
return Return 
end 
  

Thanks

HyPeX

Link to comment

I'd strongly recommand you not to do this. If some gains control over the client and is able to execute clientside Lua code, he'll be able to execute almost everything (such as ACL manipulation, shutdown, script stealing etc.)

Link to comment
I'd strongly recommand you not to do this. If some gains control over the client and is able to execute clientside Lua code, he'll be able to execute almost everything (such as ACL manipulation, shutdown, script stealing etc.)

i'd just add some functions, not the dangerous ones, imo.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...