Narutimmy Posted August 23, 2013 Share Posted August 23, 2013 Hola bueno nose porque no me funciona en el debug me da error de argumento 1 Server function SkinP () setElementData(LocalPlayer, "skin", 33) outputChatBox ( "Skin Instalado", getRootElement(), 255, 255, 255, true) end addCommandHandler("SkinTroler",SkinP) Una ayuda por Favor EDIT: Ya lo arregle cambien LocalPlayer por player y listo Link to comment
Alexs Posted August 23, 2013 Share Posted August 23, 2013 Es 'localPlayer', no 'LocalPlayer'. Link to comment
AlvareZ_ Posted August 23, 2013 Share Posted August 23, 2013 Es mucho mas facil usar setPlayerSkin, y si es client no es necesario definir a quien decir el outputChatBox. addCommandHandler("SkinTroler", function () setPlayerSkin(getLocalPlayer(), 33) outputChatBox ( "Skin Instalado", 255, 255, 255, true) end) Link to comment
GamerDeMTA Posted August 23, 2013 Share Posted August 23, 2013 [Podrías poner un título mejor no crees?] Alvarez deberia usar setElementModel, setPlayerSkin es deprecated Link to comment
Arsilex Posted August 23, 2013 Share Posted August 23, 2013 Es mucho mas facil usar setPlayerSkin, y si es client no es necesario definir a quien decir el outputChatBox. addCommandHandler("SkinTroler", function () setPlayerSkin(getLocalPlayer(), 33) outputChatBox ( "Skin Instalado", 255, 255, 255, true) end) El setPlayerSkin: This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did. Please use setElementModel Link to comment
Anyelberth Posted August 23, 2013 Share Posted August 23, 2013 Chicos Que No Ven Que Ya Lo Soluciono? Link to comment
Narutimmy Posted August 23, 2013 Author Share Posted August 23, 2013 Es mucho mas facil usar setPlayerSkin, y si es client no es necesario definir a quien decir el outputChatBox. addCommandHandler("SkinTroler", function () setPlayerSkin(getLocalPlayer(), 33) outputChatBox ( "Skin Instalado", 255, 255, 255, true) end) No uso porque.. no es para un server normal, lo uso para un Server Dayz, ya que es la unica forma de cambiarlo ... si usas la otra no se puede. Gracias Link to comment
Narutimmy Posted August 23, 2013 Author Share Posted August 23, 2013 [Podrías poner un título mejor no crees?]Alvarez deberia usar setElementModel, setPlayerSkin es deprecated si jeje lo que pasa es que me quede pensando en el titulo y lo olvide ... y como resolvi el problema me olvide.. Link to comment
EstrategiaGTA Posted August 25, 2013 Share Posted August 25, 2013 Prueba esto. function SkinP () setElementData(getLocalPlayer(), "skin", 33) outputChatBox ( "Skin Instalado", 255, 255, 255, true) end addCommandHandler("SkinTroler",SkinP) EDIT: La línea 3 de tu script está mal (si lo tienes como client-side). outputChatBox en client-side no necesita ponerle el argumento de quién lo verá, así que le borré el "getRootElement()" y ya. Link to comment
Recommended Posts