NIKO_19997 Posted April 1, 2015 Posted April 1, 2015 hola, como puedo hacer que cuando ponga un comando como por ejemplo baseggc, me teletransporte con auto y todo a las coordenadas? el que tengo me warpea pero no con auto, aqui el script: addCommandHandler ( "baseggc", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "G.G.C" ) ) then setElementPosition ( thePlayer, -2023.7476806641,-859.02844238281,32.171875, true ) end end ) Saludos!!
Castillo Posted April 1, 2015 Posted April 1, 2015 addCommandHandler ( "baseggc", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "G.G.C" ) ) then local toWarp = ( isPedInVehicle ( thePlayer ) and getPedOccupiedVehicle ( thePlayer ) or thePlayer ) setElementPosition ( toWarp, -2023.7476806641,-859.02844238281,32.171875, true ) end end ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
NIKO_19997 Posted April 1, 2015 Author Posted April 1, 2015 addCommandHandler ( "baseggc", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "G.G.C" ) ) then local toWarp = ( isPedInVehicle ( thePlayer ) and getPedOccupiedVehicle ( thePlayer ) or thePlayer ) setElementPosition ( toWarp, -2023.7476806641,-859.02844238281,32.171875, true ) end end ) Funciona!! Gracias Solid
Castillo Posted April 1, 2015 Posted April 1, 2015 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts