</Mr.Tn6eL> Posted November 28, 2015 Share Posted November 28, 2015 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
Rockyz Posted November 28, 2015 Share Posted November 28, 2015 تغير دم الاعب بالكلنت 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
</Mr.Tn6eL> Posted November 29, 2015 Share Posted November 29, 2015 تغير دم الاعب بالكلنت 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 السورس هو الالمنت اللي تغيرت الداتا حقته 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