Gomez10 Posted February 26, 2014 Share Posted February 26, 2014 سلام عليكم شفت مثال بل ويكي عن getLocalPlayer ذا مثال ابيكم تفهموه لي function flashRed ( ) -- fade out the local player's camera to red during a second fadeCamera( false, 1.0, 255, 0, 0 ) -- set a 500 ms (0.5 sec) timer to fade it back in before it has completely faded out setTimer( fadeCamera, 500, 1, true, 1.0 ) end -- we attach our 'flashRed' function to be a handler of "onClientPlayerDamage" when its source (that is, the hit player) is the local player addEventHandler( "onClientPlayerDamage", getLocalPlayer ( ), flashRed ) ابيكم تفهو لي بل اخص getLocalPlayer وليش موجوده بل كود وكل شي عنها Link to comment
#DRAGON!FIRE Posted February 26, 2014 Share Posted February 26, 2014 ببساطة : getLocalPlayer = localPlayer والعكس صحيح .. لو استخدم ذي ولا ذي مافي اي اي فرق ذذ Link to comment
GtaSa-Dz Posted February 26, 2014 Share Posted February 26, 2014 للعم localPlayer هي اختصار Link to comment
Recommended Posts