Jump to content

طلب تعديل


Recommended Posts

الحين ابي اسوي مود  لو لاعب كتب كلمه في الشات يجيه ساعات

 

كيف اسويه؟

addEventHandler("onPlayerChat",root,
	function ( msg, type, plr )
		if ( type == 0 and msg == statTime ) then
			outputChatBox( "#ff9900* ≈ ( #ffff00".. eT2 .."#ff9900 ) #ff9900 أسرع كـاتب وربح ساعـات وقدرهـا ( #ffffff ".. getPlayerName( source ):gsub( "#%x%x%x%x%x%x", "" ) .." #ff9900 ) اللاعب ",root,0,255,0,true)
			playSoundFrontEnd( root, 30 )
			statTime = nil
			
			local sValue = getElementData( source,'PlayTime' )
			if not sValue then sValue = '0:0:0' end
			local data = split(sValue,':')
			local hour = tonumber( data[1] )  
			if hour == nil or not tonumber( hour ) then hour = 0 end
		end
	end
)

ملحوظه : مربوط مع مود الساعات المعروف

Edited by +Source|>
Link to comment

جرب .#

addEventHandler("onPlayerChat",root,
	function ( msg, type, plr )
		if ( type == 0 and msg == statTime ) then
			outputChatBox( "#ff9900* ≈ ( #ffff00".. eT2 .."#ff9900 ) #ff9900 أسرع كـاتب وربح ساعـات وقدرهـا ( #ffffff ".. getPlayerName( source ):gsub( "#%x%x%x%x%x%x", "" ) .." #ff9900 ) اللاعب ",root,0,255,0,true)
			playSoundFrontEnd( root, 30 )
			statTime = nil
triggerEvent ( "addTime", source, getPlayerName(source),tonumber(1) ) -- 1 هو عدد الساعات
		end
	end
)

 

  • Like 1
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...