LANS Posted November 28, 2012 Share Posted November 28, 2012 hola he estado haciendo un script para transportarse a una base admin atravez de un comando solo para administradores, logro que lleve al jugador al lugar pero cambia el skin y eso es lo que quiero solucionar aqui el script : addCommandHandler ( "baseadmin", function ( warp ) local accName = getAccountName ( getPlayerAccount ( warp ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer (warp,726,-2131,530,0,0 ) fadeCamera (warp,true) setCameraTarget (warp,source) end end ) saludos Link to comment
Castillo Posted November 28, 2012 Share Posted November 28, 2012 Eso es porque estas usando spawnPlayer y deberias usar setElementPosition. addCommandHandler ( "baseadmin", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "Admin" ) ) then setElementPosition ( thePlayer, 726, -2131, 530, true ) end end ) Link to comment
LANS Posted November 28, 2012 Author Share Posted November 28, 2012 problema resuelto, muchas gracias Link to comment
Otto Posted November 28, 2012 Share Posted November 28, 2012 Pa' la proxima, a 'Scripting' aquí mismo dentro de la sección Spanish / Español. Gracias. Link to comment
Recommended Posts