ABO.SR7777A Posted September 22, 2012 Share Posted September 22, 2012 السلام عليكم شباب شباب ابي كود مثلا سويت زر تدق على الزر يسحب منك الفلوس الى احدهها انا ركبت كود بس ماشتغل كود سيرفر if (getPlayerMoney(source) >= 8000) then takePlayerMoney(source, 8000) ابي ملف كلينت عشان احط اسم الزر وثانكس Link to comment
./BlackBird# Posted September 22, 2012 Share Posted September 22, 2012 كلنت addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == ZR1 ) then -- ZR1 اسم الزر triggerServerEvent("1",getLocalPlayer()) end end ) سيرفر addEvent("1", true) addEventHandler("1", getRootElement(), function() if ( getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) end end ) Link to comment
==>ҭᾄlᾄl Posted September 22, 2012 Share Posted September 22, 2012 كلنت addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == ZR1 ) then -- ZR1 اسم الزر triggerServerEvent("1",getLocalPlayer()) end end ) سيرفر addEvent("1", true) addEventHandler("1", getRootElement(), function() if ( getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) end end ) حاول تصغر كودك كلنت addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == ZR1 ) then -- ZR1 اسم الزر triggerServerEvent("1",getLocalPlayer()) end end ) سيرفر addEvent("1", true) addEventHandler("1", getRootElement(), function() if ( getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) end end ) Link to comment
./BlackBird# Posted September 22, 2012 Share Posted September 22, 2012 كنت مستعجل و نسيت اصغره >< Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 جزاكم الله خير Link to comment
./BlackBird# Posted September 22, 2012 Share Posted September 22, 2012 عفوا و حاول ما تسوي لخابيط و تنزل موضوع بالنهاية يحطمونك Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 اوكي يا ذيب Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 معليش الكود ماشتغل Link to comment
./BlackBird# Posted September 22, 2012 Share Posted September 22, 2012 تأكد من اسم الزر Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 حطيته ثمل كذا GUIEditor_Button[1] Link to comment
TAPL Posted September 22, 2012 Share Posted September 22, 2012 أكتب في أف8 /debugscript 3 و قل لنا وش الأخطاء الي عندك Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 لو كتبت يجي كلام احمر كثير يميشي مايوقف Link to comment
abu5lf Posted September 22, 2012 Share Posted September 22, 2012 لو كتبت يجي كلام احمر كثير يميشي مايوقف وش مكتوب ؟ Link to comment
./BlackBird# Posted September 22, 2012 Share Posted September 22, 2012 لازم تحل الاخطأء كلها عشان المود يشتغل 100% Link to comment
abu5lf Posted September 22, 2012 Share Posted September 22, 2012 شف الكود ذاه انا مجربه addEvent ( '1', true ) addEventHandler ( '1', getRootElement ( ), function () if ( getPlayerMoney ( source ) >= 1000 ) then takePlayerMoney ( source, 1000 ) end end ) button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, 'take!', true ) addEventHandler ( 'onClientGUIClick', getRootElement ( ), function ( ) if ( source == button ) then triggerServerEvent ( '1', getLocalPlayer ( ) ) end end ) Link to comment
ABO.SR7777A Posted September 22, 2012 Author Share Posted September 22, 2012 جزاكم الله خير باجربه بس 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