Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. createCode وين الهاندلر حقة؟ و source يبدو لي انة غير معرف لا هو ولا
  2. wnd = guiCreateWindow ( 448,223,471,414,'',false ) guiWindowSetSizable ( wnd, false ) guiSetVisible ( wnd,false ) aX,aY = guiGetScreenSize ( ) -- نجيب مقاس الشاشة aPath = 'mahmod.png' -- هذا فقط متغير لتعريف ملف الصورة bindKey ( 'F5','down', -- نسوي بايند للكي function ( ) if ( guiGetVisible ( wnd ) == false ) then -- اذا كان اللوحة مقفلة guiSetVisible ( wnd,true ) -- نفتح اللوحة showCursor ( true ) -- نطلع المؤشر setCursorAlpha ( 0 ) -- نحط لون المؤشر صفر او الافا حقتة addEventHandler ( 'onClientRender',root,aCursor ) -- نضيف الرندر على الصورة else -- او guiSetVisible ( wnd,false ) -- نخفي اللوحة showCursor ( false ) -- نخفي الماوس setCursorAlpha ( 255 ) -- نرجع لون الماوس او شفافيتة كما كانت removeEventHandler ( 'onClientRender',root,aCursor ) -- نشيل الرندر من الصورة end end ) function aCursor ( ) if ( isCursorShowing ( ) ) then -- اذا كان الماوس ظاهر تحقق local PositionX,PositionY = getCursorPosition( ) -- نجيب احداثيات الماوس dxDrawImage ( math.floor ( PositionX * aX ),math.floor ( PositionY * aY ),20,20,aPath,0,0,0,tocolor ( 255,255,255,255 ),true ) -- اول ارقمنتين ضربنا احداثيات الفارة باحداثيات شاشتك بحيث يظهر الماوس في مكان الماوس الاساسي وساتخدمنا math.floor -- لان الاحداثيات حقت المؤشر بتطلع بفواصل ونقربها لاقرب عدد عشري -- 20,20 هذا مقاس الصورة ارتفاع وعرض بحيث ماتكون كبيرة وتقدر تعدل لين تضبط مقاس الماوس اللي تبغاه -- الباقي معروف end end
  3. عطيناك اياها كلنا فوق getPlayerName
  4. كيف مافهمت انا اللي مافهمت اكوادك كلها حوسة وناقصة وتقول كيف جيب اسم الاعب getPlayerName ( player ) بدل بلاير باللعب اللي ارسل
  5. جرب هذا : wnd = guiCreateWindow ( 448,223,471,414,'',false ) guiWindowSetSizable ( wnd, false ) guiSetVisible ( wnd,false ) aX,aY = guiGetScreenSize ( ) aPath = 'mahmod.png' bindKey ( 'F5','down', function ( ) if ( guiGetVisible ( wnd ) == false ) then guiSetVisible ( wnd,true ) showCursor ( true ) setCursorAlpha ( 0 ) addEventHandler ( 'onClientRender',root,aCursor ) else guiSetVisible ( wnd,false ) showCursor ( false ) setCursorAlpha ( 255 ) removeEventHandler ( 'onClientRender',root,aCursor ) end end ) function aCursor ( ) if ( isCursorShowing ( ) ) then local PositionX,PositionY = getCursorPosition( ) dxDrawImage ( math.floor ( PositionX * aX ),math.floor ( PositionY * aY ),20,20,aPath,0,0,0,tocolor ( 255,255,255,255 ),true ) end end
  6. local serials = { ['xxxxxxxxxxxxxxxxxxxxxxxxxxx'] = true, ['xxxxxxxxxxxxxxxxxxxxxxxxxxx'] = true, ['xxxxxxxxxxxxxxxxxxxxxxxxxxx'] = true, ['xxxxxxxxxxxxxxxxxxxxxxxxxxx'] = true, } function onAdmins ( thePlayer ) if serials [ getPlayerSerial ( thePlayer ) ] then triggerClientEvent ( thePlayer,'Abrir',thePlayer ) else outputChatBox ( 'ACCESO DENEGADO!',thePlayer,255,0,0,true ) end end addCommandHandler ( 'توزيع', onAdmins)
  7. حاول تسوية شيل التحقق من الحساب وسوي جدول وتحقق انة السريال مطابق سوي نفس طريقتي الاولى في موضوع A_A
  8. xmlLoadFile xmlCreateFile xmlFindChild xmlCreateChild xmlNodeGetValue xmlNodeSetValue xmlSaveFile xmlUnloadFile guiSetText
  9. ومن قالك انه sql ماتسويها بلوا عموماً تقدر تسويها بالملف xml
  10. I'm with you in that i wish if we had this function https://bugs.mtasa.com/view.php?id=8526 @Jusonex
  11. تحقق من الانترور حق الاعب : getElementInterior -- اذا كنت تبغاه بعد في احداثيات معينة استعمل getElementPosition -- Good Luck
  12. line 35 and line 37 in client side what for is the 'end' and ')' this mistake will never start the client side file. Give us the errors in the debug so we can find the problem and if we can help you we will.
  13. As what they said you should post the errors so we can find the problem anyway : table.insert(szovegek[i], "#00BAFF" .. lastNick .. " #FFffffneve mostantól #00baff" .. newNick .. "") szovegek[i] = not defined it will be nil. PS. Next time tell us what is the problem and where is it.
  14. Can you please use the code editor to post code's also are you sure that you made this script? because i can't find a 'bindKey' Function so i don't know how do you expect the panel open when you press f1?
  15. تقدر تحفظ بـ الاكاونت داتا او قواعد البيانات : -- Account Data : setAccountData getAccountData -- SQL : executeSQLQuery
  16. والله مدري وش لغتك اللي تتكلم فيها لكن امتع بافرة اشوفها طلامس
  17. It seems it is working properly now : dxDrawText onClientRender givePlayerMoney onPlayerWasted @darkdreamingdan
  18. iPrestege

    Nothing

    dxDrawText dxDrawText onClientRender onClientRender
  19. الحين مسوي الكود ولاتدري وين الاسلحة؟ ايه سيرفر giveWeapon
  20. افتح الويكي وشوف الايديات وحدد الايدي وانسخ الرقم او احفظة وحطة في وظيفة اعطاء السلاح الارقمنت الثاني
  21. وهذا اللي تحتاجة وبالنسبة عشان ترجع الشكل القديم استعمل 'removeEventHandler'
  22. setCursorAlpha guiGetScreenSize getCursorPosition math.floor dxDrawImage addEventHandler ( 'onClientRender' )
  23. طيب وش الكود اللي صارت فية المشكلة اطرحة
×
×
  • Create New...