Jump to content

طلب 2 فانكشن


SycroX

Recommended Posts

addEventHandler ( "onClientElementDataChange", root, function ( dataName, oldValue, bPlayer )
    if dataName == "PointsKill" and bPlayer == localPlayer then
        local points = tonumber ( getElementData ( localPlayer, "PointsKill" ) ) or 0
  if points == 10 then
   setElementHealth(bPlayer, 100)
  end
  end
  end )
 

جرب المثال بالكلنت

تغير دم الاعب بالكلنت :|:|

Link to comment

تغير دم الاعب بالكلنت

:|:|

addEventHandler ( "onClientElementDataChange", root, function ( dataName, oldValue, bPlayer )
    if dataName == "PointsKill" and bPlayer == localPlayer then
        local points = tonumber ( getElementData ( localPlayer, "PointsKill" ) ) or 0
  if points == 10 then
   setElementHealth(bPlayer, 100)
  end
  end
  end )
 

جرب المثال بالكلنت

Link to comment

تغير دم الاعب بالكلنت

:|:|

addEventHandler ( "onClientElementDataChange", root, function ( dataName, oldValue, bPlayer )
    if dataName == "PointsKill" and bPlayer == localPlayer then
        local points = tonumber ( getElementData ( localPlayer, "PointsKill" ) ) or 0
  if points == 10 then
   setElementHealth(bPlayer, 100)
  end
  end
  end )
 

جرب المثال بالكلنت

اصلا مثالك غلط

string dataName, string oldValue

من وين جبت bPlayer

السورس هو الالمنت اللي تغيرت الداتا حقته :D

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