Jump to content

مشكله كود الماركر


Recommended Posts

-- Define our function that will handle this command 
function consoleCreateMarker ( playerSource ) 
    -- If a player triggered it (rather than the admin) then 
    if ( playerSource ) then 
        -- Get that player's position 
        local x, y, z = getElementPosition ( playerSource ) 
        -- Create a size 2, red checkpoint marker at their position 
        createMarker ( x, y, z, "checkpoint", 2, 255, 0, 0, 255 ) 
        -- Output it in his chat box 
        outputChatBox ( "You got a red marker", playerSource ) 
    end 
end 
-- Attach the 'consoleCreateMarker' function to the "createmarker" command 
addCommandHandler ( "createmarker", consoleCreateMarker ) 

ماركر ما يجي ليش ؟

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...