Jump to content

ابي كود ماركر انتقال


baba

Recommended Posts

سلام عليكم

شباب ابي كود ماركر انتقال من مكان لي مكان ثاني

بس

يكون لي قروب وتيم

ابي الماركر اذا انا دخلت فيه ينقلني على مكان ثاني

بس يكون لي قروب وتيم

قروب وتيم

وشكرن

Link to comment
سلام عليكم

شباب ابي كود ماركر انتقال من مكان لي مكان ثاني

بس

يكون لي قروب وتيم

ابي الماركر اذا انا دخلت فيه ينقلني على مكان ثاني

بس يكون لي قروب وتيم

قروب وتيم

وشكرن

كيف يعني قروب و تيم؟

يعني يكون داخل ب قروب و يكون ب تيم معين؟

Link to comment

تفضل

Team = ''  -- اسم التيم 
Group = '' -- اسم القروب 
  
  
  
addEventHandler("onMarkerHit", هنا تحط اسم الماركر, 
function ( playern ) 
    if ( getElementType(playern) == "player" ) then 
        if ( theTeam and theTeam == getTeamFromName(Team) and theGroup and theGroup == Group ) then 
        setElementPosition ( playern,x,y,z) -- احداثيات المكان 
            end 
        end 
end) 

ما جربته

Link to comment

الماركر تلقاه ب اول سطر حط احداثياته

mar = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) -- حط الاحداثيات هنا 
Team = ''  -- اسم التيم 
Group = '' -- اسم القروب 
  
  
  
addEventHandler("onMarkerHit", mar, 
function ( playern ) 
    if ( getElementType(playern) == "player" ) then 
        if ( theTeam and theTeam == getTeamFromName(Team) and theGroup and theGroup == Group ) then 
        setElementPosition ( playern,x,y,z) -- احداثيات المكان 
            end 
        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...