Dr.Xen Posted February 26, 2014 Share Posted February 26, 2014 (edited) السلام عليكم ورحمة الله وبركاته !! ممكن تعديل لكود addCommandHandler ( "moneyall", function ( player, cmd, ad99 ) if hasObjectPermissionTo ( player, "function.banPlayer" ) then if tonumber ( ad99 ) ~= nil then for id, player in ipairs ( getElementsByType ( "player" ) ) do givePlayerMoney ( player, tonumber ( ad99 ) ) outputChatBox("#FF0000 *** #00FF00ADMIN HAS GIVEN MONEY #00FF00[#fffc17$" .. ad99 .. "#00ff00]#FF0000#00FF00TO ALL PLAYERS #FF0000*** ", root, 255,0,0,true) end end end end) outputChatBox("== money - all ==", getRootElement(),0,200,255,true) -- OnStartMessage moneyall 100000 اريد يخلي كذا اذا ضغط الزر توزع من اللوحة مب كتابهه !.. وشكرآ Edited February 26, 2014 by Guest Link to comment
فاّرس Posted February 26, 2014 Share Posted February 26, 2014 -- Server Side # addEvent('Trigger',true) addEventHandler('Trigger',root,function(ad99) if tonumber(ad99) and hasObjectPermissionTo ( source, "function.banPlayer" ) then givePlayerMoney ( root, tonumber ( ad99 ) ) outputChatBox("== money - all ==", root,0,200,255,true) outputChatBox("#FF0000 *** #00FF00ADMIN HAS GIVEN MONEY #00FF00[#fffc17$" .. ad99 .. "#00ff00]#FF0000#00FF00TO ALL PLAYERS #FF0000*** ", root, 255,0,0,true) end end ) Link to comment
Dr.Xen Posted February 26, 2014 Author Share Posted February 26, 2014 اذا ضغط زر من اللوحة توززع... Link to comment
فاّرس Posted February 26, 2014 Share Posted February 26, 2014 وانا وش مسوي ؟ انت ناقصك تسوي تريقر من الكلينت اذا ضغط الزر, طبعا تحتاج تجيب الكلام الي في الاديت الي هو الفلوس onClientGUIClick guiGetText triggerServerEvent Link to comment
Dr.Xen Posted February 26, 2014 Author Share Posted February 26, 2014 طيب ما تقدر يصير كذا: كود جديد لمن اضغط زر من اللوححة توزع فلوس للكل ! Link to comment
فاّرس Posted February 26, 2014 Share Posted February 26, 2014 ياخوي انا مسويه كذا الا اذا كنت تبي توزع فلوس محدده بدون اديت سوي كذا, -- Server Side # local Money = 1000 addEvent('Trigger',true) addEventHandler('Trigger',root,function() if hasObjectPermissionTo ( source, "function.banPlayer" ) then givePlayerMoney ( root, Money ) outputChatBox("== money - all ==", root,0,200,255,true) outputChatBox("#FF0000 *** #00FF00ADMIN HAS GIVEN MONEY #00FF00[#fffc17$" .. Money .. "#00ff00]#FF0000#00FF00TO ALL PLAYERS #FF0000*** ", root, 255,0,0,true) end end ) Link to comment
فاّرس Posted February 27, 2014 Share Posted February 27, 2014 شكرآآ لك ..# العفو , حياك الله 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