Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/07/20 in Posts

  1. بسم الله الرحمن الرحيم الصلاة والسلام على اشرف الانبياء والمرسلين نبينا محمد عليه افضل الصلاة واتم التسليم, اما بعد: أقدم لكم دورتي لـ تعلم لغة برمجة لوا.. ملاحظة: توجد مشكلة في الدرس الثاني الا وهي صغر الخط, وتم حلها ولن تتكرر في الدروس القادمة باذن الله تعالى MTA الدورة لا تتوجه لـلعبة ولكنها تتكلم عن البرمجة بشكل عام بالاضافة لتعليم وتدريس في لغة لوا اذا كان فيه نوع من الاقبال والتفاعل سأتخصص بـ برمجة ام تي ايه بالاضافة لبرمجة الديسكورد وشرح بعض اللغات الاخرى دمتم سالمين في أمان الله..
    1 point
  2. O seu código está correto, Gaimo. Tenha certeza de que está utilizando o nome corretamente (no caso, acho que seller seria o jogador). Exemplo abaixo é apenas uma brincadeira que eu fiz pra você entender. Quando você digita /desafio, um timer é iniciado. Dentro de 15 segundos você deve entrar em um veículo. Quando entrar, o timer deve ser parado e anulado. local tempTimers = {} addCommandHandler("desafio", function(player) if not tempTimers[player] then outputChatBox("Você tem 15 segundos para entrar num veículo!", player, 0, 255, 0) tempTimers[player] = setTimer(function(p) outputChatBox("O tempo acabou.", p, 255, 255, 0) tempTimers[p] = nil end, 15 * 1000, 1, player) end end) addEventHandler("onVehicleEnter", root, function(thePlayer, seat) if seat == 0 then if tempTimers[thePlayer] and isTimer(tempTimers[thePlayer]) then killTimer(tempTimers[thePlayer]) tempTimers[thePlayer] = nil end outputChatBox("Muito bem! Você entrou no veículo em tempo.", thePlayer, 255, 0, 0) end end)
    1 point
  3. Rica ederim iyi kullanımlar. İşe yaradıysa bi like atmayı unutmayın
    1 point
×
×
  • Create New...