NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 addEventHandler("onPlayerWasted",getRootElement(), function ( ) if ( getElementData ( source , "Group" ) == "...." ) then setTimer(spawnPlayer 1000,1,source,1264.2177734375, -785.30816650391, 1091.90625,0,0,5 ,2,_ ) setTimer(setCameraTarget,1350,1,source,source) setTimer(fadeCamera,2300,1, source,true) end end ) function giveArmor ( ) setPedArmor ( source, 100 ) end addEventHandler("onPlayerWasted", getRootElement(), giveArmor) هاذا الكود الي انا مسويه Link to comment
فاّرس Posted July 21, 2013 Share Posted July 21, 2013 (edited) addEventHandler("onPlayerWasted",root, function ( ) if (getElementData ( source , "Group" ) == "...." ) then setTimer(spawnPlayer,1000,1,source,1264.2177734375, -785.30816650391, 1091.90625,0,0,5 ,2,_ ) setTimer(setCameraTarget,1350,1,source,source) setTimer(fadeCamera,2300,1, source,true) end end ) addEventHandler("onPlayerWasted",root function() setPedArmor ( source, 100 ) end ) Edited July 21, 2013 by Guest Link to comment
NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 غير الكلمات الانجليزيه ,شوف فوق وش كتبت لك ! وشوف المثال ذذ يب اخوي سويت كلشي شف كودي طرحته Link to comment
فاّرس Posted July 21, 2013 Share Posted July 21, 2013 غير الكلمات الانجليزيه ,شوف فوق وش كتبت لك ! وشوف المثال ذذ يب اخوي سويت كلشي شف كودي طرحته انسخ كودي الي فوق , كان في فاصله ما انتبهت لها ذذ Link to comment
NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 اخوي جربت كودك بس طلعت بالمشفى : ( مفروض اطلع بالسباون الي محدده عشاني بجروب,, والي مو بجروب يطلع بالمشفى Link to comment
فاّرس Posted July 21, 2013 Share Posted July 21, 2013 اخوي جربت كودك بس طلعت بالمشفى : ( مفروض اطلع بالسباون الي محدده عشاني بجروب,, والي مو بجروب يطلع بالمشفى متأكد انك مغير .... لأسم الفريق؟ Link to comment
NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 كودك الي طرحت يكون كذا جرب : addEventHandler("onPlayerWasted",getRootElement(), function ( ) if ( getElementData ( source , "Group" ) == "SWAT" ) then setTimer(spawnPlayer,1500, 1, source,2233.3 , 1090.1 , 40.7) setTimer(setCameraTarget,1350,1,source,source) setTimer(fadeCamera,2300,1, source,true) end end ) هاذا كود اخوي حسن ظآبط 100% بس المشكلة ماجاني درع ولما احط Dimension-Interior مايشتغل الكود + وآلدرع ماجاني Link to comment
NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 اخوي جربت كودك بس طلعت بالمشفى : ( مفروض اطلع بالسباون الي محدده عشاني بجروب,, والي مو بجروب يطلع بالمشفى متأكد انك مغير .... لأسم الفريق؟ يب والله Link to comment
فاّرس Posted July 21, 2013 Share Posted July 21, 2013 وليه ما تخليها بكود واحد كلها ؟ addEventHandler("onPlayerWasted",root, function ( ) if ( getElementData ( source , "Group" ) == "SWAT" ) then setTimer(spawnPlayer,1500, 1, source,2233.3 , 1090.1 , 40.7,0,0,5,2) setTimer(setCameraTarget,1350,1,source,source) setTimer(fadeCamera,2300,1, source,true) setPedArmor ( source, 100 ) end end ) Link to comment
NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 وليه ما تخليها بكود واحد كلها ؟ addEventHandler("onPlayerWasted",root, function ( ) if ( getElementData ( source , "Group" ) == "SWAT" ) then setTimer(spawnPlayer,1500, 1, source,2233.3 , 1090.1 , 40.7,0,0,5,2) setTimer(setCameraTarget,1350,1,source,source) setTimer(fadeCamera,2300,1, source,true) setPedArmor ( source, 100 ) end end ) اوك بجرب الكود هذا :] Link to comment
NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 وليه ما تخليها بكود واحد كلها ؟ addEventHandler("onPlayerWasted",root, function ( ) if ( getElementData ( source , "Group" ) == "SWAT" ) then setTimer(spawnPlayer,1500, 1, source,2233.3 , 1090.1 , 40.7,0,0,5,2) setTimer(setCameraTarget,1350,1,source,source) setTimer(fadeCamera,2300,1, source,true) setPedArmor ( source, 100 ) end end ) كفووو والله الحين انتقلت للمكان الي انا فيه بسس ماجا لي درع ليه ؟؟ : ( + اقدر اخلي الللبس مايتغير؟ : ( Link to comment
TAPL Posted July 21, 2013 Share Posted July 21, 2013 addEventHandler("onPlayerWasted", root, function() if getElementData(source, "Group") == "SWAT" then setTimer(function(source) spawnPlayer(source, 2233.3, 1090.1, 40.7, 0, getElementModel(source), 5, 2) setPedArmor(source, 100) setCameraTarget(source) fadeCamera(source, true) end, 1500, 1, source) end end ) Link to comment
NanOo Posted July 21, 2013 Author Share Posted July 21, 2013 addEventHandler("onPlayerWasted", root, function() if getElementData(source, "Group") == "SWAT" then setTimer(function(source) spawnPlayer(source, 2233.3, 1090.1, 40.7, 0, getElementModel(source), 5, 2) setPedArmor(source, 100) setCameraTarget(source) fadeCamera(source, true) end, 1500, 1, source) end end ) كفووووووو الله يوفقكم وربي شنبات ^^ ظبط 100% 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