Jump to content

Help !!


Recommended Posts

Client Side

addEventHandler("onClientGUIClick", resourceRoot, function( ) 
    if source == GUIEditor.button[1] then 
        triggerServerEvent("onPlayerBuyPlace", localPlayer, 1642.4000244141, -2238.3999023438, 12.39999961853, 91.98, 250) 
    -- elseif source == Button then -- اذ تبي تضيف مكان زيادة 
        -- triggerServerEvent("onPlayerBuyPlace", localPlayer, x, y, z, rotation, price) 
        -- x, y, z -- الاحداثيات 
        -- rotation -- الاتجاه او الدوران 
        -- price -- السعر 
    end 
end) 

Server Side

addEvent("onPlayerBuyPlace",true) 
addEventHandler("onPlayerBuyPlace", root, function(x, y, z, rotation, price) 
    if getPlayerMoney(source) >= price then 
        takePlayerMoney(source, price) 
        outputChatBox("*****************", source) 
        setElementPosition(source, x, y, z) 
        setElementRotation(source, 0, 0, rotation) 
    else 
        outputChatBox("You Don't Have Money", source) 
    end 
end) 
Link to comment
تيتي مثل مارحتي جيتي !

بلا تيتي بلا خرابيط راح يزبط الكود معه

اشتغل الكود شكرآ من قلبي :mrgreen:

اشتغل اجل :lol:

](*,) الكود يسوي تريقر لكل اللاعبين و يغير مكان كل اللاعبين

Link to comment

اشتغل اجل :lol:

](*,) الكود يسوي تريقر لكل اللاعبين و يغير مكان كل اللاعبين

اتمنى يعني للناس الي مثلك ، تساعد مو تطقطق ع الردود

، هو حاول ب المساعدهه

:wink: ردي عبارة عن مساعدة ويشير إلى وجود مشكلة بالكود

Link to comment

اشتغل اجل :lol:

](*,) الكود يسوي تريقر لكل اللاعبين و يغير مكان كل اللاعبين

اتمنى يعني للناس الي مثلك ، تساعد مو تطقطق ع الردود

، هو حاول ب المساعدهه

:wink: ردي عبارة عن مساعدة ويشير إلى وجود مشكلة بالكود

بس تقدر تجيبه ب اسلوب آفضل وغير ساخر :wink:

Link to comment

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...