Jump to content

تصحيح كود


shwaeki

Recommended Posts

السلام عليكم شباب ابي حد يشوفلي مشكلة الكود هاد كود ماركر انتقال يا جروب معين في تيم معين

local groupName = 'B13' 
oH = createMarker(821,-2114,14,"arrow",2,0,255,0,255) 
setElementInterior ( oH, 5 ) 
setElementDimension ( oH, 7521  ) 
and 
elseif ( source == oH ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' and not isPedInVehicle( hPlayer ) then 
            setElementPosition( hPlayer, 3184,923,8) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 

Link to comment
السلام عليكم شباب ابي حد يشوفلي مشكلة الكود هاد كود ماركر انتقال يا جروب معين في تيم معين
local groupName = 'B13' 
oH = createMarker(821,-2114,14,"arrow",2,0,255,0,255) 
setElementInterior ( oH, 5 ) 
setElementDimension ( oH, 7521  ) 
and 
elseif ( source == oH ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' and not isPedInVehicle( hPlayer ) then 
            setElementPosition( hPlayer, 3184,923,8) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 

# متأكد ذا كود ؟

Link to comment

مدري وش تبي تسوي بالضبط لأنك مسوي خرابيط , لكن عدلت على حسب كودك,

local groupName = 'B13' 
  
local oH = createMarker(821,-2114,14,"arrow",2,0,255,0) 
  
addEventHandler('onMarkerHit',oH,function(entered) 
    if getElementType(entered) == 'player' and not isPedInVehicle(entered) and getElementData(entered,'Group') == groupName then 
        setElementPosition( entered, 3184,923,8) 
            setElementInterior ( entered, 0 ) 
                setElementDimension ( entered, 0  ) 
        end 
    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...