#Mr.alkmasha Posted October 12, 2014 Share Posted October 12, 2014 اسلام عليكم ابي فنكشن حق الانفجار او النار Link to comment
EH10 Posted October 12, 2014 Share Posted October 12, 2014 createFire -- اشتعال الـنار , createProjectile -- قـذائف نارية , Link to comment
#Mr.alkmasha Posted October 13, 2014 Author Share Posted October 13, 2014 طلي اخير وش المشكله هنا function wasted(element) if ( element == getLocalPlayer ( ) ) then if not ( getPedOccupiedVehicle ( element ) ) then setElementPosition ( element, x, y, x ) createFire ( x,y,z ) end end end addEventHandler ( "onClientPlayerWasted",resourceRoot,wasted) Link to comment
jafar Posted October 13, 2014 Share Posted October 13, 2014 استبدل resourceRoot الى root + لازم تستخدم فنكشن spawnPlayer يوم يموت اللاعب Link to comment
#Mr.alkmasha Posted October 13, 2014 Author Share Posted October 13, 2014 استبدل resourceRoot الى root+ لازم تستخدم فنكشن spawnPlayer يوم يموت اللاعب شكرا بجرب Link to comment
#Mr.alkmasha Posted October 13, 2014 Author Share Posted October 13, 2014 يا اخ انت تقول spawnPlayer ذي عشان اخليه يروح ل مكان انا ابيه لما الاعب يموت يطلع نار Link to comment
jafar Posted October 13, 2014 Share Posted October 13, 2014 انت مستخدم setElementPosition للاعب وهذا الفنكشن مابيعمل مع حدث موت اللاعب Link to comment
EH10 Posted October 13, 2014 Share Posted October 13, 2014 # Client , addEventHandler ( "onClientPlayerWasted",root, function () local x,y,z = getElementPosition( localPlayer ) createFire ( x, y, z ) end ) Link to comment
#Mr.alkmasha Posted October 13, 2014 Author Share Posted October 13, 2014 انت مستخدم setElementPosition للاعب وهذا الفنكشن مابيعمل مع حدث موت اللاعب يب انا ب الغلط حطيت set بدل get # Client , addEventHandler ( "onClientPlayerWasted",root, function () local x,y,z = getElementPosition( localPlayer ) createFire ( x, y, z ) end ) شكرا ماكس بجرب الكود Link to comment
TAPL Posted October 13, 2014 Share Posted October 13, 2014 addEventHandler ( "onClientPlayerWasted",root, function () local x,y,z = getElementPosition( source ) createFire ( x, y, z ) end ) Link to comment
#Mr.alkmasha Posted October 13, 2014 Author Share Posted October 13, 2014 زبط الكود ممكن اخر شي وربي بس فنكشن االي يسوي انفجار Link to comment
nxFairlywell Posted October 13, 2014 Share Posted October 13, 2014 زبط الكود ممكن اخر شي وربي بس فنكشن االي يسوي انفجار createExplosion 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