Jump to content

حل مشكله


baba

Recommended Posts

سلام عليكم شباب

عندي كود انتقال

بس لما ادخلو ما ينقلني على المكان الثاني الي انا احدده

mar2 = createMarker (1452.3000488281,-1048.0999755859,214.39999389648, "arrow", 1, 248, 233, 6, 170 ) 
Team = 'Police' 
Group = 'SWAT' 
  
  
  
addEventHandler("onMarkerHit", mar2, 
function ( playern ) 
    if ( getElementType(playern) == "player" ) then 
        if ( theTeam and theTeam == getTeamFromName(Team) and theGroup and theGroup == Group ) then 
        setElementPosition ( playern,1427.29834,-1071.66785,26.71771) 
            end 
        end 
end) 

Link to comment

جـرب ,.

# Server Side 
marker = createMarker ( x, y, z, "arrow", 1, 255, 0, 0, 160 ) 
  
local Teams = 'Team' 
local Groups = 'Gang' 
  
addEventHandler("onMarkerHit", marker, 
function (player) 
    if ( getElementType(player) == "player" ) then 
    if getPlayerTeam(player) and ( getTeamName( getPlayerTeam(player) ) == Teams ) or getElementData ( player, "Group" ) == Groups then 
            setElementPosition ( player, 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...