Jump to content

#DRAGON!FIRE

Members
  • Posts

    4,429
  • Joined

  • Last visited

Everything posted by #DRAGON!FIRE

  1. local Url = "crown.png" --- اسسم الصورة هنا local zUP = 10 ---- ارتفأع الصورة addEventHandler( "onClientRender", root, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( v, "VIPData" ) == true ) then local x, y, z = getElementPosition( v ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end end end )
  2. شغل ابداع وفكرة رهيبة .. بالتوفيق ^ #
  3. يب ! .. الصورة للاعب نفسه فقط .. لو يبيها للجميع يسوي لوب .. انا سويتها كذا من باب تخفيف اللاق .
  4. لا للاعبين جميعهم .. عشان الصورة تجي ع اللاعب نفسه
  5. هو ما يقصد من اليوتيوب !! .. هو يقصد فديو
  6. my code is right .. but MADE forget ) try this -- save addEventHandler ( "onPlayerQuit", root, function ( ) local account = getPlayerAccount ( source ) if ( isGuestAccount( account ) ) then return end local clothes = { } for i=0, 17 do clothes[i] = { getPedClothes ( source, i ) } end clothes = toJSON ( clothes ) setAccountData ( account, "Clothes", clothes ) end ) addEventHandler ( "onPlayerLogin", root, function ( _, account ) local clothes = getAccountData ( account, "Clothes" ) if not clothes then return end for i, v in pairs ( fromJSON ( clothes ) ) do local text, id = unpack ( v ) addPedClothes ( source, text, id, i ) end end )
  7. كيف ما هي حلوة ! .. تراها تجي زي الفديو بالضبط
  8. try this .. : addEventHandler ( "onPlayerQuit", root, function ( ) local pAcc = getPlayerAccount ( source ) if ( pAcc and not isGuestAccount ( pAcc ) ) then for i = 1, 17 do local c, t = getPedClothes ( source, i ) setAccountData ( pAcc, "ClothesData", { c, t } ) end end end ) addEventHandler ( "onPlayerLogin", root, function ( _,acc ) local cData = getAccountData ( acc, "ClothesData" ) if ( cData ) then for k, v in ipairs ( cData ) do addPedClothes ( source, v[1], v[2], k ) end end end )
  9. صحيح .. بس بتواجهكـ مشاكل .. الافضل تكون من السكربت نفسه .. زي جميع السيرفرات .
  10. اللي اعرفه بالشادر زي ما قلت لكـ .. بس ما اعتقد يمديكـ بطريقة ثانية ولو في بتكون معقدة شوية استخدم الشادر افضل
  11. ما يمديكـ حـاليـأ .. بس يمديكـ تسوي فديو بطريقة التايمر والصور .
  12. put the table in this resource .. and u don't have to use table to get the table name .. u can put it in your code without call table to get table name
  13. u defineded the infoDatabase table ?
  14. function hideAllButtonsInMainWnd( ) for i = 1, 17 do if ( isElement ( shopGUI.buttons[i] ) ) then guiSetVisible( shopGUI.buttons[i], false ) <----------- this line end end guiSetVisible( shopGUI.buttons[ "Paintjob" ], false ) end
  15. if u add Command In Server u can't use executeCommandHandler in Client
  16. ( Client and Server function ) الفنكشن تقدر تستخدمه بجانب سيرفر وكلنت ..
  17. u can use executeCommandHandler with any resource
  18. عشان لو كانت المسافة بين الشئين تقريبة تشيل الفاصلة عشان تجي بالضبط getDistanceBetweenPoints3D بتفيدكـ بـ استخدام فالنفترض سويت كذا if ( getDistanceBetweenPoints3D ( ... ) == 4 ) then --- code end مسوي تحقق لو كانت المسافة بين الشئين 4 .. فالنفترض كانت تقريبية يعني مثلا 3.4 او 4.3 فـ تسخدم الفنشكن عشان تجي بالضبط .
  19. هذي بسيطة جدا .. هي تحول لكـ الرقم اللي بفاصلة الى رقم صحيح .
  20. بالتاكيد في . math.floor getDistanceBetweenPoints3D
  21. بالسلأمة .. وان شاء الله خخير
  22. ... وذا كود بسيط .. لا تحسب الكود اللي عطاكـ هو وبس .. الكود فيه حسابات صعبة شوية ويبيلكـ تسوي حدث الدخول وحدث الخروج والخ ع العموم هنا للمساعدة اي شي عجزت عنه تفضل قول .
×
×
  • Create New...