Jump to content

[Ayuda]


Narutimmy

Recommended Posts

Posted

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

Posted

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) 

Posted
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

Posted
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

Posted
[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 xD... y como resolvi el problema me olvide..

Posted

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.

  • Recently Browsing   0 members

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