Jump to content

تصحيح كود بسيط


Recommended Posts

تصحيح هذا الكود

ابي عند دخول الاعب يعطيه فلوس لكن سويت الداتا حتى لا يخرج ويدخل مرة اخرى وياخد فلوس اكتر

addEventHandler("onPlayerLogin",root, function() 
  
if getElementData(source,"moneynew") = 0 then 
  
  
givePlayerMoney(source,100000) 
setElementData(source,"moneynew") 
outputChatBox("Sulfy Money",source,0,0,255) 
    end 
end) 

Link to comment
addEventHandler("onPlayerLogin",root, function() 
  
if not getAccountData(getPlayerAccount(source),"NoMo") then 
  
playerMoney = givePlayerMoney(source,100000) 
  
setAccountData(getPlayerAccount(source) , "NoMo" ,playerMoney ) 
outputChatBox("Sulfy Money",source,0,0,255) 
    end 
end) 
  

جرب

ليش ما تسويها كذا

  
addEventHandler("onPlayerLogin",root, function() 
  
if not getAccountData(getPlayerAccount(source),"NoMo") then 
  
playerMoney = givePlayerMoney(source,100000) 
  
setAccountData(getPlayerAccount(source) , "NoMo" , true ) 
outputChatBox("Sulfy Money",source,0,0,255) 
    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...