Jump to content

' A F .

Members
  • Posts

    2,156
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by ' A F .

  1. العفو حياك الله ..
  2. حيأك الله .
  3. جرب function refreshMyList( ) local check = dbQuery( vehDB, ' SELECT * FROM `VehiclesSystem_Players2` WHERE pSerial=?',tostring(getPlayerSerial(source)) ); local results = dbPoll( check, -1 ) if ( type( results ) == 'table' and #results == 0 or not results ) then triggerClientEvent( source, 'VehiclesSystem;emptyMyList', source ) return end triggerClientEvent( source, 'VehiclesSystem;putMyVehicles', source, results ) end addEvent( 'refreshMyListS', true ) addEventHandler( 'refreshMyListS', root, refreshMyList )
  4. addEventHandler("onClientGUIChanged",root,function ( ) if ( source == GUIEditor.edit[1] and guiGetText ( source ) == "Hello" ) then outputChatBox ( "Hi" , 0,255,0 , true ); end end );
  5. onClientGUIChanged outputChatBox -- لو تبية للكل triggerServerEvent outputChatBox
  6. ' A F .

    كيف؟

    اطرح السيرفر كامل
  7. سوي onPlayerWasted وأحذف اللاعب الي مات من الجدول وسوي تحقق ان الي بالمهمة اكثر من 1 وتحقق ان الي مات بالمهمة .
  8. وضح شوي مافهمت
  9. addCommandHandler ( "rg" , function ( player , cmd , username , password ) if ( cmd and username and password ) then local aNewAccount = addAccount ( username , password ); if ( aNewAccount ) then outputChatBox ( "* Done",player,0,255,0,true); setAccountData ( aNewAccount , "Password" , tostring ( password ) ); end end end ); addCommandHandler ( "gap" , function ( player , cmd , account ) local data = getAccountData ( getAccount ( account ) , "Password" ); if ( data ) then outputChatBox(data,player); else outputChatBox("Error",player); end end ); جرب المثال وشوف النتيجة
  10. ومن قالك مايقدر يجيب حسابة يقدر يجيب الحساب الي سجل فيه عن طريق وظيفة addAccount
  11. @#_iMr.[E]coo طريقتك غلط , طيب جرب الطريقة الي انا قلت بعدين قول انها خاطئة
  12. @w7sH العفو حياك الله .
  13. @iMr.WiFi..! : مو شرط يسويها بـ SQLite يقدر يسويها بالاكوانت داتا setAccountData getAccount getAccountData
  14. aChatStatus = true; local Message = { [ 1 ] = { "تم فتح الشات" } , [2] = { "تم إغلاق الشات" } }; addEvent ( "CPANEL:onLockChat", true ) addEventHandler ( "CPANEL:onLockChat", root, function ( aValue ) if ( aValue == "say" ) then local aAccount = getPlayerAccount ( source ); if ( not isGuestAccount ( aAccount ) and isObjectInACLGroup("user."..getAccountName(aAccount),aclGetGroup("Console")) ) then aChatStatus = not aChatStatus outputChatBox ( "#[C.Console]: ".. ( aChatStatus == false and Message[2][1] or Message[1][1] ), root, 255, 255, 0, true ) end end end ) خذ هاذا الكود ماجربته , بالنسبة لـ كود ان الكونسل يكتب فقط اذا كأن الشات مقفل إستخدم هاذي الوظائف addEventHandler -- 'onPlayerChat' getPlayerAccount isObjectInACLGroup
  15. طيب انا أقولك اطرحهم كلهم عشان بجربهم بالمحلي وأصحح الاخطاء اذا ماتبي ذا شيء رأجع لك .
  16. اطرح الكلنت والسيرفر كامل
  17. سويها بالمتغيرات
  18. addEvent ( "Warp" , true ) addEventHandler ( "Warp" , root , function ( posX , posY , posZ , aMoney ) local aPlayerMoney = getPlayerMoney ( source ); if ( tonumber ( aPlayerMoney ) >= tonumber ( aMoney ) ) then takePlayerMoney ( source , tonumber ( aMoney ) ); setElementPosition ( source , posX , posY , posZ ); outputChatBox ( "* Warped",source,0,255,0,true); else outputChatBox("* You Don't Have Money ",source,255,0,0,true); end end ); Try This
  19. سطر 4 انت حاط الداتا على الزر موب على اللاعب .. شكلك مسوية مستعجل @#ZA7F //=
  20. onPlayerDamage ماتقدر تسوي له cancelEvent 'onClientPlayerDamage'
  21. العفو حياك الله -- # إستخدم الوظائف هاذي يوم يرسل اللاعب باللوكال شات getElementsByType -- 'player' getPlayerAccount isGuestAccount isObjectInACLGroup outputChatBox
  22. ضيف اللوكال شات للمود الي يطلع الكلام فوق راس اللاعب وسوي يوم يرسل رسالة باللوكال ترايقر زي ماهو مسوي يوم اللاعب يرسل بالشات الرئيسي واذا مافهمت اطرح السكربتين وبإذن الله مانقصر معك .
  23. * Client Side : local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender",root,function ( ) if ( getElementHealth ( localPlayer ) <= 25 ) then dxDrawRectangle(0, 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.0000, screenH * 0.0065, screenW * 1.0000, screenH * 0.9870, tocolor(63, 0, 0, 159), false) dxDrawText("You Will Dead", screenW * 0.3469, screenH * 0.8815, screenW * 0.7680, screenH * 0.9206, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end end );
×
×
  • Create New...