Jump to content

x[طلب]x


ivor

Recommended Posts

سلام الله عليكم

اظن ان معظمكم يعرف لوحة القروبات حقت عرب كوم المنشورة وابي اطورها

مابي اطول فالكلام , بخش ف الموضوع

انا ابي اكواد تخلي جروب توب فالاحتلال ملون

يعني 1 الى 3 لون 

و من 3 الى 5 لون

والتاني لون

وشكرآ

Link to comment
5 minutes ago, #BrosS said:

بما انك تحب مواضيع المودات المنشورة

استخدم مود الجروبات حق أي اس المنشور , فيه توب الاحتلال ملون

::))))))))))))))))))))))))

انا قولت بطورة ي حلو وبنشرة ماقلت بخليه لي

Link to comment
1 minute ago, #BrosS said:

المود حقك فيه توب احتلال اصلا ؟

يب مود قروبات حق عرب كوم فيه

 

Groups Top 

بس مافيه تنسيق يعني لو قروب لفل 10 تلقاه واخد المرتبه حقت انشاءة 

 

ابي يصير فيها ترتيب

Link to comment
Group_Top_Window = guiCreateWindow(x/2-185,y/2-225,370,440,"[ArabCommunity] - Groups Top",false)
guiSetAlpha(Group_Top_Window, 0.9)
guiWindowSetSizable(Group_Top_Window,false)
Group_Top_Grid = guiCreateGridList(19,28,330,350,false,Group_Top_Window)
guiGridListSetSelectionMode(Group_Top_Grid,1)
guiGridListAddColumn(Group_Top_Grid,"Group",0.5)
guiGridListAddColumn(Group_Top_Grid,"Xp",0.189)
guiGridListAddColumn(Group_Top_Grid,"LVL",0.189)
guiSetVisible(Group_Top_Window, false)
Group_Top_Button = guiCreateButton(150,408,68,25,"Close",false,Group_Top_Window)
guiSetProperty(Group_Top_Button, "HoverTextColour", "FFFFFC00")
guiSetProperty(Group_Top_Button, "PushedTextColour", "FF00FF00")
guiSetProperty(Group_Top_Button, "NormalTextColour", "FF00FCFF")

 

Link to comment
3 minutes ago, #BrosS said:

الأكواد هذي مو المطوبة

قلت اللي تضيف الجروبات بالجريد لست مو اللوحة 

ddEvent("GroupTOPList", true)
addEventHandler("GroupTOPList", root,
function(groups)
	guiGridListClear(Group_Top_Grid)
	for i, group in pairs(groups) do
		local row = guiGridListAddRow(Group_Top_Grid)
		guiGridListSetItemText(Group_Top_Grid, row, 1, group["group_name"], false, false)
		guiGridListSetItemText(Group_Top_Grid, row, 2, group["group_xp"], false, true)
		local xp = group["group_xp"]
			if ( tonumber(xp) >= 0 ) and ( tonumber(xp) <= 5000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 1", false, true)
			elseif ( tonumber(xp) > 5000 ) and ( tonumber(xp) <= 10000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 2", false, true)
			elseif ( tonumber(xp) > 10000 ) and ( tonumber(xp) <= 20000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 3", false, true)
			elseif ( tonumber(xp) > 20000 ) and ( tonumber(xp) <= 40000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 4", false, true)
			elseif ( tonumber(xp) > 40000 ) and ( tonumber(xp) <= 80000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 5", false, true)
			elseif ( tonumber(xp) > 80000 ) and ( tonumber(xp) <= 160000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 6", false, true)
			elseif ( tonumber(xp) > 160000 ) and ( tonumber(xp) <= 320000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 7", false, true)
			elseif ( tonumber(xp) > 320000 ) and ( tonumber(xp) <= 640000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 8", false, true)
			elseif ( tonumber(xp) > 640000 ) and ( tonumber(xp) <= 1000000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 9", false, true)
			elseif ( tonumber(xp) > 1000000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 10", false, true)
			end
	end
end)

ذي ؟ 

 

حسب مافهمت منك ذذ

Link to comment
Just now, #BrosS said:

تبي تحط ألوان , ارني محاولتك يا فتى


guiGridListSetItemColor

 

addEvent("GroupTOPList", true)
addEventHandler("GroupTOPList", root,
function(groups)
	guiGridListClear(Group_Top_Grid)
	for i, group in pairs(groups) do
		local row = guiGridListAddRow(Group_Top_Grid)
		guiGridListSetItemText(Group_Top_Grid, row, 1, group["group_name"], false, false)
		guiGridListSetItemText(Group_Top_Grid, row, 2, group["group_xp"], false, true)
		local xp = group["group_xp"]
			if ( tonumber(xp) >= 0 ) and ( tonumber(xp) <= 5000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 1", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 5000 ) and ( tonumber(xp) <= 10000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 2", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 10000 ) and ( tonumber(xp) <= 20000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 3", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 20000 ) and ( tonumber(xp) <= 40000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 4", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 40000 ) and ( tonumber(xp) <= 80000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 5", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 80000 ) and ( tonumber(xp) <= 160000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 6", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 )
			elseif ( tonumber(xp) > 160000 ) and ( tonumber(xp) <= 320000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 7", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 )
			elseif ( tonumber(xp) > 320000 ) and ( tonumber(xp) <= 640000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 8", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 )
			elseif ( tonumber(xp) > 640000 ) and ( tonumber(xp) <= 1000000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 9", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 )
			elseif ( tonumber(xp) > 1000000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 10", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 )
			end
	end
end)

م في مستحيل 

 

سمعتهم يقولون كذا صح؟

Link to comment
1 minute ago, #!Error.xD said:

addEvent("GroupTOPList", true)
addEventHandler("GroupTOPList", root,
function(groups)
	guiGridListClear(Group_Top_Grid)
	for i, group in pairs(groups) do
		local row = guiGridListAddRow(Group_Top_Grid)
		guiGridListSetItemText(Group_Top_Grid, row, 1, group["group_name"], false, false)
		guiGridListSetItemText(Group_Top_Grid, row, 2, group["group_xp"], false, true)
		local xp = group["group_xp"]
			if ( tonumber(xp) >= 0 ) and ( tonumber(xp) <= 5000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 1", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 5000 ) and ( tonumber(xp) <= 10000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 2", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 10000 ) and ( tonumber(xp) <= 20000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 3", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 20000 ) and ( tonumber(xp) <= 40000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 4", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 40000 ) and ( tonumber(xp) <= 80000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 5", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 )
			elseif ( tonumber(xp) > 80000 ) and ( tonumber(xp) <= 160000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 6", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 )
			elseif ( tonumber(xp) > 160000 ) and ( tonumber(xp) <= 320000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 7", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 )
			elseif ( tonumber(xp) > 320000 ) and ( tonumber(xp) <= 640000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 8", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 )
			elseif ( tonumber(xp) > 640000 ) and ( tonumber(xp) <= 1000000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 9", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 )
			elseif ( tonumber(xp) > 1000000 ) then
				guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 10", false, true)
				guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 )
			end
	end
end)

م في مستحيل 

 

سمعتهم يقولون كذا صح؟

جربت الكود انت ؟؟

Link to comment
1 minute ago, #Soking said:

جربت الكود انت ؟؟

يب واشتغل تمام 

 

guiGridListSetItemColor ( Group_Top_Grid, row,1,2 3, 255, 0, 0 )

 

تظبط كذا؟ لو بخليها ع الكل الاسم واللفل والاكس بي

Link to comment
4 minutes ago, #!Error.xD said:

يب واشتغل تمام 

 

guiGridListSetItemColor ( Group_Top_Grid, row,1,2 3, 255, 0, 0 )

 

تظبط كذا؟ لو بخليها ع الكل الاسم واللفل والاكس بي

حط لكل كولمن لون 

ماينفع هيك :-

Link to comment
2 minutes ago, #BrosS said:

حط لكل كولمن لون 

ماينفع هيك :-

الكود ظبط بس ع الاكس بي انا ابي اخلي اللون يصير ع الاسم حق القروب واللفل والاكس بي كيف؟

Link to comment

 

Just now, #!Error.xD said:

الكود ظبط بس ع الاكس بي انا ابي اخلي اللون يصير ع الاسم حق القروب واللفل والاكس بي كيف؟

 

3 minutes ago, #BrosS said:

حط لكل كولمن لون 

 

Link to comment
1 minute ago, #!Error.xD said:

مافهمتك

guiGridListSetItemColor ( element gridList, int rowIndex, int columnIndex

gridList == اسم الجريد لست

rowIndex == الرو حقك اللي معرفه

columnIndex == رقم الكولم

شايف انت مثلا حاطط

guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 )

يعني لونت الكولمن 3 فقط

--

اتمنى الفكرة تكون وصلت

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