Pedro Colto Posted May 9, 2017 Posted May 9, 2017 function consoleCreateMarker ( playerSource, commandName ) if ( playerSource ) then x, y, z = getElementPosition ( playerSource ) createMarker ( x, y, z, 0, "checkpoint", 255, 0, 0, 255 ) outputChatBox ( "You got a red marker", playerSource ) end end addCommandHandler ( "createmarker", consoleCreateMarker ) addEventHandler("onPlayerLogin", root, function(playerSource) executeCommandHandler ( "createmarker", playerSource ) end ) Já coloquei o recurso no grupo admin e console, mesmo assim da warning avisando que o script não esta permitido para dar "ExecuteCommandHandler" terá alguma grupo ou areá para permitir, não esta dando certo, já coloque corretamente nos grupos da acl e nada, ja tentei colocando o seguinte; <object name="resource.*"></object> <!-- E também com o proprio nome do recurso --> <object name="resource.test"></object>
DNL291 Posted May 9, 2017 Posted May 9, 2017 function consoleCreateMarker ( playerSource, commandName ) if ( playerSource ) then local x, y, z = getElementPosition ( playerSource ) createMarker ( x, y, z, "checkpoint", 2, 255, 0, 0, 255 ) outputChatBox ( "You got a red marker", playerSource ) end end addCommandHandler ( "createmarker", consoleCreateMarker ) addEventHandler("onPlayerLogin", root, function() executeCommandHandler ( "createmarker", source ) end ) Coloquei 2 no tamanho do marcador, só trocar pelo tamanho desejado. Please do not PM me with scripting related question nor support, use the forums instead.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now