PleaseScript Posted October 7, 2012 Share Posted October 7, 2012 Hello people I was wondering if anyone knows how to do what I want it like when someone we enter / createMarker a message to all event created successfully enter / irevento go the player to enter into the Marker that the administrator created a system of type event if someone could help me I appreciate Thank you and until it function consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) if ( theMarker ) then outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "createmarker", consoleCreateMarker ) Link to comment
Baseplate Posted October 7, 2012 Share Posted October 7, 2012 Wrong section and I didn't get ur point mate.. Link to comment
Musamba Posted October 7, 2012 Share Posted October 7, 2012 function consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) if ( theMarker ) then outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "createmarker", consoleCreateMarker ) Link to comment
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