Jump to content

al-Kobra

Members
  • Posts

    740
  • Joined

  • Last visited

Everything posted by al-Kobra

  1. هذا الا كنت اقصده بس ما عرفت اشرحه
  2. 'onClientGUIChanged' guiGridListClear for i, v ... do -- loop getElementsByType ^ getPlayerName --تقدر تغير مثل-- GetVehicleIDFromName string.find guiGetText -- للأدت guiGridListAddRow guiGridListSetItemText
  3. al-Kobra

    طللب

    'onClientRender' getElementPosition getDistanceBetweenPoints3D getScreenFromWorldPosition dxDrawText
  4. اساساً انت ما سويت كود الزر وربطته مع الدم
  5. جرب ؟ -- Client Side GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible( wnd, false ) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) bindKey("F5", "down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then triggerServerEvent("kill", getLocalPlayer()) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[5] then triggerServerEvent( "Pro", getLocalPlayer()) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then triggerServerEvent( "GiveIi", getLocalPlayer()) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[6] then showChat(not isChatVisible()) end end )
  6. -- Client Side GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd) end ) guiSetVisible( wnd, false ) function OpenWin() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("F5", "down", OpenWin) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], function ( ) triggerServerEvent("kill", getLocalPlayer()) end ) addEventHandler("onClientGUIClick", GUIEditor.button[5], function ( ) triggerServerEvent( "Pro", getLocalPlayer()) end ) addEventHandler ( 'onClientGUIClick', GUIEditor.button[3], function ( ) triggerServerEvent( "GiveIi", getLocalPlayer()) end ) addEventHandler ("onClientGUIClick", GUIEditor.button[6], function () showChat(not isChatVisible()) end ) --Server Side ! addEvent("kill", true) addEventHandler("kill", root, function ( ) killPed ( source ) end ) addEvent("Pro",true) addEventHandler("Pro",root, function ( ) if ( isPedHeadless(source) ) then setPedHeadless(source,false) else setPedHeadless(source,true) end end) addEvent ( 'GiveIi', true ) addEventHandler ( 'GiveIi', root, function ( ) setPedArmor ( source, 100 ) end ) جرب
  7. اصلا عادي اذا فضيت بسوي واحد
  8. جرب , addEventHandler ( "onClientClick", root, function ( button, state, _, _, _, _, _, plr ) if button == "left" and state == "up" and plr then if getElementType( plr ) == "player" then if getPlayerName( plr ) == getPlayerName( localPlayer ) then guiSetVisible ( wnd, not guiGetVisible(wnd) ) showCursor( guiGetVisible(wnd)) else guiSetVisible ( secWnd, guiGetVisible(secWnd) ) showCursor( guiGetVisible(secWnd) ) end else outputChatBox( " ** Please click on the player !" ) end end end )
  9. Server Side ! function getPlayerAccount isGuestAccount isObjectInACLGroup setElementData Client Side ! 'onClientRender' getElementPosition getScreenFromWorldPosition getCameraMatrix getDistanceBetweenPoints3D dxDrawText
  10. http://forum.mta4arabs.com/t772
  11. function dxDrawCircle3D( x, y, z, radius, segments, color, width ) segments = segments or 16; color = color or tocolor( 255, 255, 0 ); width = width or 1; local segAngle = 360 / segments; local fX, fY, tX, tY; for i = 1, segments do fX = x + math.cos( math.rad( segAngle * i ) ) * radius; fY = y + math.sin( math.rad( segAngle * i ) ) * radius; tX = x + math.cos( math.rad( segAngle * (i+1) ) ) * radius; tY = y + math.sin( math.rad( segAngle * (i+1) ) ) * radius; dxDrawLine3D( fX, fY, z, tX, tY, z, color, width ); end end addEventHandler( "onClientRender", root, function( ) for _, marker in pairs( getElementsByType("marker") ) do if getMarkerType( marker ) == "cylinder" then setElementAlpha( marker, 0 ); local x,y,z = getElementPosition( marker ); local radius = getMarkerSize( marker ); local color = tocolor( getMarkerColor( marker ) ); dxDrawCircle3D( x, y, z, radius, 24, color ); end end end )
  12. جرب function dxDrawCircle3D( x, y, z, radius, segments, color, width ) segments = segments or 16; color = color or tocolor( 255, 255, 0 ); width = width or 1; local segAngle = 360 / segments; local fX, fY, tX, tY; -- drawing line: from - to for i = 1, segments do fX = x + math.cos( math.rad( segAngle * i ) ) * radius; fY = y + math.sin( math.rad( segAngle * i ) ) * radius; tX = x + math.cos( math.rad( segAngle * (i+1) ) ) * radius; tY = y + math.sin( math.rad( segAngle * (i+1) ) ) * radius; dxDrawLine3D( fX, fY, z, tX, tY, z, color, width ); end end addEventHandler("onClientRender", root, function() dxDrawCircle3D( x, y, z, 3, 5) end )
  13. انا اصحى في لندن ,, اتفطر في باريس ,, اتغذى في ايطاليا واتعشى في البحرين
  14. الخطة الاولى مع دبل برجر بكم ؟
  15. رهيب من هذا المجهود الى الاعلى #بالتوفيق <~
×
×
  • Create New...