Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. اوكي ندبر لك اللاب بس منين نجيب لك كهرباء وين الخيار الثاني
  2. 1- كيف الإيفنت يجي قبل الفنكشن ؟؟ 2- كيف الفنكشن بدون تعريف ؟؟ 3- ناقص اند للفنكشن
  3. الله يعافيك
  4. صورتك ولا لقطتك وبعدين ليه الشك
  5. لو خيروك تعيش في صحراء وحيد ولا بيت مسكون
  6. 4 2 غاضبين صديق ممتلئ
  7. في ايفنت تشغيل المود source مقارنة ب كودك راح تلاحظ انك مستخدم addEventHandler ("onResourceStart", resourceRoot, function () local CreateNewTable = executeSQLQuery ("CREATE TABLE IF NOT EXISTS chatlog (chat)") if ( CreateNewTable ) then --outputDebugString ("Create [ Black List Table ] Table done .") local Results = executeSQLQuery("SELECT * FROM chatlog WHERE chat=?",tostring (timeT) ) triggerClientEvent ( source, "setLogText", source, unpack(Results) ) end end ) ولو شيكنا على صفحة الإيفنت في الويكي هو الروت حق المود وليس اللاعب نفسه اللي شغل المود source يقول ان الـ فـ أنا نقلت الإيفنت "عند تشغيل المود" إلى كلنت addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) triggerServerEvent ( "onGetChatLog", localPlayer ) end ) ومن الكلنت ينقل للسيرفر عشان يجيب الرسايل -- طبعاً شلت هذا السطر من الإيفنت وحطيته برا executeSQLQuery ("CREATE TABLE IF NOT EXISTS chatlog (chat)") لأنه نفس الشيء سواءً بالإيفنت او بدونه . -- بخصوص سؤالك الثاني جرب كذا addCommandHandler ( "clearChatLog", function ( player ) if getPlayerSerial ( player ) == "Your Serial" then executeSQLQuery ( "DROP TABLE chatlog" ) setTimer ( executeSQLQuery, 100, 1, "CREATE TABLE IF NOT EXISTS chatlog (chat)" ) end end ) وحط سيريالك
  8. -- Client Side addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) triggerServerEvent ( "onGetChatLog", localPlayer ) end ) -- Server Side executeSQLQuery ("CREATE TABLE IF NOT EXISTS chatlog (chat)") addEventHandler('onPlayerChat',root, function ( message, messageType ) if messageType == 0 then local time = getRealTime() local hours = time.hour local minutes = time.minute local days = time.monthday local months = time.month local years = time.year local isdsts = time.timestamp local timeT = " [ "..days.." / "..months.." / "..years.." "..hours..":"..minutes.." ] "..getPlayerName ( source).." : " .. message executeSQLQuery( "INSERT INTO chatlog (chat) VALUES (?)", tostring (timeT)) triggerClientEvent ( source, "setLogText", resourceRoot, timeT ) end end ) addEvent ( "onGetChatLog", true ) addEventHandler ( "onGetChatLog", root, function ( ) local Results = executeSQLQuery ( "SELECT * FROM chatlog" ) for i, v in ipairs ( Results ) do triggerClientEvent ( source, "setLogText", resourceRoot, tostring(v.chat) ) end end ) فـ ما ادري صح ولا لا executeSQLQuery ملاحظة من زمان عن
  9. ايه بس تراك بالقسم العام العام ولا الخاص
  10. كن أرقى ممّ أنت عليه, لكي أرد عليك BRB.
  11. يوجد بها اخطاء , ف لماذا قمت بالتدقيق على هذا الشيء البسيط ؟ MTA نعم, و إذا كنت تقول ان
  12. السلام عليكم ورحمة الله وبركاته The[X]GameR تبعاً للأفكار التي وصلتني على الخاص تم تطبيق فكرة ولكن لن أعتبرها ضمن ال3 أفكار , لأنه مجرد تطوير لمود سابق المهم : ما تم تغييره :- - إضافة لوقات - إضافة خانة بحث عن شخص - إضافة زر حذف المعلومات للأدمن - و الضغط على الشخصية /mouseIndex إضافة جلب المعلومات السريع عن طريق كتابة كلمة - إصلاح بق الأعلام - فك تشفير جميع الملفات - صفحة السكربت - الموضوع الرئيسي والله ولي التوفيق
  13. وجهة نظر جميلة, ولكن هل ترى أنها مهمة كـ TimedOut, Banned, Kicked لكي تقول أنها خطأ ؟ -- تذكرني بالمثل اللي يقول يدور النقطة السودا في الثوب الأبيض
  14. hideTimer = { }; addEvent("onAlpha",true) addEventHandler("onAlpha", root, function() local vehicle = getPedOccupiedVehicle ( source ) if vehicle then if getVehicleController ( vehicle ) == source then if getElementAlpha ( vehicle ) >= 200 then if not hideTimer[source] then setElementAlpha ( vehicle, 0 ) setElementAlpha ( source, 0 ) hideTimer[source] = true setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy Hide !", source, 94,237,0, true ) end else if not hideTimer[source] then setElementAlpha ( vehicle, 255 ) setElementAlpha ( source, 255 ) hideTimer[source] = true setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy un Hide !", source, 94,237,0, true ) end end end end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if hideTimer[source] then hideTimer[source] = nil end end )
  15. اصلاً الدلع مو للأشناب
  16. #45 setElementData( v, "PlayTime", tostring( hour )..':'..tostring ( min )..':'..tostring(sec) )
  17. مو كل إيفنت يصلح معه الكود هذا : cancelEvent ( )
×
×
  • Create New...