Jump to content

قلب الدم


Recommended Posts

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 

بتكون في مشاكل ولا عادي :roll:

Edited by Guest
Link to comment

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

تفضل ...#

  
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...