maauroo Posted May 29, 2012 Posted May 29, 2012 Hola. Hace Pocos Tiempo Habia Echo Un Seleccion De Skin Al Entrar Al Server.. Pero No Lo Terminado.. Lo Que Me Falta Es Que Cada Persona Que Entran Aparescan En Otro Mundo Donde Nadie Lo Vea. Como Puedo Hacer Esa Funcion?
Castillo Posted May 29, 2012 Posted May 29, 2012 Usa las dimensiones, necesitas usar la funcion: setElementDimension.
maauroo Posted May 29, 2012 Author Posted May 29, 2012 Mira: local dimension = getFreeDimension ( ) setElementDimension ( client, dimension ) Pero No Se Si Es La Correta Funcion Lo Probe Pero A Lo Que Yo Quiero No Funciona. Aqui El Script -----------------LA CAMARA QUE MUESTRA LOS SKIN PARA ELEGIR------- function camf() if (client) then setElementPosition( client,98.5163, 2246.3232, 125.1528 ) setPlayerRotation ( client, 200 ) setCameraMatrix( client, 95.1860, 2239.7947, 126.7486, 98.5163, 2246.3232, 125.1528) end end addEvent("FrontCamera", true) addEventHandler("FrontCamera", getRootElement(), camf) ---------------------AQUI CUANDO SELECCIONA EL SKIN----------------- function selected() if (client) then fadeCamera(client, true) setCameraTarget(client, client) local skin = getElementModel ( client ) spawnPlayer(client, -2026.5035, 156.7506, 29.0391, 269.1424, skin) outputChatBox("Skin successfully changed!", client) end end addEvent("SkinSelected", true) addEventHandler("SkinSelected", getRootElement(), selected) Como Coloco La Dimension? Como Lo Hago?
maauroo Posted May 30, 2012 Author Posted May 30, 2012 Me Lo Habian Pasado En Otro Tema.. Como Puedo Solucionar Mi Scripts ? Como Le Pongo La Dimension A Cada Persona Que Entran Y Eligen Skin?
Soren Posted May 30, 2012 Posted May 30, 2012 local d = 1, 100 setElementDimension (client, math.random(#d))
maauroo Posted May 30, 2012 Author Posted May 30, 2012 Lo Puse Asi: -----------------LA CAMARA QUE MUESTRA LOS SKIN PARA ELEGIR------- function camf() if (client) then setElementPosition( client,98.5163, 2246.3232, 125.1528 ) setPlayerRotation ( client, 200 ) setCameraMatrix( client, 95.1860, 2239.7947, 126.7486, 98.5163, 2246.3232, 125.1528) end end addEvent("FrontCamera", true) addEventHandler("FrontCamera", getRootElement(), camf) ---------------------AQUI CUANDO SELECCIONA EL SKIN----------------- function selected() local d = 1, 100 ---------------LO PUSE AQUI.. NO SE SI VA AQUI PERO NO FUNCIONA.. ESTAN TODO EN LA MISMA DIMENSION. if (client) then fadeCamera(client, true) setCameraTarget(client, client) setElementDimension (client, math.random(#d)) ----------AQUI EL OTRO. local skin = getElementModel ( client ) spawnPlayer(client, -2026.5035, 156.7506, 29.0391, 269.1424, skin) outputChatBox("Skin successfully changed!", client) end end addEvent("SkinSelected", true) addEventHandler("SkinSelected", getRootElement(), selected) Esta Bien Ubicado?
iFoReX Posted May 30, 2012 Posted May 30, 2012 pon lo de local d fuera de la funcion y ve si funciona.
maauroo Posted May 30, 2012 Author Posted May 30, 2012 No Funciona. Se Ven Todo Que Estan En El Seleccionador De Skin.. Entiendes ?? Osea En El Mismo Mundo.
maauroo Posted May 30, 2012 Author Posted May 30, 2012 Lo Quiero Terminar.. Pero Nadie Puede. A Lo Que Yo Me Refiero Es Que Cada Persona Que Entran Tiene Que Estar En Diferente Mundo Cuando Estan En El Seleccion De Skin. Entieden?
Edikosh998 Posted May 30, 2012 Posted May 30, 2012 No sabes ni lo que haces, copiaste y pegaste la variable d, sin aplicarla. Y ASI QUERES AYUDA Y ASI QUERES AYUDA? Te quiero hacer una pregunta : Que vendria a hacer "client"?
Alexs Posted May 30, 2012 Posted May 30, 2012 no. Es Un "Server" PorQue? Habla de tus argumentos, la mitad de lso argumentos que usas dicen client y eso no es ni una variable ni nada
maauroo Posted May 31, 2012 Author Posted May 31, 2012 No Hay Arumento.. Lo Descarge En Comunidad.. Era Un Comando/Skin. Pero Lo Cambia Cada Ves Que Ingresan Al Server Entiendes? Pero Lo Unico Que Falta Es La Dimension.. Ese Es El Problema.
Edikosh998 Posted May 31, 2012 Posted May 31, 2012 No Hay Arumento.. Lo Descarge En Comunidad.. Era Un Comando/Skin. Pero Lo Cambia Cada Ves Que Ingresan Al Server Entiendes? Pero Lo Unico Que Falta Es La Dimension.. Ese Es El Problema. El problema es que no entendes de donde sale ese client y nada de las variables que el tipo puso en la comunidad.
Recommended Posts