Jump to content

Help


manve1

Recommended Posts

I made a script which should 100% work, but it doesn't, it is in meta as server side, but i get error in debug script 3 that on the acl part "getPlayerName" argument 1 has an error

function plata( source ) 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
   givePlayerMoney( v, 1 ) 
end 
end 
setTimer ( plata, 2300, 0) 

Link to comment
setTimer( 
    function() 
        for key,value in next, getElementsByType 'player' do 
            if (isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(value)), aclGetGroup('Admin'))) then 
                givePlayerMoney(value, 1) 
            end 
        end 
    end, 2300, 0 
) 

Edited by Guest
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...