Jump to content

تصحيح كود


Recommended Posts

السلام عليكم ورحمة الله وبركاته

مساكم الله بالخير يالربع

ياشباب انا ابي الاعب يسوي الحركه بفلوس

addEventHandler("onClientGUIClick", guiRoot, 
    function() 
        takePlayerMoney(source, 1) 
        if source == GUIEditor_Button[1] then 
            setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
            setTimer(setPedAnimation,5000,1,localPlayer) 
        end 
    end 
) 

ومايجي

Link to comment
    addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            takePlayerMoney(source, 100) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

غير 100

الى المبلغ اللي تبيه

Link to comment
    addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            takePlayerMoney(source, 100) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

غير 100

الى المبلغ اللي تبيه

وش سويت ماسويت شي

نفس الحاجه

Link to comment
   addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            takePlayerMoney(1) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

Link to comment

Or, client

addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            triggerServerEvent("getMoney", localPlayer) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

 

server:

addEvent("getMoney", true) 
addEventHandler("getMoney", root, 
function (thePlayer) 
takePlayerMoney(thePlayer, 1) 
end 

Edited by Guest
Link to comment
   addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            takePlayerMoney(1) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

الكود مانفع

يجي بالفلوس -1

ويسوي الحركه ابيه بفلوس

Link to comment
Or, client
addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            triggerServerEvent("getMoney", localPlayer) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

 

server:

addEvent("getMoney", true) 
addEventHandler("getMoney", root, 
function (thePlayer) 
takePlayerMoney(thePlayer, 1) 
end 

Link to comment
Or, client
addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            triggerServerEvent("getMoney", localPlayer) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

 

server:

addEvent("getMoney", true) 
addEventHandler("getMoney", root, 
function (thePlayer) 
takePlayerMoney(thePlayer, 1) 
end 

ماظبط

Link to comment

client side ----

  
  
addEventHandler("onClientGUIClick", guiRoot, 
function() 
if source == GUIEditor_Button[1] then 
  
triggerServerEvent("moneyy",getLocalPlayer())  
  
end  
  
end  
  
)  
  

server side ----

  
  
addEvent("moneyy",true)  
addEventHandler("moneyy",root,  
function() 
local PlayerMoney = getPlayerMoney(source) 
               if ( PlayerMoney >= 1000) then 
            takePlayerMoney(source, 1000) 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
               else 
        outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) 
               end 
end 
) 
  

Edited by Guest
Link to comment
  
    addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            if source == GUIEditor_Button[1] then 
                local PlayerMoney = getPlayerMoney(source) 
               if ( PlayerMoney >= 1000) then 
            takePlayerMoney(source, 1000) 
               end 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 
  

يابعد حيي ماظبط

Link to comment

Client:

addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            triggerServerEvent("getMoney", localPlayer) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

 

Server:

addEvent("getMoney", true) 
addEventHandler("getMoney", root, 
function (thePlayer) 
 local PlayerMoney = getPlayerMoney(thePlayer) 
  if ( PlayerMoney >= 1) then 
   takePlayerMoney(thePlayer, 1) 
end 
end 

Link to comment
Client:
addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            triggerServerEvent("getMoney", localPlayer) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

 

Server:

addEvent("getMoney", true) 
addEventHandler("getMoney", root, 
function (thePlayer) 
 local PlayerMoney = getPlayerMoney(thePlayer) 
  if ( PlayerMoney >= 1) then 
   takePlayerMoney(thePlayer, 1) 
end 
end 

ماظبط

Link to comment
  
    addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            if source == GUIEditor_Button[1] then 
                local PlayerMoney = getPlayerMoney(source) 
               if ( PlayerMoney >= 1000) then 
            takePlayerMoney(source, 1000) 
               end 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 
  

    "===|OSAMA|===" author="By ===|OSAMA|===" description="Script" version="1.5" type="script">

            if playerMoney >= 10000 then 
             takePlayerMoney (10000) 
            moveObject ( gate, 2000 , -2509.2658691406, -2945.6040039063, 16.357078552246 ) 
            outputChatBox("* تم فتح البوابة !!",0,255,0,true) 
            elseif playerMoney <= 10000 then 

Edited by Guest
Link to comment
Client:
addEventHandler("onClientGUIClick", guiRoot, 
        function() 
            triggerServerEvent("getMoney", localPlayer) 
            if source == GUIEditor_Button[1] then 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
            end 
        end 
    ) 

 

Server:

addEvent("getMoney", true) 
addEventHandler("getMoney", root, 
function (thePlayer) 
 local PlayerMoney = getPlayerMoney(thePlayer) 
  if ( PlayerMoney >= 1) then 
   takePlayerMoney(thePlayer, 1) 
end 
end 

<meta> 
    <script src="server.lua" type="server" /> 
    <script src="client.lua" type="client" /> 
</meta> 

Link to comment
client side ----
  
  
addEventHandler("onClientGUIClick", guiRoot, 
function() 
if source == GUIEditor_Button[1] then 
  
triggerServerEvent("moneyy",getLocalPlayer())  
  
end  
  
end  
  
)  
  

server side ----

  
  
addEvent("moneyy",true)  
addEventHandler("moneyy",root,  
function() 
local PlayerMoney = getPlayerMoney(source) 
               if ( PlayerMoney >= 1000) then 
            takePlayerMoney(source, 1000) 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
               else 
        outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) 
               end 
end 
) 
  

^^ هذا ما جربته بس مضبوط 100 %

^^^ لوول ..

Link to comment
client side ----
  
  
addEventHandler("onClientGUIClick", guiRoot, 
function() 
if source == GUIEditor_Button[1] then 
  
triggerServerEvent("moneyy",getLocalPlayer())  
  
end  
  
end  
  
)  
  

server side ----

  
  
addEvent("moneyy",true)  
addEventHandler("moneyy",root,  
function() 
local PlayerMoney = getPlayerMoney(source) 
               if ( PlayerMoney >= 1000) then 
            takePlayerMoney(source, 1000) 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
               else 
        outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) 
               end 
end 
) 
  

^^ هذا ما جربته بس مضبوط 100 %

^^^ لوول ..

خشمك ياذيبان

Link to comment
client side ----
  
  
addEventHandler("onClientGUIClick", guiRoot, 
function() 
if source == GUIEditor_Button[1] then 
  
triggerServerEvent("moneyy",getLocalPlayer())  
  
end  
  
end  
  
)  
  

server side ----

  
  
addEvent("moneyy",true)  
addEventHandler("moneyy",root,  
function() 
local PlayerMoney = getPlayerMoney(source) 
               if ( PlayerMoney >= 1000) then 
            takePlayerMoney(source, 1000) 
                setPedAnimation(localPlayer, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,localPlayer) 
               else 
        outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) 
               end 
end 
) 
  

^^ هذا ما جربته بس مضبوط 100 %

^^^ لوول ..

طيب وين الحقوق ي بطل ؟

Link to comment
ظبط بس الحركه ماتصير

يسحب فلوس وكل شي بس مايتحرك

addEvent("moneyy",true) 
addEventHandler("moneyy",root, 
function() 
local PlayerMoney = getPlayerMoney(source) 
               if ( PlayerMoney >= 1000) then 
            takePlayerMoney(source, 1000) 
                setPedAnimation(source, "BAR", "dnk_stndm_loop") 
                setTimer(setPedAnimation,5000,1,source) 
               else 
        outputChatBox("You don't have $1000 to buy This !!", source, 255, 0, 0, true) 
               end 
end 
) 

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