Jump to content

iMr ~ MnHmAr

Members
  • Posts

    555
  • Joined

  • Last visited

Everything posted by iMr ~ MnHmAr

  1. العفووو لا : ترى سهل حاول تسويه
  2. local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) local KEY="N" function OPEN() guiSetVisible(WndColor,true) showCursor(true) end bindKey(KEY,"down",OPEN) addEventHandler("onClientGUIClick",root,function() if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then local color = guiGetText(ColorEdit) if color ~="" then triggerServerEvent("setData",localPlayer,color) else outputChatBox("pls write any thing" end end end ) ------------Server addEvent("setData",true) addEventHandler("setData",root,function(color) --- لاتنسى التحقق * if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) addEventHandler("onPlayerChat", root,function ( ) local MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) if MsgColor then cancelEvent() local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) else local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source).." :#ffffff" ..message, root, red, green, blue, true ) end end ) جرب
  3. لما ارسلت التقريت لـ السيرفر سوي في اول سطور الفانكشن حق استقابل التقريت تحقق من الرتبه او السريال او كلاهما لان انت مسوي الي يضرب الزر يعطيه اكونت داتا
  4. انت تبي تسوي الوان لـ اشخاص عبر سريال ولا رتبه ؟
  5. الله يعفيك + هل السكرت اشتغل معك او لا تبي لون التاج + الكلام نفس بعض ؟ +
  6. جرب local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) local KEY="N" function OPEN() guiSetVisible(WndColor,true) showCursor(true) end bindKey(KEY,"down",OPEN) addEventHandler("onClientGUIClick",root,function() if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then local color = guiGetText(ColorEdit) if color ~="" then triggerServerEvent("setData",localPlayer,color) else outputChatBox("pls write any thing" end end end ) ------------Server addEvent("setData",true) addEventHandler("setData",root,function(color) if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) addEventHandler("onPlayerChat", root,function ( ) if getAccountData ( getPlayerAccount(source), "colortag" ) then cancelEvent() local red, green, blue = getPlayerNametagColor(source) MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) if MsgColor then outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) end end end ) outputChatBox("# #ccff00[ Dieputy Console ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) ":#FFFFFF " = هذا مكان لون الكلام تبع الاعب
  7. سوي مثل ما قالك نايف قفل الزر و سوي جدول ثمن سوي تحقق اذا كان الاعب في الجدول يفكه له الزر اذا ما كان يقفله
  8. اذا طالع لك شيء بي الدي بوق هاته
  9. -- #Server addEvent("teamcrr",true) addEventHandler("teamcrr",root,function( a,b,e ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then local playername = getAccountPlayer(e) local b1,c1,d1 = getColorFromString(b) local team2 = createTeam ( a, b1, c1, d1 ) local ks = getPlayerAccount(playername) setPlayerTeam(playername,team2) setAccountData(ks,"ownerTeam",getTeamName(team2)) setElementData(playername,"ownerrr",getPlayerTeam(playername)) setElementData(playername,"ownerrr2",getAccountName(getPlayerAccount(playername)) ) setElementData(team2,"?owner",getAccountName(getPlayerAccount(playername))) triggerClientEvent("asgs",root) triggerClientEvent("closect",source) end end ) --#Client elseif source == GUIEditor.button[14] then local a1 = guiGetText(GUIEditor.edit[1]) local a2 = guiGetText(GUIEditor.edit[2]) local a5 = guiGetText(GUIEditor.edit[5]) if a1 ~="" and a2 ~="" and a5 ~="" then triggerServerEvent("teamcrr",localPlayer,a1,a2,a5) aTeamsRefresh() else outputChatBox("pls Complete all EditBox") aTeamsRefresh() end جرب ;
  10. ما اشوف فيه اخطاء لو تقدر تطرح ارسال التقرايت لـ السيرفر الي بـ الكلنت يمكن فيه يكون الغلط + الايدت بوكس تحط فيه اسم الاعب ؟
  11. اطرح سكايبي و ان شاء الله بحله لك
  12. removeElementData على ما اعتقد اذا مازبطت سوي مثل ما قال تايقر
  13. ضض انا جايب الجدول كامل خلاص انتهت و تم حل المشكله مشكورين
  14. مابقدر + ما ضن الكود فيه مشكله المشكله من نفس القاعده ع ضمن خلاص الموضوع يغلق
  15. -- #Server addEvent("getDatas",true) addEventHandler("getDatas",root, function() local MnHmAr = executeSQLQuery("SELECT * FROM `SaveSystem`") triggerClientEvent(root,"aGrid1",root,MnHmAr) end ) -- #Client addEvent ( "aGrid1", true ) addEventHandler ( "aGrid1", root, function(tabl) for k,v in ipairs(tabl) do local row = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText (GUIEditor.gridlist[2],row,1,v.account,false,false) guiGridListSetItemText (GUIEditor.gridlist[2],row,2,v.editdays,false,false) guiGridListSetItemText (GUIEditor.gridlist[2],row,3,v.editsbab,false,false) guiGridListSetItemColor ( GUIEditor.gridlist[2],row,1, 222, 200, 22 ) guiGridListSetItemColor ( GUIEditor.gridlist[2],row,2, 220, 220, 250 ) guiGridListSetItemColor ( GUIEditor.gridlist[2],row,3, 220, 220, 250 ) end end ) وش الغلط هذا بعض الاكواد..
  16. قسم البرمجه - قسم الدروس و تعلم واذا غلطت واصل كل دقه بـ تعليمه
  17. ليه وش الغلط -- #Clinet addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then local addplayer = guiGetText(NameEdit) -- اسم الايديت بوكس حقك triggerServerEvent ( 'addplayer', getLocalPlayer (), addplayer) end end ) -- #Server addEvent('addplayer',true) addEventHandler('addplayer',getRootElement(), function(addplayer) local acc = getAccount(addplayer) if acc and not isGuestAccount(acc) then local account = getAccountName(acc) if account then setPlayerTeam ( source , "اسم التيم " ) end end end )
  18. -- #Clinet addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then local addplayer = guiGetText(NameEdit) -- اسم الايديت بوكس حقك triggerServerEvent ( 'addplayer', getLocalPlayer (), addplayer,teamplayer) end end ) -- #Server addEvent('addplayer',true) addEventHandler('addplayer',getRootElement(), function(addplayer,teamplayer) local acc = getAccount(player1) if acc and not isGuestAccount(acc) then local account = getAccountName(acc) if account then setPlayerTeam ( source , "اسم التيم " ) end end end )
  19. اوك تم التعديل الان عدلته فيه غلط بـ الكود ؟
  20. لم يتم التجربه function freezeall() for i,player in ipairs(getElementsByType("player")) do freezeX = getPedOccupiedVehicle(player) if freezeX then if not isElementFrozen(freezeX) then setElementFrozen(freezeX, true) setElementFrozen(player, true) outputChatBox("all has been unfroozen successfully !",root, 0,255,0, true) end end end end addCommandHandler("freeze-all", freezeall)
  21. -- #Clinet addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then local addplayer = guiGetText(NameEdit) -- اسم الايديت بوكس حقك triggerServerEvent ( 'addplayer', getLocalPlayer (), addplayer,teamplayer) end end ) -- #Server addEvent('addplayer',true) addEventHandler('addplayer',getRootElement(), function(addplayer,teamplayer) local account = getPlayerAccount ( addplayer ) if account then local accname = getAccountName ( account ) setPlayerTeam ( source , "اسم التيم " ) end end )
×
×
  • Create New...