Jump to content

[iMr]-W[i]Fi,.!

Members
  • Posts

    185
  • Joined

  • Last visited

Everything posted by [iMr]-W[i]Fi,.!

  1. مافهمتك ابد اكوادك فيها اخطاء كتيره ليش مسوي فراغ زايد زي كذ ا guiSetVisible (window , false ) وضح طلبك اكتر
  2. يعيال هدو انا كنت مستعجل بالكتابة @
  3. اهنيككك , وعليكم السلام تفضل : -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiComboBoxGetSelected(GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then if isTimer (Timer) then return killTimer (Timer) end end end ) -- Server addEventHandler('FixNow',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) Timer = setTimer( function () fixVehicle(Veh) end,500,1) end )
  4. اوك انا فهمتك شوف ذذ مثال Table = { "Data1", "Data2", "Data3" } addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'VV') if ( v_Data ) then for _, v in ipairs ( Table ) do setElementData( source, v, getAccountData(acc,'VV')) end end end )
  5. سلم يابني + لطلبك الاول مافي شيء اسمه دخان وضح طلبك + طلبك التاني تفضل الفنكشنات وحاول سويه حتى لو هريس -- Client 'onClientGUIClick' guiCheckBoxGetSelected triggerServerEvent -- Server getPedOccupiedVehicle setTimer -- خله كل 500 مليثانية يصلح سيارة fixVehicle بنسبة اذا شليت التحديد سوي كده -- Client 'onClientGUIClick' guiCheckBoxGetSelected triggerServerEvent -- Server isTimer killTimer -- الطلب الثاني -- Client 'onClientGUIClick' guiCheckBoxGetSelected triggerServerEvent -- Server getPedOccupiedVehicle addVehicleUpgrade -- 1010 واذا شال التحديد سوي كذا -- Client 'onClientGUIClick' guiCheckBoxGetSelected triggerServerEvent --Server getPedOccupiedVehicle removeVehicleUpgrade -- 1010 -- الطلب الرابع -- Client 'onClientGUIClick' triggerServerEvent -- Server fixVehicle حاول ترا سهل جداً جداً
  6. -- 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 )
  7. يعني تبي تحفظ الداتا على جميع لاعبين ؟
  8. جابر لاتعدل في كودك شيء بس بدل اللوكال بلاير ب root النتيجة addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local skin = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),2) if skin ~= "" then guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent("shep",root,skin) --- start end elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end)
  9. هذا الي فهمته من كودك , 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)
  10. سطر الخامس في الكلينت احذفه وضيف ما بين السطر الثالث والرابع ذذ تحقق if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then --- وسطر الرابع في السيرفر بدل الكلينت ب سورس واحذف السطر ال6
  11. كلنت 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemText triggerServerEvent else guiSetVisible سيرفر getPlayerMoney takePlayerMoney else outputChatBox
  12. ههههههههههههههههه اها تمام اسف ولايهمك ,
  13. اعذرني جاري التعديل ..
  14. -- Client addEventHandler('onClientGUIClick',root, function () if source = CheckBox and guiComboBoxGetSelected(CheckBox) == true then triggerServerEvent('Create',localPlayer) elseif source = CheckBox and guiComboBoxGetSelected(CheckBox) == false then triggerServerEvent('Destroy',localPlayer) end end ) --Server addEvent('Create',true) addEvent('Delete',true) addEventHandler('Create',root, function ( ) local x,y,z = getElementPosition(source) Obj = createObject(1318,x, y + 10 , z ) end ) addEventHandler('Delete',root, function () if not isElement( Obj ) then return end destroyElement( Obj ) end ) Not Testing
  15. جرب كذا ي لعبة local Admins = { "Console", "Admin" } function clear ( thePlayer ) local cuenta = getAccountName( getPlayerAccount(thePlayer) ) for k,v in ipairs ( Admins ) do if isObjectInACLGroup("user."..cuenta, aclGetGroup(v)) then outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" #0099cc"..getPlayerName(thePlayer).." - Cleard Chat",root, 0, 255, 0, true) end end end addCommandHandler("77", clear)
  16. function clear ( thePlayer ) local cuenta = getAccountName( getPlayerAccount(thePlayer) ) if isObjectInACLGroup("user."..cuenta, aclGetGroup("Console")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Level 1")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Level 2")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Level 3")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Level 4")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Level 5")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Level 6")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Head.Admin")) then spaces(thePlayer) elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Trainee")) then spaces(thePlayer) end end addCommandHandler("77", clear) function spaces () outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" #0099cc"..getPlayerName(thePlayer).." - Cleard Chat", getRootElement(), 255, 255, 255, true) end جرب
  17. =D> اهنيك على الهريسة المتواضعة
  18. -- Code By Dabl for id = 400, 611 do if getVehicleNameFromModel(id) ~= "" then local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, getVehicleNameFromModel(id), false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(id), false, false) end end رد عليك دابل ,@
  19. سلم اولاً يا بني @ اول طلب guiCheckBoxGetSelected isPedInVehicle setVehicleColor math.random ثاني طلب guiCheckBoxGetSelected addVehicleUpgrade --1087
  20. جرب ذذ GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(143, 151, 243, 401, "Nick ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(141, 44, 92, 45, "", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(9, 23, 132, 368, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.button[1] = guiCreateButton(145, 95, 88, 48, "Set", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF0DF1E3") GUIEditor.button[2] = guiCreateButton(145, 156, 88, 48, "Resotre Name", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0B0B") GUIEditor.button[3] = guiCreateButton(377, 314, 0, 15, "", false, GUIEditor.window[1]) end ) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addCommandHandler ( "NICK",Strong ) -- Client guiSetEnabled(GUIEditor.button[1],false) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then triggerServerEvent("IHateMezo",localPlayer) end ) addEvent("AccE",true) addEventHandler("AccE",root, function () guiSetEnabled(GUIEditor.button[1],true) end ) -- Server addEvent('IHateMezo',true) addEventHandler('IHateMezo',root, function ( ) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(source,"AccE",source) end end )
  21. GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(143, 151, 243, 401, "Nick ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(141, 44, 92, 45, "", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(9, 23, 132, 368, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.button[1] = guiCreateButton(145, 95, 88, 48, "Set", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF0DF1E3") GUIEditor.button[2] = guiCreateButton(145, 156, 88, 48, "Resotre Name", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0B0B") GUIEditor.button[3] = guiCreateButton(377, 314, 0, 15, "", false, GUIEditor.window[1]) end ) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addCommandHandler ( "NICK",Strong ) -- Client guiSetEnabled(btn,false) addEventHandler("onClientGUIClick",root, function () if source == btn then triggerServerEvent("IHateMezo",localPlayer) end ) addEvent("AccE",true) addEventHandler("AccE",root, function () guiSetEnabled(btn,true) end ) -- Server addEvent('IHateMezo',true) addEventHandler('IHateMezo',root, function ( ) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(source,"AccE",source) end end )
  22. خلاص عدلته ارتحت ؟
  23. -- Server addEvent('IHateMezo',true) addEventHandler('IHateMezo',root, function ( ) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(source,"AccE",source) end end ) -- Client guiSetEnabled(btn,false) addEventHandler("onClientGUIClick",root, function () if source == btn then triggerServerEvent("IHateMezo",localPlayer) end ) addEvent("AccE",true) addEventHandler("AccE",root, function () guiSetEnabled(btn,true) end )
×
×
  • Create New...