Taken' Posted June 25, 2018 Share Posted June 25, 2018 سلآم عليكم . انا ابغا تعديل لكود انا فكرتي للمود هو لمآ يقتل شخص يحصل على 1 جوهره .. addEventHandler("onClientElementDataChange", getRootElement(), function(Date) if Date == "playerDiamond" then setPlayerCoins(getElementData(localPlayer, "playerDiamond")) end end) -- function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then setPlayerCoins ( killer, 1 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) بس مب جالس يضبط وم ادري من وين الخطأ .. Link to comment
N3xT Posted June 25, 2018 Share Posted June 25, 2018 استبدل السيرفر بذا function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then setPlayerCoins ( killer, getElementData(killer, "playerDiamond") + 1 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) Link to comment
Rakan# Posted June 25, 2018 Share Posted June 25, 2018 onClientElementDataChange >> Client onPlayerWasted >> Server الخطا اما انك انت حاط ايفنت الموت بالكلنت او انت حاطه بالسيرفر لكن مو موجود فنكشن setPlayerCoins داخل السيرفر Link to comment
Taken' Posted June 25, 2018 Author Share Posted June 25, 2018 7 minutes ago, Rakan# said: onClientElementDataChange >> Client onPlayerWasted >> Server الخطا اما انك انت حاط ايفنت الموت بالكلنت او انت حاطه بالسيرفر لكن مو موجود فنكشن setPlayerCoins داخل السيرفر onClientElementDataChange حاطه ب كلنت onPlayerWasted حاطه ب سيرفر 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