emaa24 Posted October 24, 2012 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
Xperia Posted October 24, 2012 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)
Arsilex Posted October 24, 2012 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)
BorderLine Posted October 24, 2012 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 )
emaa24 Posted October 24, 2012 Author Posted October 24, 2012 Genial, gracias a todos por responder, ahora probare si me funciona y les comento ok? un saludo a todos
Recommended Posts