Jump to content

مشكلة وين احط الوظيفة في هذا الكود


Recommended Posts

السلام عليكم

وين احط الوظيفة واذا ماعليكم ضرر اشروحلي الكود

theMarker = createMarker( -687.9, 937.8, 13.6, "cylinder", 2.0, 255, 0, 0, 80 ) -- create a red cylinder marker inside Toreno's house 
  
function checkOnMarker ( thePlayer ) 
    local isIn = isPlayerInMarker( thePlayer, theMarker ) -- use the function to check if player is in the marker 
    if isIn then 
        outputChatBox( "You are on the marker.", thePlayer ) 
    else 
        outputChatBox( "You are not on the marker.", thePlayer ) 
    end 
end 
addCommandHandler ( "amionmarker", checkOnMarker ) 

Edited by Guest
Link to comment
theMarker = createMarker( -687.9, 937.8, 13.6, "cylinder", 2.0, 255, 0, 0, 80 ) -- create a red cylinder marker inside Toreno's house 
  
addEventHandler("onMarkerHit", theMarker, 
    function(hElement) 
        --insert functions 
    end 
) 

--insert functions ضع كل الوظائف مكان

Link to comment
لوسمحت في خطأ بالكود

انت عطني مثال

حط وظيفة مثلا

setPedVoice(getLocalPlayer(), "PED_TYPE_GANG", "VOICE_GNG_MACCER")

Client side ^

theMarker = createMarker( -687.9, 937.8, 13.6, "cylinder", 2.0, 255, 0, 0, 80 ) -- create a red cylinder marker inside Toreno's house 
  
addEventHandler("onClientMarkerHit", theMarker, 
    function(hitElement) 
       setPedVoice(hitElement, "PED_TYPE_GANG", "VOICE_GNG_MACCER") 
    end 
) 

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...