SupraS Posted January 10, 2014 Share Posted January 10, 2014 Como podria hacer un Resource que de Armas aleatorias a los jugadores Que escriban Letras Esto es llamado "Reaction Test" Pero no encuentro el resource por eso Como ultimo recurso vengo a pedirselo a ustedes que todo lo hacen. Ejemplo: Reacciona > UxDaFtA < Para ganar el Arma : ID o nombre Link to comment
JesusAliso Posted January 10, 2014 Share Posted January 10, 2014 Creo que el recurso que buscas es este del autor: "Al3grab". https://community.multitheftauto.com/index.php?p=resources&s=details&id=4472 Link to comment
SupraS Posted January 10, 2014 Author Share Posted January 10, 2014 Es diferente, Sale Cada tantos minutos y el premio es de Armas Link to comment
manawydan Posted January 10, 2014 Share Posted January 10, 2014 setTimer getRandomPlayer ? Link to comment
Bc# Posted January 10, 2014 Share Posted January 10, 2014 setTimer onPlayerChat randInt giveWeapon math.random Link to comment
SupraS Posted January 11, 2014 Author Share Posted January 11, 2014 No se mucho sobre lua , Se solo lo básico , Me podrian ayudar a crearlo ? es para un servidor de DayZ Link to comment
MTA Team 0xCiBeR Posted January 11, 2014 MTA Team Share Posted January 11, 2014 Esto es un script de matemáticas..Asi te orientas un poco..Solo le cambias un par de cosas y lo tienes listo. timeToAnswer = 30 -- 30 seconds addCommandHandler ( "math", function ( player ) if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then reward = math.random ( 2000, 5000 ) qn1 = math.random ( 10, 100 ) qn2 = math.random ( 10, 100 ) qn3 = math.random ( 10, 100 ) theQuestion = qn1 + qn2 - qn3 answerTime = setTimer ( noAnswer, timeToAnswer * 1000, 1 ) outputChatBox ( "Matematicas: El primero que conteste " .. qn1 .. " + " .. qn2 .. " - " .. qn3 .. " ganara $" .. reward .. "(Por LocalChat)", root, 0, 255, 0 ) else outputChatBox ( "No puedes't usar este comando", player, 255, 0, 0 ) end end ) function noAnswer ( ) outputChatBox ( "Matematicas: Nadie gano el premio, la respuesta es: " .. theQuestion, root, 0, 255, 0 ) theQuestion = nil end addEventHandler ( "onPlayerChat", root, function ( answer ) if ( theQuestion and tonumber ( answer ) == theQuestion ) then theQuestion = nil outputChatBox ( "Matematicas: " .. getPlayerName ( source ) .. " #00FF00contesto " .. answer .. " y gano $" .. reward, root, 0, 255, 0, true ) givePlayerMoney ( source, reward ) if ( isTimer ( answerTime ) ) then killTimer ( answerTime ) end end end ) Link to comment
Recommended Posts