emaa24 Posted October 24, 2012 Share Posted October 24, 2012 Bueno, trate de hacer un scrip, para que un user, al poner /comandos pueda ver los comandos del server... pero no me funciona, podrian decirme que le falta? soy nuevo en esto addCommandHandler("comandos", function (thePlayer) then outputChatBox ( "#002EB8**---Comandos #FF0000Disponibles---**", thePlayer, 255, 255, 255, true) outputChatBox ( "#002EB8*Piloto#C2C2C2 /drift[1-7] /salto /recta /estacionamiento", thePlayer, 255, 255, 255, true) end end) Desde ya muchas gracias compas Link to comment
Xperia Posted October 24, 2012 Share Posted October 24, 2012 Asi va bien function cmd (thePlayer) outputChatBox ( "#002EB8**---Comandos #FF0000Disponibles---**", thePlayer, 255, 255, 255, true) outputChatBox ( "#002EB8*Piloto#C2C2C2 /drift[1-7] /salto /recta /estacionamiento", thePlayer, 255, 255, 255, true) end addCommandHandler("comandos",cmd) Link to comment
Arsilex Posted October 24, 2012 Share Posted October 24, 2012 ---Mira la diferencia Mi script addCommandHandler("comandos", function (thePlayer) outputChatBox ( "#002EB8**---Comandos #FF0000Disponibles---**", thePlayer, 255, 255, 255, true) outputChatBox ( "#002EB8*Piloto#C2C2C2 /drift[1-7] /salto /recta /estacionamiento", thePlayer, 255, 255, 255, true) end ) -- Tu Script addCommandHandler("comandos", function (thePlayer) then outputChatBox ( "#002EB8**---Comandos #FF0000Disponibles---**", thePlayer, 255, 255, 255, true) outputChatBox ( "#002EB8*Piloto#C2C2C2 /drift[1-7] /salto /recta /estacionamiento", thePlayer, 255, 255, 255, true) end end) Link to comment
BorderLine Posted October 24, 2012 Share Posted October 24, 2012 Relativamente es lo Mismo. podria sugerir algo para que se vea mejor a vista del usuario addCommandHandler("comandos", function (thePlayer) outputChatBox ( "#002EB8**---Comandos #FF0000Disponibles---**", thePlayer, 255, 255, 255, true) setTimer(outputChatBox,2000,1,"#002EB8*Piloto#C2C2C2 /drift[1-7] /salto /recta /estacionamiento", thePlayer, 255, 255, 255, true) end ) Link to comment
emaa24 Posted October 24, 2012 Author Share Posted October 24, 2012 Genial, gracias a todos por responder, ahora probare si me funciona y les comento ok? un saludo a todos Link to comment
Recommended Posts