#Soking Posted February 4, 2016 Posted February 4, 2016 addEventHandler("onClientPlayerDamage", root, function(attacker) if attacker and getElementType(attacker) == "player" and attacker ~= localPlayer then if getElementData(attacker,'Jobs') ~= 25 then if getElementData(localPlayer,'Jobs') == 25 then setPlayerWantedLevel(attacker,6) end end end end ) المفروض ال مماا معه القيمه 25 وضرب المعه القيمه 25 ياخد نجوم ؟
Me[Z]oO Posted February 4, 2016 Posted February 4, 2016 addEventHandler("onClientPlayerDamage", root, function(attacker) if attacker and getElementType(attacker) == "player" and attacker ~= localPlayer then if getElementData(attacker,'Jobs') ~= 25 then if getElementData(localPlayer,'Jobs') == 25 then setPlayerWantedLevel(attacker,6) end end end end ) المفروض ال مماا معه القيمه 25 وضرب المعه القيمه 25 ياخد نجوم ؟ وش تبي تسوي بالضبط وضح
#Soking Posted February 4, 2016 Author Posted February 4, 2016 انا بدي اسوي لما واحد مو في القيمة 25 ويضرب واحد في القيمة 25 يعطيه نجوم باختصار لو حرامي ضرب شرطي ياخد نجوم
nxFairlywell Posted February 4, 2016 Posted February 4, 2016 كلنت addEventHandler("onClientPlayerDamage", localPlayer, function( attacker ) if getElementData(attacker) == "player" then if getElementData(localPlayer, "Jobs") == 25 and getElementData(attacker, "Jobs") ~= 25 then triggerServerEvent("onPoliceDamage", attacker) else return end else return end end ) سيرفر addEvent("onPoliceDamage", true) addEventHandler("onPoliceDamage", root, function( ) setPlayerWantedLevel(source, 6) end )
nxFairlywell Posted February 4, 2016 Posted February 4, 2016 اصلاً مالها فايده في كودك ولا لها ضرر بس تعودت اكتبها
#Soking Posted February 5, 2016 Author Posted February 5, 2016 جــنرال ماشتغل الكود يوم احد يضرب الـ في قيمه " 25 " ( الشرطي ) مايجيله شي
nxFairlywell Posted February 5, 2016 Posted February 5, 2016 جــنرال ماشتغل الكود يوم احد يضرب الـ في قيمه " 25 " ( الشرطي ) مايجيله شي انت حطيت داتا اصلا؟
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