Jump to content

تعديل على كود


Recommended Posts

السلام عليكم شباب

المهم

انا عملت مود مو مهم المهم انو ما ياخذ الفلوس

function teleportPlayer() 
    if(source == GUIEditor.staticimage[1]) then 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 500) then 
  
    takePlayerMoney(source,500) --- وهنا بعد 
     
     
  
        outputChatBox ( "تم ", getRootElement(), 255, 0, 0, true ) 
  
    local teleportX, teleportY, teleportZ = 1644.26147, -2256.60547, 13.32457 
    setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ) 
         
         
        else 
        outputChatBox("ليس معك ما يكفى", source, 255, 0, 0, true) 
     
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
  
   
        end 
    end 
end 
addEventHandler("onClientGUIClick", root, teleportPlayer) 
Link to comment
Client

[lua]addEventHandler("onClientGUIClick",guiRoot,function()

 if ( source == GG ) then

  triggerServerEvent("TakeMoney",localPlayer)

 else

  outputChatBox("Yuo Dont Have Moeny !!",255,0,255)

 end

end)

جربه كذا

تسلم حبى

بجد انت كفووو

اسف انى ما ررديت وربى ما كنت على الحاسوب

Link to comment
Client
addEventHandler("onClientGUIClick",guiRoot,function() 
 if ( source == GG ) then 
  triggerServerEvent("TakeMoney",localPlayer) 
 else 
  outputChatBox("Yuo Dont Have Moeny !!",255,0,255) 
 end 
end) 
  
جربه كذا[/quote] 
  
تسلم حبى  
بجد انت كفووو  
اسف انى ما ررديت وربى ما كنت على الحاسوب[/quote] 
  
  
  
  
  
  
  
  
  
ذا حطه ب ملف سيرفر 
  
[lua]Server 
  

addEvent("TakeMoney",true)

addEventHandler("TakeMoney",root,function()

 takePlayerMoney (source,100000)

end)[/lua][/lua]

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