LANS Posted November 28, 2012 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
Castillo Posted November 28, 2012 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted November 28, 2012 Posted November 28, 2012 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Otto Posted November 28, 2012 Posted November 28, 2012 Pa' la proxima, a 'Scripting' aquí mismo dentro de la sección Spanish / Español. Gracias. Ingame name: Otto State: Inactive Web designer. Playing MTA:SA since 2008.
Recommended Posts