Jump to content

مساعدة بسيطه .


Recommended Posts

سسلأم عليكم

انا عامل شيك بوكس اسمهه Support

وعامل لما يضعط عليه يجي اسمه في القريد لست

انا ابي اعمل لما يشيل العلامه من الشيك بوكس

اسمو يختفو من القريد لست

شو استخدم فكشنات

Link to comment

كلنت

addEventHandler('onClientGUIClick',root, 
function () 
if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true then 
local PlrName = getPlayerName(localPlayer) 
triggerServerEvent('allPlayers',localPlayer,PlrName) 
elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false then 
triggerServerEvent('allPlayers1',localPlayer) 
end 
end 
) 
  
addEvent('Suppport',true) 
addEventHandler('Suppport',root, 
function ( PlrName ) 
local Roww = guiGridListAddRow(GUIEditor.gridlist[2]) 
guiGridListSetItemText(GUIEditor.gridlist[2],Roww,1," "..PlrName.." ",false,false) 
end 
) 
  
addEvent('Suppport2',true) 
addEventHandler('Suppport2',root, 
function (  ) 
guiGridListRemoveRow(GUIEditor.gridlist[2],Roww) 
end 
) 

سرفر

addEvent('allPlayers',true) 
addEventHandler('allPlayers',root, 
function ( PlrName ) 
for i, v in ipairs ( getElementsByType( 'player' ) ) do 
triggerClientEvent(v,'Suppport',v,PlrName) 
end 
end 
) 
  
addEvent('allPlayers1',true) 
addEventHandler('allPlayers1',root, 
function (  ) 
for i, v in ipairs ( getElementsByType( 'player' ) ) do 
triggerClientEvent(v,'Suppport2',v) 
end 
end 
) 
Link to comment

لالا

انا عملت لما يضعط علي شيك بوكس

يجي اسمو في القريد لست

انا عاوز لما يضعط علي الشيك بوكس يجي اسمه عملتها دي.

عاوز لما يشيل العلامه من الشيك بوكس

يختفي اسم اللاعب

الحدد الشيك بوكس

مب كل الاسامي

Link to comment

جرب

  
GUIEditor = { 
    checkbox = {}, 
    edit = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
GUIEditor.window[1] = guiCreateWindow(165, 176, 669, 494, "", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
SupportList = guiCreateGridList(9, 23, 650, 421, false, GUIEditor.window[1]) 
guiGridListAddColumn(SupportList, "Message",1) 
GUIEditor.edit[1] = guiCreateEdit(10, 447, 434, 37, "", false, GUIEditor.window[1]) 
GUIEditor.checkbox[1] = guiCreateCheckBox(445, 444, 109, 40, "اخفاء الاسم", false, false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.checkbox[1], "default-bold-small") 
GUIEditor.button[1] = guiCreateButton(553, 443, 106, 41, "ارسال", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.button[1], "default-bold-small") 
guiSetEnabled (SupportList, false ) 
  
addEventHandler("onClientGUIClick",GUIEditor.button[1],function () 
if guiGetText(GUIEditor.edit[1]) ~= '' then 
triggerServerEvent("allPlayers",localPlayer,guiGetText(GUIEditor.edit[1])) 
end 
end, false) 
  
addEvent('Suppport',true) 
addEventHandler('Suppport',root,function (Message,PlrName ) 
local Roww = guiGridListAddRow(SupportList) 
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then 
guiGridListSetItemText(SupportList,Roww,1," "..PlrName.." : " ..Message,false,false) 
guiGridListSetItemColor (SupportList,Roww,1,0,255,0) 
elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then 
guiGridListSetItemText(SupportList,Roww,1," unknown : "..Message.." ",false,false) 
guiGridListSetItemColor (SupportList,Roww,1,255,0,0) 
end 
end) 

addEvent('allPlayers',true) 
addEventHandler('allPlayers',root, 
function (Message) 
for i, v in ipairs ( getElementsByType( 'player' ) ) do 
triggerClientEvent(v,'Suppport',v,Message,getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) 
end 
end) 
Link to comment
GUIEditor = { 
    checkbox = {}, 
    edit = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
GUIEditor.window[1] = guiCreateWindow(165, 176, 669, 494, "", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
SupportList = guiCreateGridList(9, 23, 650, 421, false, GUIEditor.window[1]) 
guiGridListAddColumn(SupportList, "Message",1) 
GUIEditor.edit[1] = guiCreateEdit(10, 447, 434, 37, "", false, GUIEditor.window[1]) 
GUIEditor.checkbox[1] = guiCreateCheckBox(445, 444, 109, 40, "اخفاء الاسم", false, false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.checkbox[1], "default-bold-small") 
GUIEditor.button[1] = guiCreateButton(553, 443, 106, 41, "ارسال", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.button[1], "default-bold-small") 
guiSetEnabled (SupportList, false ) 
  
addEventHandler("onClientGUIClick",GUIEditor.button[1],function () 
if guiGetText(GUIEditor.edit[1]) ~= '' then 
triggerServerEvent("allPlayers",localPlayer,guiGetText(GUIEditor.edit[1])) 
end 
end, false) 
  
addEvent('Suppport',true) 
addEventHandler('Suppport',root,function (Message,PlrName ) 
local Roww = guiGridListAddRow(SupportList) 
if PlrName == tonumber(PlrName) then 
  
elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then 
guiGridListSetItemText(SupportList,Roww,1," unknown :" ..Message,false,false) 
guiGridListSetItemColor (SupportList,Roww,1,255,0,0) 
elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then 
guiGridListSetItemText(SupportList,Roww,1," "..PlrName.." : " ..Message,false,false) 
guiGridListSetItemColor (SupportList,Roww,1,0,255,0) 
end 
end) 

addEvent('allPlayers',true) 
addEventHandler('allPlayers',root, 
function (Message) 
for i, v in ipairs ( getElementsByType( 'player' ) ) do 
triggerClientEvent(v,'Suppport',v,Message,getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) 
end 
end) 

Link to comment
GUIEditor = { 
    checkbox = {}, 
    edit = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
GUIEditor.window[1] = guiCreateWindow(165, 176, 669, 494, "", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
SupportList = guiCreateGridList(9, 23, 650, 421, false, GUIEditor.window[1]) 
guiGridListAddColumn(SupportList, "Message",1) 
GUIEditor.edit[1] = guiCreateEdit(10, 447, 434, 37, "", false, GUIEditor.window[1]) 
GUIEditor.checkbox[1] = guiCreateCheckBox(445, 444, 109, 40, "اخفاء الاسم", false, false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.checkbox[1], "default-bold-small") 
GUIEditor.button[1] = guiCreateButton(553, 443, 106, 41, "ارسال", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.button[1], "default-bold-small") 
guiSetEnabled (SupportList, false ) 
  
addEventHandler("onClientGUIClick",GUIEditor.button[1],function () 
if guiGetText(GUIEditor.edit[1]) ~= '' then 
triggerServerEvent("allPlayers",localPlayer,guiGetText(GUIEditor.edit[1])) 
end 
end, false) 
  
addEvent('Suppport',true) 
addEventHandler('Suppport',root,function (Message,PlrName ) 
local Roww = guiGridListAddRow(SupportList) 
if PlrName == tonumber(PlrName) then 
  
elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then 
guiGridListSetItemText(SupportList,Roww,1," unknown :" ..Message,false,false) 
guiGridListSetItemColor (SupportList,Roww,1,255,0,0) 
elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then 
guiGridListSetItemText(SupportList,Roww,1," "..PlrName.." : " ..Message,false,false) 
guiGridListSetItemColor (SupportList,Roww,1,0,255,0) 
end 
end) 

addEvent('allPlayers',true) 
addEventHandler('allPlayers',root, 
function (Message) 
for i, v in ipairs ( getElementsByType( 'player' ) ) do 
triggerClientEvent(v,'Suppport',v,Message,getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) 
end 
end) 

انا مجربه كدا اشتغل معي

Link to comment

انت ما فهمني

انا عملت قريد لست وعملت في شيك بوكس اليضعط عليه يظهر اسمه في القريد لست

في قريد لستت تاني غير الرساله ذي

وعاوز اليشيل العلامه اسمه يختفي خالص من القريد لست التاني

مب النتو بتتكلمو عليه كد

Link to comment

انت ما فهمني

انا عملت قريد لست وعملت في شيك بوكس اليضعط عليه يظهر اسمه في القريد لست

في قريد لستت تاني غير الرساله ذي

وعاوز اليشيل العلامه اسمه يختفي خالص من القريد لست التاني

مب النتو بتتكلمو عليه كد

Link to comment
انت ما فهمني

انا عملت قريد لست وعملت في شيك بوكس اليضعط عليه يظهر اسمه في القريد لست

في قريد لستت تاني غير الرساله ذي

وعاوز اليشيل العلامه اسمه يختفي خالص من القريد لست التاني

مب النتو بتتكلمو عليه كد

يعني يحذف الرسايل واسمه وكل شئ صح ؟

Link to comment
  
function Refresh() 
triggerServerEvent('allPlayers',localPlayer) 
end 
  
  
addEvent('SupportOnline',true) 
addEventHandler('SupportOnline',root,function ( ) 
local Roww = guiGridListAddRow(SupportList) 
local PlrName = getPlayerName ( source ) 
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then 
guiGridListSetItemText(SupportList,Roww,1,""..PlrName.."",false,false) 
guiGridListSetItemColor (SupportList,Roww,1,0,255,0) 
elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then 
guiGridListRemoveRow(SupportList,Roww) 
end 
end) 
  

  
addEvent('allPlayers',true) 
addEventHandler('allPlayers',root, 
function ( ) 
for i, v in ipairs ( getElementsByType( 'player' ) ) do 
triggerClientEvent(v,'SupportOnline',v) 
end 
end) 
  

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