azoozalmalki711 Posted May 23, 2017 Posted May 23, 2017 (edited) ابي كود عشان مود عدم الموت الكود الي ابيه اذا دخل لاعب عالم وهمي يطفي عنه الجود مود function stopDamage () cancelEvent() end addEventHandler ( "onClientPlayerDamage", getRootElement(), stopDamage ) addEventHandler ( "onClientPlayerStealthKill", getRootElement(), stopDamage ) addEventHandler ( "onClientPedDamage", getRootElement(), stopDamage ) Edited May 23, 2017 by azoozalmalki711
Kara Posted May 23, 2017 Posted May 23, 2017 سوي تحقق اذا الاعب ليس موجود في الديمنشن المعين مايشتغل القود مود if not getElementDimension ( source ) == 0 then return end
azoozalmalki711 Posted May 25, 2017 Author Posted May 25, 2017 ممكن تعلمني وين احط ذا الكود بالضبط حاولت م عرفت
Kara Posted May 25, 2017 Posted May 25, 2017 (edited) function stopDamage () if getElementDimension ( source ) ~= 0 then return end cancelEvent() end addEventHandler ( "onClientPlayerDamage", getRootElement(), stopDamage ) addEventHandler ( "onClientPlayerStealthKill", getRootElement(), stopDamage ) addEventHandler ( "onClientPedDamage", getRootElement(), stopDamage ) Edited May 25, 2017 by Kara
azoozalmalki711 Posted May 25, 2017 Author Posted May 25, 2017 (edited) شكرا شغال تمت الافادة يعطيك العافية Edited May 25, 2017 by azoozalmalki711
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