Jump to content

{مطلوب فنكش}


Recommended Posts

السلام عليكم

طلبااتي كتيرة هدي الايام اشفين

على عموم

انا عندي لوحة اببيه لما يضغط زر حق ششراء يتحقق هل لديه 20 مليون

وساعاتو فوق 200

ولو كان متطلبات نفسها يشتريها

=======================

Link to comment

شبااب زي كدا

حق فلوس

addEventHandler('onClientGUIClick',root, 
function() 
if source == ok then 
    local money = getPlayerMoney(thePlayer)                          
    if (money > 20000000) then                                 
        outputChatBox("لديك المال الكافي  للعضوية " .. tostring(money), thePlayer)   
    else 
        outputChatBox("ليس ليديك المال الكافي لشراء", thePlayer)                         
    end 
end 
addCommandHandler("checkMoney", checkMoney)  
  
end 
end 
) 

Link to comment

غير مجرب .

--- # Client Side 
  
addEventHandler("onClientGUIClick",resourceRoot , function ( ) 
if ( source == ok ) then  
triggerServerEvent("CheckMoney",localPlayer) 
    end 
end ); 
  
--- # Server  
  
addEvent("CheckMoney",true) 
addEventHandler("CheckMoney",root, function ( ) 
if ( getPlayerMoney ( source ) >= 20000000 ) then  
outputChatBox("Yes",source,255,255,0,true) 
else 
outputChatBox("No",source,255,255,0,true) 
    end 
end ); 
Link to comment

غير مجرب .

--- # Client Side 
  
addEventHandler("onClientGUIClick",resourceRoot , function ( ) 
if ( source == ok ) then  
triggerServerEvent("CheckMoney",localPlayer) 
    end 
end ); 
  
--- # Server  
  
addEvent("CheckMoney",true) 
addEventHandler("CheckMoney",root, function ( ) 
if ( getPlayerMoney ( source ) >= 20000000 ) then  
outputChatBox("Yes",source,255,255,0,true) 
else 
outputChatBox("No",source,255,255,0,true) 
    end 
end ); 

ض2

نسيت تيقر سيرفر ايفنت

شكرا

اوك ابي متال نفس شكل على ساعات

بتكون كفيتي وووفيتي

:)

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