~>i'Mr.ZaId<~ Posted June 25, 2013 Share Posted June 25, 2013 االسلام عليكم يا شباب مدري اذا هاذ الكود صح ولا لا ياليت تشوفوه local groupName = '[saW]' tawa = createMarker(86.5,1341.8000488281,1087.3000488281,"cylinder",1,0,255,0,255) health = createMarker(1517.3000488281,567.40002441406,180.60000610352,"cylinder",2,0,0,0,0) aaa = createMarker(1520.5,592.20001220703,180.60000610352,"cylinder",2,0,0,0,0) setElementInterior ( tawa, 9 ) setElementDimension ( tawa, 5725 ) addEventHandler("onMarkerHit",tawa, function (thePlayer) if getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' and getElementData ( thePlayer , "Group" ) == groupName then setElementInterior (thePlayer,0) setElementDimension ( thePlayer, 0) setElementPosition( thePlayer, 1515,581,183 ) end end ) addEventHandler("onMarkerHit",health, function (thePlayer) if getElementData( thePlayer, 'Group' ) == groupName and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' then if isPedInVehicle( thePlayer ) then return end setElementHealth( thePlayer, 100 ) setPedArmor( thePlayer, 100 ) end end ) addEventHandler("onMarkerHit",aaa, function (thePlayer) if getElementData( thePlayer, 'Group' ) == groupName and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' and not isPedInVehicle( thePlayer ) then setElementPosition( thePlayer, 84.890701293945, 1324.9881591797, 1083.859375 ) setElementInterior ( thePlayer, 9 ) setElementDimension ( thePlayer, 5725 ) end end ) Link to comment
PaiN^ Posted June 25, 2013 Share Posted June 25, 2013 أعتقد الأبعاد الوهمية لها عدد محدود ما أظن يوصل لـ 5725 + No Team متأكد إنك في تيم Link to comment
./BlackBird# Posted June 25, 2013 Share Posted June 25, 2013 أعتقد الأبعاد الوهمية لها عدد محدود ما أظن يوصل لـ 5725 + No Team متأكد إنك في تيم You can in theory have up to 65535 dimensions. Link to comment
#DRAGON!FIRE Posted June 25, 2013 Share Posted June 25, 2013 تحقق انك في تيم No Team + getElementData ?? تحقق منها اذا هي موجود للقروب # تحقق من هذول Link to comment
Bandito Posted June 27, 2013 Share Posted June 27, 2013 local groupName = '[saW]' local tawa = createMarker(86.5,1341.8000488281,1087.3000488281,"cylinder",1,0,255,0,255) local health = createMarker(1517.3000488281,567.40002441406,180.60000610352,"cylinder",2,0,0,0,0) local aaa = createMarker(1520.5,592.20001220703,180.60000610352,"cylinder",2,0,0,0,0) setElementInterior ( tawa, 9 ) setElementDimension ( tawa, 5725 ) addEventHandler("onMarkerHit",root, function ( thePlayer ) if getElementType ( thePlayer ) == 'player' and getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) == 'No Team' and getElementData ( thePlayer,'Group' ) == groupName then if ( source == tawa ) then setElementInterior ( thePlayer,0 ) setElementDimension ( thePlayer, 0 ) setElementPosition( thePlayer, 1515,581,183 ) elseif ( source == health ) then if isPedInVehicle( thePlayer ) then return end setElementHealth( thePlayer, 100 ) setPedArmor( thePlayer, 100 ) elseif ( source == aaa ) then setElementPosition( thePlayer, 84.890701293945, 1324.9881591797, 1083.859375 ) setElementInterior ( thePlayer, 9 ) setElementDimension ( thePlayer, 5725 ) 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