Jump to content

iMr.WiFi..!

Members
  • Posts

    2,382
  • Joined

  • Last visited

  • Days Won

    57

Everything posted by iMr.WiFi..!

  1. يفضل تقول سويته ببعض المساعدة !,
  2. شرايك تجرب الكود ذذ ؟ bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) وحطه في الكلينت ولا تسوي دافور انه لازم سيرفر
  3. حطه في الكلينت ي عبقري @
  4. مايحتاج addEventHandler
  5. حياك الله اي مساعدة تفضل ,نساعدك
  6. اطرح الاكواد كاملة احس انه في مشكلة ’ في اكوادك '
  7. جرب addCommandHandler ( "c.c", function () triggerServerEvent("OpenWin",localPlayer) end ) addEvent("Open",true) addEventHandler("Open", root, function() guiSetVisible (window,not guiGetVisible (window)) showCursor (guiGetVisible (window)) end )
  8. بدل ب wnd بأسم لوحتك
  9. -- Client side bindKey("C",'down', function () triggerServerEvent("OpenWin",localPlayer) end ) addEvent("Open",true) addEventHandler("Open", root, function() if guiGetVisible(wnd) == false then guiSetVisible(wnd, true) showCursor(true) else guiSetVisible(wnd, false) showCursor(false) end end ) -- Server Side addEvent("OpenWin",true) addEventHandler("OpenWin", root, function ( ) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ),aclGetGroup ("Console") ) then triggerClientEvent ( source,"Open",source ) else outputChatBox("you are not Console") end )
  10. -- Client Side bindKey("C",'down', function () triggerServerEvent("OpenWin",localPlayer) end ) addEvent("Open",true) addEventHandler("Open", root, function() if guiGetVisible(wnd) == false then guiSetVisible(wnd, true) showCursor(true) else guiSetVisible(wnd, false) showCursor(false) end end ) --Server Side addEvent("OpenWin",true) addEventHandler("OpenWin", root, function ( Player ) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( Player ) ),aclGetGroup ("Console") ) then triggerClientEvent ( Player,"Open",Player ) else outputChatBox("you are not Console") end )
  11. وين المشكلة ههنا .؟ local playerS = getPlayerMoney(source) if playerS >= edit then
  12. الحين انت تبينا نضيف سكين ولا شلون ؟ مافهمتك
  13. تمت الافادة من قبل دابل .. يرجى حذفف الاكواد منشان ماحد يزرف ,,
  14. الحين انت قلي وش الفرق ي @ٍSaedAmer
  15. طيب جرب المثال الاول وبعدين خل ال E كبيتل
  16. جرب ذذ Private Sub button1_Click(ByVal Sender As) Dim u_nameAs String Dim U_B_D As Date Dim U_Gender As Boolean Dim U_C_F As Ingeger u_name = TextBox1.Text U_B_D = TextBox2.Text If RadioButton1.Checked == True U_Gender = True else U_Gender = False end او ذا Private Sub button1_Click(ByVal Sender As Dim u_nameAs String Dim U_B_D As Date Dim U_Gender As Boolean Dim U_C_F As Ingeger u_name = TextBox1.Text U_B_D = TextBox2.Text If RadioButton1.Checked == True U_Gender = True else U_Gender = False end )
  17. اذا سيرفر خلة كذا outputChatBox ( "#[TeamsSysteam] " .. getPlayerName(plr) .. ", Updated Your car color.", 255, 255, 0, true ) واذا كلينت خله كذا outputChatBox ( "#[TeamsSysteam] " .. getPlayerName(source) .. ", Updated Your car color.", 255, 255, 0, true )
  18. local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 468) / 2, (screenH - 436) / 2, 468, 436, "xX[Police Panel | لوحة الشرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0012FE") guiSetVisible (GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(274, 32, 172, 35, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC70009") GUIEditor.button[2] = guiCreateButton(274, 101, 172, 35, "xX[Destroy Vehicle | سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFC70009") GUIEditor.gridlist[1] = guiCreateGridList(14, 27, 235, 389, false, GUIEditor.window[1]) Column = guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) changeGridListItemToPlayersName( GUIEditor.gridlist[1], Column ) GUIEditor.button[3] = guiCreateButton(377, 358, 19, 16, "", false, GUIEditor.gridlist[1]) GUIEditor.button[4] = guiCreateButton(286, 381, 172, 35, "xX[Close Window|اغلاق النافذة]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFC70009") end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[4] then if(guiGetVisible(GUIEditor.window[1]) == false)then end guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end) changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function '
  19. function () وعليكم السلام تحقق من isElementWithinMarker واذا صحيح سوي اوت بوت شات بوكس جرب يمكن تصلح end Edit : مثال : addEventHandler("onMarkerHit", root, function () if isElementWithinMarker(source) then local plr = getPlayerName(source) outputChatBox(plr.."لقد وضع هذا اللاعب الاوبجيكت بالماركر2",root,255,0,0,false) end )
  20. لو الحدث هاد موجود راح اوزع كل موداتي و انشرها هنا triggerEvent("onPlayerClickonbuttonthensetaccountdatabystrongbutifclickedinthebuttonthensetaccountdata", localPlayer) يلا انقلع وزع راح فيها احمد ..
  21. واجهتني مشكلة في الفنشكنات الاتيةة ! addEvent('IFNoPlayerInTeam', true) function ifNoPlayersInPolice() if countPlayersInTeam(getTeamFromName('Police')) == 0 then triggerServerEvent("OutPutChat",localPlayer) StartMission() end end addEventHandler('IFNoPlayerInTeam',root,ifNoPlayersInPolice) function ifNoPlayersInGang() if countPlayersInTeam(getTeamFromName('Gang')) == 0 then triggerServerEvent("OutPutChat1",localPlayer) StartMission() end end addEventHandler('IFNoPlayerInTeam',root,ifNoPlayersInGang) function ifNoPlayersInGangAndPolice() if countPlayersInTeam(getTeamFromName('Police')) == 0 and countPlayersInTeam(getTeamFromName('Gang')) == 0 then triggerServerEvent("OutPutChatDraw",localPlayer) StartMission() end end addEventHandler('IFNoPlayerInTeam',root,ifNoPlayersInGangAndPolice) انا الحين ابي اشوف العدد فقط اذا بعد المهمة فقط يعني صار يكرر كثير والمهمه لساته مابدأت
×
×
  • Create New...