mohssan123 Posted February 22, 2013 Share Posted February 22, 2013 هاد كود اذا ضغط الزر في النافذه عليه يصير الدم 200 لكن اذا مات ما يرجع دمه مثل ما كان ابغي اذا مات يرجع دمه إلى طبيعته .. 100 addEvent("super_health",true) addEventHandler("super_health",root, function() if ( getPlayerMoney (source) >= 1800 ) then takePlayerMoney(source, 1800) setPedStat(source, 24, 999) setElementHealth(source,200) else outputChatBox("You don't have monay", source, 255, 0, 0, true) end end ) و هاذا الكود addEventHandler("Jetpack",root, function() if ( getPlayerMoney (source) >= 1200 ) then takePlayerMoney(source, 1200) local name = getPlayerName(source) givePedJetPack(source) else outputChatBox("You don't have monay", source, 255, 0, 0, true) end end ) هاذا يعطي جيت باك ابغي ااذ ضفط زر معين يختفي من عنده الجيت باك Link to comment
iPrestege Posted February 22, 2013 Share Posted February 22, 2013 -- غير الاعدادات setPedStat setElementHealth "onPlayerSpawn" ------------------------------- removePedJetPack triggerServerEvent "onClientGUIClick" Link to comment
mohssan123 Posted February 22, 2013 Author Share Posted February 22, 2013 -- غير الاعدادات setPedStat setElementHealth "onPlayerSpawn" ------------------------------- removePedJetPack triggerServerEvent "onClientGUIClick" بحاول الحين فيهم Link to comment
iPrestege Posted February 22, 2013 Share Posted February 22, 2013 للمعلومية الـ setPedStat سوية نفسه بس غير الارقام الاعداادت = الارقام والى ذلك جرب كذا الاكواد هذي / --الطلب الاول سيرفر !! addEventHandler("onPlayerSpawn",root, function () setPedStat(source,24,600) setElementHealth(source,100) end ) -- الطلب الثاني كلنت !! addEventHandler ( "onClientGUIClick", الزر, function () triggerServerEvent ( "onRemove",localPlayer) end ) -- الطلب الثاني سيرفر !! addEvent("onRemove",true) addEventHandler("onRemove",root, function () if ( doesPedHaveJetPack ( source ) ) then removePedJetPack ( source ) end end ) 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