Dr.Xen Posted January 8, 2014 Share Posted January 8, 2014 السلام عليكم ورحمة الله وبركاته ... -- # Server Side .. local marker = createMarker ( 192.80000305176,1888.0999755859,3, 'cylinder', 450, 255, 255, 0, 0 ) addEventHandler('onMarkerHit',marker, function ( player ) if (getElementType(player) == ("player")) then if ( getElementData(player, "Group" ) ~= "[ARMY]" ) then setElementPosition ( player,694.16492,1942.40430,5.53906 ) outputChatBox("God Bye!==Only For Group [ARMY]", player, 255, 255, 0) end end end ) ذا الكود ما ينتقل الماركر يعني اي واحد يقدر يدخل الماركر بالسيارة ابيه لمن يدخل بالسيارة ينتقل لمكان الي حطيت @ Link to comment
K1NG Posted January 8, 2014 Share Posted January 8, 2014 * Server Side: local marker = createMarker ( 192.80000305176, 1888.0999755859, 3, "cylinder", 450, 255, 255, 0, 0 ) addEventHandler ( "onMarkerHit", marker, function ( player ) if ( getElementType( player ) == "player" ) and ( getElementData ( player, "Group" ) ~= "[ARMY]" ) then local theVehicle = getPedOccupiedVehicle ( player ) if ( theVehicle ) then setElementPosition ( theVehicle, 694.16492, 1942.40430, 5.53906 ) else setElementPosition ( player, 694.16492, 1942.40430, 5.53906 ) end outputChatBox ( "God Bye!==Only For Group [ARMY]", player, 255, 255, 0) end end ) Link to comment
Dr.Xen Posted January 8, 2014 Author Share Posted January 8, 2014 (edited) جاري التجربة @ edit: كفوو ومشكور ي لبى الكود شغال تمام $ Edited January 8, 2014 by Guest 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