Jump to content

طفشت محاولات


Recommended Posts

مساعده لو سمحتم

 

if getElementData( source,'PlayTime' ) >= "50" then
			outputChatBox( "#aa0000 [ H.D Ranks ]#00ff00 ! بنجاح  x Trial x  تم شراء رتبة ", source, 0, 0, 0, true )
			playSoundFrontEnd( source, 45 )
			takePlayerMoney( source, 150000 )
			aclGroupAddObject( aclGetGroup( "Trial" ), "user."..accName )
		else
			outputChatBox( "#aa0000 [ H.D Ranks ]#ff0000 ! أنت لا تملك وقت كـافي ", source, 0, 0, 0, true )
		end

ابي لو معه اكثر من 50 ساعه يشتري رتبه

 

المشكله اذا عطيته 50 ساعه

يقدر يشتري للي ب 100 ساعه

Link to comment
  • 1 month later...

بحاول اساعدك 

--اكيد لازم تحط ذي في كلينت

triggerServerEvent("timerank",localPlayer,Group,Price)
test = function ( Group,Price )
	local acc = getAccountName(getPlayerAccount(source));
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("عليك التسجيل اولا",source,255,0,0,true); end
	if isObjectInACLGroup("user."..acc, aclGetGroup(tostring(Group))) then return outputChatBox("لديك الرتبة هذه بالفعل",source,0,255,255,true); end
    local sv = getElementData( source,'PlayTime' )
	if not sv then sv = '0:0:0' end
	local data = split(sv,':')
	local hr = tonumber( data[1] )  
	if hr == nil or not tonumber(hr) then hr = 0 end
	if ( hr >= tonumber(Price))  then
		aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..acc);
		outputChatBox("لقد تم شراء الرتبة بنجاح"..n,source,255,0,0,true);
	else
		outputChatBox("لا تمتلك الساعات الكافية",source,0,255,255,true);
    end
end
addEvent("timerank",true)
addEventHandler("timerank",root,test)

جرب و قولي 

Edited by [T]|O|[P]George
  • 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...