Jump to content

Bank , turf , money -2 -_-


Best-Killer

Recommended Posts

function sendTurfPayout ( ) 
	local groupTurfs = { }
	for i, v in pairs ( turfLocs ) do 
		if ( not groupTurfs [ v.owner ] ) then 
			groupTurfs [ v.owner ] = 0
		end 

		if ( not v.attackers ) then 
			groupTurfs [ v.owner ] = groupTurfs [ v.owner ] + 1
		end   
	end

	for i, v in pairs ( getElementsByType ( 'player' ) ) do 
		local g = expors .SAEGGroups:getGroups () or exports.SAEGGroups:getPlayerGroup ( v ) 
		if ( groupTurfs [ g ] > 0 ) then
			local c = groupTurfs [ g ] * tonumber ( get ( "*PAYOUT_CASH" ) )
			exports.SAEGGroups:setGroupBank ( g, exports.SAEGGroups:getGroupBank ( g ) + tostring(c) ) 
		end
	end
end 
setTimer ( sendTurfPayout, (60*tonumber(get("*PAYOUT_TIME")))*100, 0 )

exports.SAEGGroupsgetPlayerGroup fine but SAEGGroups:getGroups  group isn't defined

and with that code , money are withdrawed to clan bank but only when the player group online ig 

i want if player not online ig or online ig the money  withdraw to Groupbank !! any help pls ?

 

Note :  to that Moderator who removing my posts without make sure my codes aren't stolen or leaked -_- pm me i want know you then i'll give you proffs that my codes arent't leaked or stolen Wtf pffffffffffff Stop removing them really i'm using Nerg Gaming Game mode & developring them want proff Pm me 

Link to comment
  • 2 weeks later...

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...