khaledmhammed Posted August 27, 2015 Share Posted August 27, 2015 السلام عليكم باختصار ابي الاعب اذا مشاء فوق هذي createPickup ( 2500.447265625, -1665.619140625, 13.353348731995, 0, 100 ) يجي له دم وش استخدم ولو في حدث حطوة Link to comment
iMr.SFA7 Posted August 27, 2015 Share Posted August 27, 2015 "onPickupHit" setElementHealth Link to comment
khaledmhammed Posted August 27, 2015 Author Share Posted August 27, 2015 سفاح سويته كذا زبط ثم سويت رستارت للمود ثاني اختفى ولاعاد يطلع function dm () createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) setElementHealth ( Player, 100 ) addEventHandler ( "onPickupHit", dm ) end Link to comment
iMr.SFA7 Posted August 27, 2015 Share Posted August 27, 2015 local Pickup = createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) addEventHandler ( "onPickupHit",Pickup, function (thePlayer) setElementHealth ( thePlayer, 100 ) end ) Link to comment
khaledmhammed Posted August 27, 2015 Author Share Posted August 27, 2015 (edited) local Pickup = createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) addEventHandler ( "onPickupHit",Pickup, function (thePlayer) setElementHealth ( thePlayer, 100 ) end ) شكرا يعطيك العافية بسالك لو ابيه يرجع كل وقت معين صح ولا setTime ذي + سوال وش الداعي من local Pickup يعني لو ماحطها وسوي كذا function dm () createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) createPickup ( 2495.8466796875, -1674.33984375, 13.335947036743, 1, 100 ) setElementHealth ( Player, 100 ) addEventHandler ( "onPickupHit", dm ) end بتكون في مشاكل ولا عادي Edited August 27, 2015 by Guest Link to comment
iMr.SFA7 Posted August 27, 2015 Share Posted August 27, 2015 آيش قصدك بـ يرجع كل وقت معين ؟ وضح ؟ Link to comment
khaledmhammed Posted August 27, 2015 Author Share Posted August 27, 2015 آيش قصدك بـ يرجع كل وقت معين ؟ وضح ؟ ياليت تسوي له تايمر لا اخذ الدم و دقيقه ويرجع Link to comment
iMr.SFA7 Posted August 27, 2015 Share Posted August 27, 2015 local Pickup = createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) addEventHandler ( "onPickupHit",Pickup, function (thePlayer) local old = getElementHealth ( thePlayer ) setTimer (setElementHealth, 500, 1, thePlayer, 100) setTimer (setElementHealth, 30000, 1, thePlayer, old) end ) أنا حطيته لككـ بعد 30 ثآنية يرجع الدم لـ دمه الي كآن عنده قبل لا يدخل اذا تبي تغير الوقت من سطر 7 Link to comment
!#NssoR_) Posted August 27, 2015 Share Posted August 27, 2015 تفضل ...# local time = 4000 -- اذا احد اخذه بعد 4 ثواني بيظهر من جديد local Pickup = createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ,time) addEventHandler ( "onPickupHit",Pickup, function (thePlayer) setElementHealth ( thePlayer, 100 ) end ) Link to comment
khaledmhammed Posted August 27, 2015 Author Share Posted August 27, 2015 local Pickup = createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) addEventHandler ( "onPickupHit",Pickup, function (thePlayer) local old = getElementHealth ( thePlayer ) setTimer (setElementHealth, 500, 1, thePlayer, 100) setTimer (setElementHealth, 30000, 1, thePlayer, old) end ) أنا حطيته لككـ بعد 30 ثآنية يرجع الدم لـ دمه الي كآن عنده قبل لا يدخل اذا تبي تغير الوقت من سطر 7 يعطيك العافية مية مية التايمر نفس مابي شكرأ وكذالك نصور يعطيك العافية 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