Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 26/07/19 in all areas

  1. I created a complex first person movement script with weapons and custom animations. This is the first version of it.
    1 point
  2. Se o script for client-side, então: Cria uma variável qualquer com valor false. Fora da função. Quando o jogador executa o comando, verifica se a variável é true ou não. Se for true, então: Manda outputChatBox dizendo pra esperar pra usar o comando. Se não for true, então: Faz a variável ficar true. Executa o código que tem que ser executado. Inicia um setTimer de 5 segundos pra fazer a variável voltar pra false. Se o script for server-side, então: Cria uma table qualquer vazia. Fora da função. Será usada pra armazenar os timers dos jogadores. Quando o jogador executa o comando, verifica se existe a variável da table indexada nele ou não. Se a table indexada no jogador for igual a nil, então: Executa o código que tem que ser executado. Cria a variável da table indexada no jogador, ex: tableQualquer[thePlayer] = setTimer... Na variável da table indexada no jogador, inicia um setTimer de 5 segundos pra anular a variável indexada no jogador. tableQualquer[thePlayer] = nil Se a table indexada no jogador não for nil, então: Manda outputChatBox dizendo pra esperar pra usar o comando. Em outra função, se o jogador sair do servidor (onPlayerQuit), então: Verifica se o timer da variável da table indexada no jogador existe com isTimer. Se o timer existe, então: Da killTimer nesse timer e anula a variável da table indexada no jogador. Espero ter ajudado. Eu poderia ter dado código pronto mas vc parece que nem tentou fazer.
    1 point
  3. I've checked the available functions/events but I couldn't find anything useful for your case.
    1 point
  4. Explain more, I don't get it.
    1 point
  5. From https://forum.multitheftauto.com/topic/116414-ban-appeals-information-how-to-appeal-your-global-ban/: Please follow the instructions and send an e-mail to the address given in your ban reason. @Kanzy
    1 point
  6. مشكورين كلكم منورين الموضوع + فكره جميله جدا يا نصور بإذن الله رح اسويها بالمستقبل
    1 point
  7. function leaveserver() if veh1[source] and isElement(veh1[source]) then destroyElement(veh1[source]) end end addEventHandler("onPlayerQuit", root, leaveserver)
    1 point
  8. A poor demonstration of custom face morphing
    1 point
  9. isPlayersHaveSameElementData (v,"DataName") مثالك غير منطقي ، تبي تتحقق ان اللاعب عنده نفس الالمنت داتا .. طيب مقارنتاً مع من؟ ناقصك ارقمنت اللاعب الثاني الي قاعد تقارن معاه .. ولا انا غلطان؟ المفروض شي زي doPlayersHaveSameElementData(player1, player2, "dataName") على كل حال لو تريد تجيب اللاعبين الي معهم نفس الالمنت داتا جرب تسوي لوب داخل لوب عشان تجيب كل اللاعبين وتقارنهم بكل اللاعبين واذا تطابق الداتا تسوي الي تريده شي مثل for i, player1 in ipairs(getElementsByType("player")) do for i, player2 in ipairs(getElementsByType("player")) do if (player1 ~= player2 and getElementData(player1, "data") == getElementData(player2, "data") and getElementDimension(player1) == getElementDimension(player2)) then -- your code end end end بس الطريقة ابداً غير جيدة وما انصح فيها
    1 point
×
×
  • Create New...