Jump to content

#DRAGON!FIRE

Members
  • Posts

    4,429
  • Joined

  • Last visited

Everything posted by #DRAGON!FIRE

  1. يب .. الفنكشن الثاني يشيل لك التكسد اللي حطيته مثلأ تسوي لوحة انه زر يحط لك السكن وزر يشيله او كوماند .. اللي تبيه ذذ
  2. يقصد الريتنكقل اللي يتحركـ .. شي اكيد اللي وراه صورة + مداه يسويه كذا وكذا
  3. يب ض1 ليه معقدين الموضوع .. سهلة جدا .. : تبي تشغل السكين الخاص بكـ .. : engineImportTXD engineLoadTXD تبي تشيله .. / : engineRestoreModel
  4. السكين او الشي اللي تتكلم عنه txd ?
  5. الشكل .. : dxDrawRectangle
  6. As i said above you can't give a 'PED' Weapon which created from the client side you can deal with that by create an object and attaching it to the PED with bone_attach script. And if I do that, I won't be able to fire it, thats the point I am doing this, set ped's control state to fire the weapon try my code
  7. local ped = { }; addCommandHandler( "ped", function ( player ) if ( isElement( ped[player] ) ) then destroyElement( ped[player] ) end ped[player] = createPed ( 100, 2707.11621, 2219.65137, 6.74981 ) if ( ped[player] ) then giveWeapon ( ped[player], 27, 500, true ) setElementVisibleTo ( ped[player], player, true ) setElementVisibleTo ( ped[player], root, false ) end end ) addEventHandler( "onPlayerQuit", root, function( ) if ( isElement( ped[source] ) ) then destroyElement( ped[source] ) ped[source] = nil end end )
  8. * Server Side addCommandHandler( "ped", function ( ) if ( isElement( ped ) ) then destroyElement( ped ) end ped = createPed ( 100, 2707.11621, 2219.65137, 6.74981 ) if ( ped ) then giveWeapon ( ped, 27, 500, true ) end end )
  9. function getMapData(data,valueData) ------- Function Hassan if ( data and valueData ) then for i,v in ipairs(getElementsByType(data)) do if ( v ) then local value = getElementData(v,valueData) if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end addCommandHandler( "addMe", function( player ) local id = getMapData("spawnpoint","vehicle") local px = getMapData("spawnpoint","posX") local py = getMapData("spawnpoint","posY") local pz = getMapData("spawnpoint","posZ") local rx = getMapData("spawnpoint","rotX") local ry = getMapData("spawnpoint","rotY") local rz = getMapData("spawnpoint","rotZ") if ( id and px and py and pz and rx and ry and rz ) then if ( getPedOccupiedVehicle( player ) ) then setElementModel( getPedOccupiedVehicle( player ), tonumber( id ) ) setElementPosition( getPedOccupiedVehicle( player ), px, py, pz ) setElementRotation( getPedOccupiedVehicle( player ), rx, ry, rz ) end end end )
  10. ماهي قليلة ؟ ! مستواكـ معروف ذذ ماهي قليلة لو طلب منك مود قروب سستم .. يلأ سوهـ > تقدر ؟
  11. ما احد يهايط بس خبرتكـ قليلة جدا .. وتبي تسوي سكربتات تعلم اول شي وبعدين سوي وبيع .
  12. هو مداكـ .. بس بصير اخطاء كثيرة لانه قيم مود الريس يسوي السيارات والخ .. لو تبي يوم يطيح يمديكـ
  13. تقصد يوم يموت يرجع محل ما مات تقصد سكربت .. Respawn ?
  14. برمج لنفسكـ بعدين برمج للناس -__-
  15. #DRAGON!FIRE

    طلب

    تظهر للجميع ليه ؟ صحح لي الخطأ لاهنت عشان نتعلم من الاخطاء triggerClientEvent ("Open", getRootElement(), plr) ليه حطيت بعد الروت بلر ؟ واصلن مو معرف البلير المفروض كذا triggerClientEvent ( player, "Open", player )
  16. استبدل سطر 9 الى .. : if not ( noa ) then
  17. #DRAGON!FIRE

    طلب

    انا اسف ي مستر زاحف بغيت اساعده بس مع ان الكود ضبط لكن الانتقادات ماتخلص اولأ اللوحة بتظهر للجميع ثانيا ليه مستخدم بـ جانب سيرفر ومسوي الحدث ومسوي تريقر ليه ليه كل ذأ ؟؟؟
  18. #DRAGON!FIRE

    طلب

    ي اخوان اللي ما يعرف يساعد لا يساعد @ Jey : استخدم الكود هذا .. : GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") marker = createMarker ( x, y, z, "cylinder", 2, 0, 255, 255, 0 ) end ) function setVisible ( element ) if ( element == getLocalPlayer( ) ) then if ( source == marker ) then if ( eventName == "onClientMarkerHit" ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) else guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end end end addEventHandler( "onClientMarkerHit", resourceRoot, setVisible ) addEventHandler( "onClientMarkerLeave", resourceRoot, setVisible ) addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == GUIEditor.button[1] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end )
  19. استبدل سطر 16 الى .. : exports.guimessages:outputServer(root, ""..getPlayerName( player ).." Has Get From Mystery Bag #FF0000$" .. tostring(randomMoney) .." #C12267And #0000FF ".. getWeaponNameFromID ( random[1] ), 0, 250, 0)
  20. #DRAGON!FIRE

    طلب

    وعليكم السلام .. . لاحداثيات الماركر x, y, z سطر 15 استبدل GUIEditor = { button = { }, window = { }, memo = { } } addEventHandler( "onClientResourceStart", resourceRoot, function( ) GUIEditor.window[1] = guiCreateWindow(281, 114, 263, 373, "info", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF5FD00") GUIEditor.memo[1] = guiCreateMemo(10, 25, 243, 282, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 317, 87, 39, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") marker = createMarker ( x, y, z, "cylinder", 2, 0, 255, 255, 0 ) end ) function setVisible ( element ) if ( element == getLocalPlayer( ) ) then if ( source == marker ) then if ( eventName == "onClientMarkerHit" ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) else guiSetVisible( GUIEditor.window[1], false ) showCursor( guiGetVisible ( GUIEditor.window[1] ) ) end end end end addEventHandler( "onClientMarkerHit", resourceRoot, setVisible ) addEventHandler( "onClientMarkerLeave", resourceRoot, setVisible )
×
×
  • Create New...