Jump to content

#DRAGON!FIRE

Members
  • Posts

    4,429
  • Joined

  • Last visited

Everything posted by #DRAGON!FIRE

  1. ex : local table = { labels = { 100, 100, 100, 100, 200, 200, 200, 200 }, buttons = { 300, 300, 300, 300, 500, 500, 500, 500 }, ["onClientResourceStart"] = { function1, function2 }, } CreateLabels = guiCreateLabel( table[1][1], table[1][2], table[1][3], table[1][4] ) for i = 1, #table["onClientResourceStart"] do addEventHandler( "onClientResourceStart", resourceRoot, table["onClientResourceStart"][i] ) end
  2. u mean if change from admin panel ?
  3. اطرح كودكـ كامل او يوم تعطيه السلاح
  4. انا جبت القيمة الاولة والثانية من المفتاح الثاني هو مسوي كذا local random = weapons[math.random(#weapons)] فالفنترض الراندوم جا ع رقم 2 صار local random = weapons[2] الحين المفتاح الثاني صار بيجي يسوي كذا random[1], random[2] هو كذا مسويها يعني كانه سوا كذا weapons[2][1], weapons[2][2]
  5. giveWeapon ( plr, random[1], random[2] ) مو المفروض تحطهم 3 قيم ؟ لان عندك 3 تيبلات ؟ giveWeapon ( plr, random[1], random[2], random[3] ) من وين القيمة الثالثة ؟ و giveWeapon 3 ارقمنات انت 4 هو سوا زي كذا weapons[2][1], weapons[2][2] = 16, 200
  6. ?? حبيبي هو يقول يبي لو ضغط الزر الاول يغير اللون الى اخضر والزر الثاني الى لون احمر وكذا button: the name of the button which will be clicked , it can be left, right, middle ذا بيست شكله رمضان ماثر عليكـ button: the name of the button which will be clicked يقلك هنا اسم الزر اللي انضغط it can be left, right, middle ويقلك ممكن يكون يسار او يممين فهمت الحين ؟
  7. نفس الحكايه , بيكون فيه خطأ , وما راح يشتغل الكود , لو تحلاظ الشرط الي حاطه : if ( uPlayer == button1 ) then مستحيل يشتغل الكود . string button فاهم غلط هو معرف اول بارتمنت بالحدث function ( button ) if button == urbtn then
  8. استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت string button, string state, int absoluteX, int absoluteY button: the name of the button which will be clicked , it can be left, right, middle setPlayerNametagColor اقصد بفشنكن -_____-
  9. @ Mu[T]e~> : كودكـ خطا .
  10. استبدلها بـ لوكال بلير uPlayer عندكـ خطا بسيط انه حاط باول ارقمنت
  11. fileOpen يفتح لك ملفات لوا و تكست بس مو معناه يشغلها بـ جهاز اللاعب لا لا يفتحها عشان يشتغل بها + يحتاج صلاحيات callRemote ترا فنكشن
  12. طيب فالنفترض المعالج حق اللاب 5 والرامات 4 مثلا ومواصفات جيدة واللاب اللعب به ام اي فقط واحط اللاب ع خشب او حديد هل ممكن المشكلة ذي تواجهني ؟ .. ولو واجهتني وش اسبابها مدام كل الاسباب اللي ذكرتها مسويها ما اللعب اللعاب ولا احطها ع قماش
  13. it izi First get players count : getPlayerCount and use: callRemote and make php script to get info and put it in ur forum
  14. u need put element function checkPlayerExists(element, queryHandle) local result = dbPoll(queryHandle, 0) if(#result == 0)then triggerClientEvent(element, "onPlayerNotRegistered", element ) else --- ... more code here ... end
  15. string.format مهوب ضروري .. مداهـ يستخدم
  16. فايدتها تستبدل سترنق بـ سترنق تستخدمه بـ الوقت اللي تحححتاجهه .
  17. وظيفتها باختصار تحححول لك الحروف الصغيرة الى حروف كبيرة مثال بسيط ... : local string = "function upper test" addEventHandler( "onResourceStart", resourceRoot, function( ) outputChatBox( "string is "..string.." in upper "..string.upper( string ).."", root ) end )
  18. شوف الشرط ~= تعني عكسس القيمة ~= true = false
  19. ~= true = false بالنسبة للقوس وش دخله لول .. ما ياثر
  20. اولأ من وين جبت uPed ?? createVehicle(444, Location ) الاحداثيات 3 ارقمنات كيف سويتها كذأ ؟ وهنا برضو local Location = getElementPosition ( uPed ) ولزوم تسوي تيبل للسيارات وتتحق لو موجودة تسحبها ويوم يخرج تسحبها وتشيل القيمة من الججدول .
  21. هلا زاحف ممكن تشرحلي هذا الكود ؟ لاني بحاول اضيف عليه ايفنت الشات وشكرا الكود اللي بجانب كلنت تايمر كل 10 ثواني يتحقق لو ما في تحميل يحط قيمة الداتا حق الداون لود فلس ويشيل التايمر وبجانب سيرفر يوم يخش اللاعب يحط له داتا داون لود
  22. element وينه ؟ + guiGetText ( source )) ? المفروض element تلاحظ سويت شرط if ( source == Button ) then button لو كان السورس هو الـ = source يعني كانه سويت كذا if ( source == Button ) then source = Button end ومداك تسوي كذا .. addEventHandler( "onClientGUIClick", resourceRoot, function( Max ) if ( Max == Button ) then guiSetText( element, guiGetText( Max ) ) end end )
  23. Client Side addEventHandler( "onClientResourceStart", resourceRoot, function( ) TimerDownload = setTimer( function( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData( localPlayer, "download", false ) killTimer( TimerDownload ) end end, 10000, 0 ) end ) Server Side addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) end )
  24. المفروض تتحق من انه اللاعب عنده تيم .
×
×
  • Create New...