Jump to content

[Ayuda]


Narutimmy

Recommended Posts

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

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
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
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...