Jump to content

طلب كود],'


Recommended Posts

Posted
    addEventHandler ( "onClientGUIClick", ButtonName, 
        function ( --فنكشن  ) 
            if ( getPlayerMoney ( ) >= 100 ) then 
                -- Any thing .. 
            end 
        end, false 
    ) 

Me: SaRE:

SKype :arhabe_07

msn :JnD-@HotMaIl.cOm

msn :JnD@HoTmAiL.CoM

n5h32661.png

  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted
    addEventHandler ( "onClientGUIClick", ButtonName, 
        function ( --فنكشن  ) 
            if ( getPlayerMoney ( ) >= 100 ) then 
                -- Any thing .. 
            end 
        end, false 
    ) 

هذا الكود خربان لا تستخدمه

To Visit Us

Press Here: mtasa://5.9.206.180:22002

b648040241b8f01.png

0d0a7bb38ca13e5.png

Posted
addEventHandler("onClientGUIClick", root, 
function ( thePlayer ) 
    if source == btn then 
        takePlayerMoney( thePlayer, M ) 
    end 
end) 

خذ الكود ذذ

* M = الفلوس اللي تبيه ينسحب

* btn = الزر

Wrong +

Note: Using this function client side (not recommended) will not change a players money server side.

  

Posted
addEventHandler("onClientGUIClick", root, 
function ( thePlayer ) 
    if source == btn then 
        takePlayerMoney( thePlayer, M ) 
    end 
end) 

خذ الكود ذذ

* M = الفلوس اللي تبيه ينسحب

* btn = الزر

Wrong +

Note: Using this function client side (not recommended) will not change a players money server side.

ههههههههههه نسيت لازم كلينت وسيرفر

-- Client 
addEventHandler("onClientGUIClick", root, 
function ( thePlayer ) 
    if source == btn then 
        triggerServerEvent("give",localPlayer,localPlayer) 
    end 
end)  

 

 

 

-- server side 
addEvent("give",true) 
    addEventHandler("give",root, 
        function () 
        takePlayerMoney( thePlayer, M ) 
        end 
    ) 
  

* M = الفلوس اللي تبيه ينسحب

* btn = الزر

To Visit Us

Press Here: mtasa://5.9.206.180:22002

b648040241b8f01.png

0d0a7bb38ca13e5.png

Posted

مشكور ي شباب والله شكلي متعبك ي 6ArHxiMr'3a[Z]eF

Me: SaRE:

SKype :arhabe_07

msn :JnD-@HotMaIl.cOm

msn :JnD@HoTmAiL.CoM

n5h32661.png

Posted

addEventHandler("onClientGUIClick", root, 
function () 
    if localPlayer == btn then 
        triggerServerEvent("give",localPlayer,localPlayer) 
    end 
end) 
  
-- server side 
addEvent("give",true) 
    addEventHandler("give",root, 
        function () 
        takePlayerMoney( thePlayer, M ) 
        end 
) 

جرب الحين

To Visit Us

Press Here: mtasa://5.9.206.180:22002

b648040241b8f01.png

0d0a7bb38ca13e5.png

Posted
addEventHandler("onClientGUIClick", root, 
function () 
    if localPlayer == btn then 
        triggerServerEvent("give",localPlayer,localPlayer) 
    end 
end) 
  
-- server side 
addEvent("give",true) 
    addEventHandler("give",root, 
        function () 
        takePlayerMoney( thePlayer, M ) 
        end 
) 

جرب الحين

xxxxxxxxxxxxxxxxx ??

-- Client Side --

addEventHandler('onClientGUIClick',MyButton, 
    function (      ) 
        triggerServerEvent ( 'aTakeMoney',localPlayer ) 
    end,false 
) 

-- Server Side --

addEvent('aTakeMoney',true) 
addEventHandler('aTakeMoney',root, 
    function (      ) 
        takePlayerMoney ( client,Amount ) 
    end 
) 

لاتنسى تغير الزر و المبلغ ..

MyButton

Amount

  

Posted

xxxxxxxxxxxxxxxxx ??

-- Client Side --

addEventHandler('onClientGUIClick',MyButton, 
    function (      ) 
        triggerServerEvent ( 'aTakeMoney',localPlayer ) 
    end,false 
) 

-- Server Side --

addEvent('aTakeMoney',true) 
addEventHandler('aTakeMoney',root, 
    function (      ) 
        takePlayerMoney ( client,Amount ) 
    end 
) 

لاتنسى تغير الزر و المبلغ ..

MyButton

Amount

takePlayerMoney ( client,Amount ) 

هذي ما فهمتها

يأخذ فلوس الكلينت؟

To Visit Us

Press Here: mtasa://5.9.206.180:22002

b648040241b8f01.png

0d0a7bb38ca13e5.png

Posted

xxxxxxxxxxxxxxxxx ??

-- Client Side --

addEventHandler('onClientGUIClick',MyButton, 
    function (      ) 
        triggerServerEvent ( 'aTakeMoney',localPlayer ) 
    end,false 
) 

-- Server Side --

addEvent('aTakeMoney',true) 
addEventHandler('aTakeMoney',root, 
    function (      ) 
        takePlayerMoney ( client,Amount ) 
    end 
) 

لاتنسى تغير الزر و المبلغ ..

MyButton

Amount

takePlayerMoney ( client,Amount ) 

هذي ما فهمتها

يأخذ فلوس الكلينت؟

ياخذ فلوس اللي اتصل من كلنت

  

Posted

اخييرنـ ضضبط ي عطيكم الف ع ـفيهأ

Me: SaRE:

SKype :arhabe_07

msn :JnD-@HotMaIl.cOm

msn :JnD@HoTmAiL.CoM

n5h32661.png

Posted
    addEventHandler ( "onClientGUIClick", ButtonName, 
        function ( ) 
            if ( getPlayerMoney ( ) >= 100 ) then 
                -- Any thing .. 
            end 
        end, false 
    ) 

هذا الكود خربان لا تستخدمه

هههههههههههههههههههههههههههههههههههههههههههههههههههههه : (

تقدر تقلي الخراب الي فيه يَ بعد قلبي أنت ؟ :mrgreen:

Posted
-- Client Side --
addEventHandler('onClientGUIClick',MyButton, 
    function (      ) 
        triggerServerEvent ( 'aTakeMoney',localPlayer ) 
    end,false 
) 

-- Server Side --

addEvent('aTakeMoney',true) 
addEventHandler('aTakeMoney',root, 
    function (      ) 
        takePlayerMoney ( client,Amount ) 
    end 
) 

لاتنسى تغير الزر و المبلغ ..

MyButton

Amount

المفروض تتحقق من فلوس اللاعب انها أكبر من المبلغ عشان لاتصير فلوسه بالسالب

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
    addEventHandler ( "onClientGUIClick", ButtonName, 
        function ( --فنكشن  ) 
            if ( getPlayerMoney ( ) >= 100 ) then 
                -- Any thing .. 
            end 
        end, false 
    ) 

هذا الكود خربان لا تستخدمه

getPlayerMoney 

هذا الفنكشن بالكلنت بيجيب الفلوس بدون ما تحدد مين فلوسه يجيب فلوس الي ضغط الي هو الكلنت

بس بالسيرفر لازم تحدد فلوس مين الي يتأكد منها :fadein:

My E-mails:

" Manners Maketh Man "

" الأخلاق تصنع الرجل "

░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM !

▂▄▅█████████▅▄▃▂

███████████████████].

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

Posted
  
addEventHandler ( "onClientGUIClick", ButtonName, -- بتن نيم اسم البتن الي تبي يتأاأكد من فلوسه 
    function ( ) 
        if ( getPlayerMoney ( ) >= 100 ) then -- 100 الفلوس 
            -- guiCreateButton  .. 
        end 
    end, false 
) 
  

تم التأأكد من الاكواد

Level in Scripting : 37%

Level in MTA : 100%

Language in English : 100%

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...