Jump to content

#Rmad~>

Members
  • Posts

    251
  • Joined

  • Last visited

Everything posted by #Rmad~>

  1. صححت الي بكودك بس فيه اخطأ واشياء ناقصة local am = [x,y,z] wnd = guiCreateWindow(356, 181, 312, 392, "لوحة الانتقال", false) guiSetVisible (wnd, false) guiSetProperty(wnd, "CaptionColour", "FF00FCFE") GUIEditor.label[1] = guiCreateLabel(60, 28, 232, 30, "اختر المكان الذي تريد الانتقال إليه:",false,wnd) guiLabelSetColor(GUIEditor.label[1], 253, 0, 239) gridlist = guiCreateGridList(10, 56, 292, 270, false,wnd) guiGridListAddColumn(gridlist, "الأماكن",0.9) button = guiCreateButton(101, 336, 116, 46, "انتقال", false, wnd) for k,v in ipairs(am) do guiGridListClear (gridList) guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist,0,1,v[1],false,false) guiGridListSetItemData(gridlist,0,1,v[2]and v[3] and v[4]) end bindKey ( "F6" , "down" , function () if guiGetVisible ( wnd , true ) then guiSetVisible ( wnd , false ) showCursor ( false ) else guiSetVisible ( wnd , true ) showCursor ( true ) end end ) addEventHandler ("onClientGUIClick",getRootElement(), function () if (source == button) then local row = guiGridListGetSelectedItem(source) if (row ~= -1) then local player = guiGridListGetItemData(gridlist,1) if (player) then setElementPosition(localPlayer,player) outputChatBox("لقد انتقلت إلى "..player.."",source,255,0,120,true) end end end end )
  2. -__-" مايحتاج فنكشن للي يبيه هو مسوي صورة رئيسية ويبي يحط الازرار داخلها هو اكيد انه مخلي كوده كذا image = guiCreateStaticImage(...) guiCreateButton(x, y, width, height, "", false) الصح image = guiCreateStaticImage(...) guiCreateButton(x, y, width, height, "", false, image )
  3. اذا بتسوي شخصيات كثيره يب تحتاج
  4. 'onClientGUIDoubleClick' guiGridListGetSelectedItem guiGridListGetItemText setElementModel
  5. 1- الفنكشن لاكان له اسم تخلي الحدث تحت الوظيفة 2- plr قيمة غير معرفه التصحيح function OnJoin () local money = 38 local id = 38 givePlayerMoney (source,money) giveWeapon (source,id) end addEventHandler("onPlayerJoin",root,OnJoin) ثآنكيو آنا كنت بجرب الاختصار لوكل العفو بتوفيق
  6. if isElement(plr) and getElementType(plr) == "player" then مايحتاج تعرفها تخليها source وانتهينا
  7. 1- الفنكشن لاكان له اسم تخلي الحدث تحت الوظيفة 2- plr قيمة غير معرفه التصحيح function OnJoin () local money = 38 local id = 38 givePlayerMoney (source,money) giveWeapon (source,id) end addEventHandler("onPlayerJoin",root,OnJoin)
  8. onPlayer..... ServerSide only, onClientPlayer..... ClientSide only, "onPlayerJoin" addEventHandler givePlayerMoney giveWeapon
  9. addEventHandler( "onClientGUIClick", GUIEditor.button[1], function() gText = guiGetText(GUIEditor.edit[1]) if gText ~= "" then triggerServerEvent("onSendMsg",localPlayer,gText) end end,false) addEvent("onAddMsg",true) addEventHandler("onAddMsg",root, function(gText) for i, player in ipairs (getElementsByType ("player")) do local Name = string.gsub(getPlayerName(player),"#%x%x%x%x%x%x","") local Row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,1,tostring(gText),false,false) guiGridListSetItemText(GUIEditor.gridlist[1],Row,2,Name,false,false) end end )
  10. خربته كله مخبوص من بدايته لاخره وش يجيك بالديبوق
  11. addEventHandler( "onClientGUIClick", GUIEditor.button[1], function() if ( source == GUIEditor.button[1] ) then gText = guiGetText(GUIEditor.edit[1]) if gText ~= "" then row = guiGridListAddRow ( GUIEditor.gridlist[1] ) triggerServerEvent("onSendMsg", localPlayer,gText) end end end,false) addEvent("onAddMsg",true) addEventHandler("onAddMsg",root, function(gText) for i, player in ipairs (getElementsByType ("player")) do local Name = string.gsub(getPlayerName(player),"#%x%x%x%x%x%x","") local Row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,msgC,1,tostring(gText),false,false) guiGridListSetItemText(GUIEditor.gridlist[1],Row,plrC,2,Name,false,false) end end ) addEvent("onSendMsg", true) addEventHandler("onSendMsg", root, function (gText) triggerClientEvent("onAddMsg",source,gText) end )
  12. لول الخطأ بالايتم function setit() if source == GUIEditor.button[1] then Text = guiGetText(GUIEditor.edit[1]) if gText ~= "" then row = guiGridListAddRow ( GUIEditor.gridlist[1] ) triggerServerEvent("onSendMsg", localPlayer,gText) end end end addEventHandler ("onClientGUIClick",root,setit) addEvent("onAddMsg", true) addEventHandler("onAddMsg", root, function() for i, player in ipairs (getElementsByType ("player")) do local Name = string.gsub(getPlayerName(player),"#%x%x%x%x%x%x","") local Row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,1,tostring(gText),false,false) guiGridListSetItemText(GUIEditor.gridlist[1],Row,1,Name,false,false) end end )
  13. #Rmad~>

    طلب

    ي الخاوي كل ششي ضبط ككتر الله خخيرك ~ بس فيه مششكله التيم لما سويته شف مضبطو كل شي ضبط local Team = createTeam ( teamName ) -- نسوي فريق setPlayerTeam(source,Team) -- نحطه بتيمم وشفيه تمام الكود شوف يقولك شي بالديبوق
  14. الكود الي تشوفه مافيه شي انا قلتلك فوق الكود ناقص يمكن الخطأ من الكود الي ماطرحته بعدين انا دام اني بصلح بصلح الي بشوفة قدامي حتى لو ماقلت لانه ممكن منه الخطأ وانت منت داري
  15. function setit() if source == GUIEditor.button[1] then gText = guiGetText(GUIEditor.edit[1]) if gText ~= "" then row = guiGridListAddRow ( GUIEditor.gridlist[1] ) triggerServerEvent("onSendMsg", localPlayer, gText) end end end addEventHandler ( "onClientGUIClick", root, setit) addEvent("onAddMsg", true) addEventHandler("onAddMsg", root, function() for i, player in ipairs (getElementsByType ("player")) do local Name = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") local Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], Row,tostring(gText), false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], Row,Name, false, false ) end end ) + الكود ناقص.
  16. #Rmad~>

    طلب

    local Team = createTeam ( teamName ) -- نسوي فريق addEventHandler("onPlayerLogin",root, -- عند الدخول function () setElementPosition (source,x,y,z) -- نرسل الاعب للاحداثيات setElementModel(source,45) -- نعطيه شخصية giveWeapon(source,31,1000,true) -- نعطيه سلاح setPlayerTeam(source,Team) -- نحطه بتيمم end ) addEventHandler("onPlayerWasted",root, -- عند موت الاعب function () spawnPlayer(source,x,y,z) -- سباون للاعب setElementModel(source,45) -- نعطيه شخصية giveWeapon(source,31,1000,true) -- نعطيه سلاح end )
  17. #Rmad~>

    طلب

    "onPlayerLogin" setPlayerTeam setElementModel giveWeapon spawnPlayer "onPlayerWasted" setElementModel spawnPlayer giveWeapon
  18. يعني حتى البحث ماتبغا تبحث ترا الكود صعب وطويل وفيه حسابات فماظن احد بيسوي لك على العموم هاذا شرح لترافك
  19. تقدر تستفيد من مود traffic
  20. addEventHandler("onVehicleEnter",root, function(player) if getElementData(player,'gang') == groupName then if getPlayerTeam (player) and getPlayerTeam (player) == getTeamFromName ("Police") then removePedFromVehicle ( player ) outputChatBox("Group "..groupName.." Only",player,255,0,0,true) else outputChatBox("Group " .. groupName .. " Only", player, 255, 0, 0, true) cancelEvent(true) end end end )
  21. يعطيك العافية سويتها بالدااتا وظبطت وهاذي كمان ظبطت يغلق ,
  22. Try.. nextmapdisplay = dxText:create("Next Map:"..g_NextMap.."", 2, screenHeight - dxGetFontHeight(1,"default-bold")/0.7, false, "default-bold", 1, "left")
×
×
  • Create New...