baba Posted October 27, 2014 Share Posted October 27, 2014 سلام عليكم شباب عندي كود انتقال بس لما ادخلو ما ينقلني على المكان الثاني الي انا احدده 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
xX|KeMo|Xx Posted October 27, 2014 Share Posted October 27, 2014 عرف theTeam و theGroup Link to comment
baba Posted October 27, 2014 Author Share Posted October 27, 2014 نعم مو فاهم اذا قسدك احط احط اليم ولقروب حاطهم Link to comment
EH10 Posted October 27, 2014 Share Posted October 27, 2014 جـرب ,. # 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now