Jump to content

السلام عليكم مساعده :)


Recommended Posts

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

اليوم ابي المود حقي يحفظ وهو مايحفظ

المحاوله حقتي 

 

addEventHandler('onPlayerLogin',root, 
function (_,acc)

local accplr=getPlayerAccount(source)
local accD = getAccountData ( acc , 'Save:Diamond12' ) 

if  isGuestAccount(accplr) then return end
if ( accD ) then 
setElementData ( source , 'Diamond' , accD )
else
setElementData ( source , 'Diamond' , 0)
end
end
)

 

Link to comment
Just now, #AL-J7EEEM said:

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

اليوم ابي المود حقي يحفظ وهو مايحفظ

المحاوله حقتي 

 


addEventHandler('onPlayerLogin',root, 
function (_,acc)

local accplr=getPlayerAccount(source)
local accD = getAccountData ( acc , 'Save:Diamond12' ) 

if  isGuestAccount(accplr) then return end
if ( accD ) then 
setElementData ( source , 'Diamond' , accD )
else
setElementData ( source , 'Diamond' , 0)
end
end
)

 

جرب ...


 

addEventHandler('onPlayerLogin',root, 
function (_, acc )
if acc then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end
)

addEventHandler('onPlayerQuit',root, 
function ()

local acc == getPlayerAccount ( source )

if acc then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end
)

 

Link to comment
On 3/25/2017 at 14:40, Killer Project said:

جرب ...


 


addEventHandler('onPlayerLogin',root, 
function (_, acc )
if acc then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end
)

addEventHandler('onPlayerQuit',root, 
function ()

local acc == getPlayerAccount ( source )

if acc then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end
)

 

مشكله في السطر رقم 156 جاي كذا ==

السطر رقم 156

local acc == getPlayerAccount ( source )

 

Link to comment

 

On ٢٥‏/٣‏/٢٠١٧ at 15:40, Killer Project said:

جرب ...


 


addEventHandler('onPlayerLogin',root, 
function (_, acc )
if acc then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end
)

addEventHandler('onPlayerQuit',root, 
function ()

local acc == getPlayerAccount ( source )

if acc then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end
)

 

افرض اني سجلت الخروج وبعدين طلعت من السيرفر وش بيصير؟

وسطر 3 ماله داعي .

Edited by Sha67
Link to comment
3 hours ago, Sha67 said:

 

افرض اني سجلت الخروج وبعدين طلعت من السيرفر وش بيصير؟

وسطر 3 ماله داعي .

 


تقصد كدة ؟
@Sha67


 

function onLogin (_, acc )
if acc and not isGuestAccount ( acc ) then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end
addEventHandler('onPlayerLogin',root, onLogin )

function onQuit ()

local acc == getPlayerAccount ( source )

if acc and not isGuestAccount ( acc ) then then

setAccountData ( acc , "Diamond" , (getAccountData ( acc , "Diamond" ) or 0) )

end
end

addEventHandler('onPlayerQuit',root, onQuit )
addEventHandler('onPlayerLogout',root, onQuit )

 

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