Jump to content

x[ طلب ]x


Recommended Posts

اخوي تفضل

wnd5 = guiCreateGridList(27, 39, 346, 247, false, mainwndmaster)
guiGridListSetSelectionMode(wnd5,2)

local column = guiGridListAddColumn(wnd5,"Jail Time", 0.9)


row1 = guiGridListAddRow(wnd5)
row2 = guiGridListAddRow(wnd5)
row3 = guiGridListAddRow(wnd5)
row4 = guiGridListAddRow(wnd5)
row5 = guiGridListAddRow(wnd5)
row6 = guiGridListAddRow(wnd5)
row7 = guiGridListAddRow(wnd5)
row8 = guiGridListAddRow(wnd5)
row9 = guiGridListAddRow(wnd5)
row10 = guiGridListAddRow(wnd5)


guiGridListSetItemText(wnd5,row1,column,"1 min", false, false)
guiGridListSetItemColor ( wnd5, row1, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row2,column,"2 min", false, false)
guiGridListSetItemColor ( wnd5, row2, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row3,column,"3 min", false, false)
guiGridListSetItemColor ( wnd5, row3, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row4,column,"4 min", false, false)
guiGridListSetItemColor ( wnd5, row4, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row5,column,"10 min", false, false)
guiGridListSetItemColor ( wnd5, row5, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row6,column,"1 hour", false, false)
guiGridListSetItemColor ( wnd5, row6, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row7,column,"2 hour", false, false)
guiGridListSetItemColor ( wnd5, row7, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row8,column,"5 hour", false, false)
guiGridListSetItemColor ( wnd5, row8, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row9,column,"1 day", false, false)
guiGridListSetItemColor ( wnd5, row9, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row10,column,"2 days", false, false)
guiGridListSetItemColor ( wnd5, row10, column, 0, 0, 255 )












function onClickza()
	
		


	if source == wnd8 then -- jail
	
	jail = guiGridListGetItemText ( wnd5, guiGridListGetSelectedItem ( wnd5 ), 1 )
	if jail then
	triggerServerEvent ("jail", getLocalPlayer(), jail)


end 
addEventHandler("onClientGUIClick",root,onClickza)

هذا كان كلنت سايد

 

 

اما الحين نشوف السيرفر سايد

 

 

 

addEvent("jail",true) -- Jail
addEventHandler("jail",root,
function(text)
if text == "1 min" then
		elseif text == "2 min" then
		end
end	)

هذا بالنسبه لكيف تحدد شي من جريد ليست وترسله لسيرفر اما الكومند الصراحه ما اعرف وما ابي افتي ليك ويطلع غلط

Edited by Master_MTA
Link to comment
4 minutes ago, MR.NaiF-MTA said:

يبي اذا اختيار شي من الجريد ليست يفعل كوماند

مو فاهم يعني لو اختار شي من الجريد لست زي ما قلت انا بس بيصيير كذا؟

addEvent("jail",true) -- Jail
addEventHandler("jail",root,
function(text)
if text == "1 min" then
      addCommandHandler("hgsdfjl",functionhfs)
		elseif text == "2 min" then
		end
end	

كذا مثلا

ولا يبيه كلنت سايد

Edited by Master_MTA
Link to comment
7 minutes ago, MR.NaiF-MTA said:

يا حبيبي text 

مب معرف 

يعني ايش 

textهو هو

نفسه

jail

بس بعد ما ارسلته للسيرفر غيرت اسمه اتمنى تكون وصلت المعلومه تراني قاعد افيدك واستفيد منك مو اتهاوش هدي اعصابك مهي مستاهله

Link to comment
18 hours ago, Master_MTA said:

اخوي تفضل


wnd5 = guiCreateGridList(27, 39, 346, 247, false, mainwndmaster)
guiGridListSetSelectionMode(wnd5,2)

local column = guiGridListAddColumn(wnd5,"Jail Time", 0.9)


row1 = guiGridListAddRow(wnd5)
row2 = guiGridListAddRow(wnd5)
row3 = guiGridListAddRow(wnd5)
row4 = guiGridListAddRow(wnd5)
row5 = guiGridListAddRow(wnd5)
row6 = guiGridListAddRow(wnd5)
row7 = guiGridListAddRow(wnd5)
row8 = guiGridListAddRow(wnd5)
row9 = guiGridListAddRow(wnd5)
row10 = guiGridListAddRow(wnd5)


guiGridListSetItemText(wnd5,row1,column,"1 min", false, false)
guiGridListSetItemColor ( wnd5, row1, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row2,column,"2 min", false, false)
guiGridListSetItemColor ( wnd5, row2, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row3,column,"3 min", false, false)
guiGridListSetItemColor ( wnd5, row3, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row4,column,"4 min", false, false)
guiGridListSetItemColor ( wnd5, row4, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row5,column,"10 min", false, false)
guiGridListSetItemColor ( wnd5, row5, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row6,column,"1 hour", false, false)
guiGridListSetItemColor ( wnd5, row6, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row7,column,"2 hour", false, false)
guiGridListSetItemColor ( wnd5, row7, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row8,column,"5 hour", false, false)
guiGridListSetItemColor ( wnd5, row8, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row9,column,"1 day", false, false)
guiGridListSetItemColor ( wnd5, row9, column, 0, 0, 255 )
guiGridListSetItemText(wnd5,row10,column,"2 days", false, false)
guiGridListSetItemColor ( wnd5, row10, column, 0, 0, 255 )












function onClickza()
	
		


	if source == wnd8 then -- jail
	
	jail = guiGridListGetItemText ( wnd5, guiGridListGetSelectedItem ( wnd5 ), 1 )
	if jail then
	triggerServerEvent ("jail", getLocalPlayer(), jail)


end 
addEventHandler("onClientGUIClick",root,onClickza)

هذا كان كلنت سايد

 

 

اما الحين نشوف السيرفر سايد

 

 

 


addEvent("jail",true) -- JailaddEventHandler("jail",root,function(text)if text == "1 min" then		elseif text == "2 min" then		endend	)

هذا بالنسبه لكيف تحدد شي من جريد ليست وترسله لسيرفر اما الكومند الصراحه ما اعرف وما ابي افتي ليك ويطلع غلط

شكرا لكك

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