Adham Posted April 27, 2016 Posted April 27, 2016 سلام عليكم انا عامل قريد لست وضايف فيه اكل عاوز اليحدد علي واحد اكل يجيلو اكل ب2500 ج ولو معهوش فلوس يجيلو * You dont Have money بعدين عاوز لو محددش خاجه في القريد لست وداس علي ال button تختفي اللوحة
#Soking Posted April 27, 2016 Posted April 27, 2016 اصنع لوحة لك طيب , وحط اكوادها وانا ببرمجها لك واعطيك الاكواد
#|_oskar_|# Posted April 27, 2016 Posted April 27, 2016 يعني انت كل يوم قاعد تطلب واكثر طلباتك ع القريد والى الان مافهمت
Adham Posted April 27, 2016 Author Posted April 27, 2016 حلو انا معايا كل الكودات بس الطعام كيف اعمله؟ فكشن
[iMr]-W[i]Fi,.! Posted April 27, 2016 Posted April 27, 2016 كلنت 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemText triggerServerEvent else guiSetVisible سيرفر getPlayerMoney takePlayerMoney else outputChatBox
Adham Posted April 27, 2016 Author Posted April 27, 2016 المشكله addEventHandler("onClientGUIClick",GUIEditor.button[1],function () guiGetText(GUIEditor.edit[1])) if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 and guiGridListGetItemText ( GUIEditor.gridlist[1] ) then guiSetEnabled (GUIEditor.button[1],false) setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end end)
[iMr]-W[i]Fi,.! Posted April 27, 2016 Posted April 27, 2016 هذا الي فهمته من كودك , addEventHandler("onClientGUIClick",root,function () if source == GUIEditor.button[1] then if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],false) end end end)
Adham Posted April 27, 2016 Author Posted April 27, 2016 انا عامل كود مسح شات في القريد لست عاوز قروبات محدده تمسح الشات
[iMr]-W[i]Fi,.! Posted April 28, 2016 Posted April 28, 2016 (edited) -- Server Groups = { "Console", "Admin", "support", } function OnPlayerACL ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) for _, v in ipairs ( Groups ) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then triggerClientEvent(player,'ClrChat',player) end end end --Client addEvent('ClrChat',true) addEventHandler('ClrChat',root, function () -- You'r Code end ) Edited April 28, 2016 by Guest
mouamle Posted April 28, 2016 Posted April 28, 2016 (edited) -- Server Groups = { "Console", "Admin", "support", } function OnPlayerACL ( player ) for _, v in ipairs ( Groups ) do local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then triggerClientEvent ( player, "ClrChat", player ) end end end --Client addEvent('ClrChat',true) addEventHandler('ClrChat',root, function () -- You'r Code end ) حتى ما يجيب أسم اللاعب كل مره يمر بال loop : function OnPlayerACL ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) for _, v in ipairs ( Groups ) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then triggerServerEvent(player,'ClrChat',player) end end end Edited April 28, 2016 by Guest
#|_oskar_|# Posted April 28, 2016 Posted April 28, 2016 triggerServerEvent -- #Client عشان ترسل الترايقر للكلنت استخدم triggerClientEvent -- #Server
Adham Posted April 28, 2016 Author Posted April 28, 2016 ايه المشكله Groups = { "Console", "Admin", "support", } function OnPlayerACL ( player ) for _, v in ipairs ( Groups ) do local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then triggerClientEvent ( player, "Clear", player ) end end end كلنت addEventHandler ("onClientGUIClick",GUIEditor.button[1], function () if guiGetText (GUIEditor.edit[1]) == "/Clear" then return triggerServerEvent ("Clear",localPlayer,getPlayerName(localPlayer)) end --sendMessage code end) addEvent ("CLEAR",true) addEventHandler ("CLEAR",root, function (name) guiGridListClear (GUIEditor.gridlist[1]) rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,1," "..name.." - Cleard Chat",false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],rw, 1, 0, 227, 254, 255) end)
[iMr]-W[i]Fi,.! Posted April 28, 2016 Posted April 28, 2016 Groups = { "Console", "Admin", "support" } function OnPlayerACL ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) for _, v in ipairs ( Groups ) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then triggerClientEvent ( player, "Clear", player ) end end end -- Client addEvent('Clear',true) function Cleared () if guiGetText (GUIEditor.edit[1]) == "/Clear" then if source == GUIEditor.button[1] then guiGridListClear (GUIEditor.gridlist[1]) rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,1," "..getPlayerName(source).." - Cleard Chat",false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],rw, 1, 0, 227, 254, 255) end end end addEventHandler ("CLEAR",root,Cleared) addEventHandler ("onClientGUIClick",root,Cleared)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now