MeZo999 Posted December 11, 2013 Share Posted December 11, 2013 يعني اذا دخل لاعب مش فلجروب هاذا المكان ينقله مكان ثاني ما يقتله مثل مقر ارمي في حرب العصابات Link to comment
K1NG Posted December 11, 2013 Share Posted December 11, 2013 createColRectangle Event: "onColShapeHit" getElementData isPedInVehicle getPedOccupiedVehicle setElementPosition Link to comment
MeZo999 Posted December 11, 2013 Author Share Posted December 11, 2013 createColRectangle Event: "onColShapeHit" getElementData isPedInVehicle getPedOccupiedVehicle setElementPosition ابيه جاهز الله لا يهينك ♥ Link to comment
AboShanab Posted December 11, 2013 Share Posted December 11, 2013 local col = createColRectangle(.........) addEventHandler("onColShapeHit",root,function ( element ) if ( source == col ) then if ( getElementType(element) == 'player' and not isPedInVehicle(element) ) then if not ( getElementData(element,'Group') == 'NameGroup' ) then setElementPosition(element,x,y,z) end end end end) Link to comment
K1NG Posted December 11, 2013 Share Posted December 11, 2013 local groupName = "اسم القروب المسموح له بدخول المنطقة" local x, y, z = 0, 0, 0 -- الإحداثيات الي ينتقل لها اللاعب إذا كان مهو بالقروب local colShape = createColRectangle ( fX, fY, fWidth, fHeight ) addEventHandler ( "onColShapeHit", colShape, function ( theElm ) if ( getElementType ( theElm ) == "player" ) and ( getElementData ( theElm, "Group" ) ~= groupName ) then if ( isPedInVehicle ( theElm ) ) then setElementPosition ( getPedOccupiedVehicle ( theElm ), x, y, z ) else setElementPosition ( theElm, 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