KemoEgypt Posted February 3, 2018 Share Posted February 3, 2018 سلام عليكم الحين مود الساعات الداتا حقه setElementData( v, "Time", tostring( hour )..':'..tostring( min )..':'..tostring( sec ) ) ابي اتحقق ان ساعات اللاعب اكتر من 150 ساعة او اكثر لاكن مو عارف اسويها Link to comment
^iiEcoo'x_) Posted February 3, 2018 Share Posted February 3, 2018 Just now, KemoEgypt said: سلام عليكم الحين مود الساعات الداتا حقه setElementData( v, "Time", tostring( hour )..':'..tostring( min )..':'..tostring( sec ) ) ابي اتحقق ان ساعات اللاعب اكتر من 150 ساعة او اكثر لاكن مو عارف اسويها getPlayerTime تقدر تستخدم يوزفل فنكشن حق نصور getElementData أو عن طريق Link to comment
KemoEgypt Posted February 3, 2018 Author Share Posted February 3, 2018 طيب شكرا لك ولله كيف اسوي كل 24 ساعه بالتدريج يجيه فلوس؟ Link to comment
KemoEgypt Posted February 3, 2018 Author Share Posted February 3, 2018 6 hours ago, KemoEgypt said: طيب شكرا لك ولله كيف اسوي كل 24 ساعه بالتدريج يجيه فلوس؟ مساعده.. Link to comment
KemoEgypt Posted February 3, 2018 Author Share Posted February 3, 2018 @Master_MTA ابي الكود كل لما احد يكمل 24 ساعه بالتدريج يعطيه فلوس مو لما يكون ساعاته اكبر من 24 او كتر Link to comment
SycroX Posted February 4, 2018 Share Posted February 4, 2018 (edited) 2 hours ago, KemoEgypt said: @Master_MTA ابي الكود كل لما احد يكمل 24 ساعه بالتدريج يعطيه فلوس مو لما يكون ساعاته اكبر من 24 او كتر حاول و نساعدك... setTimer getElementData split givePlayerMoney Edited February 4, 2018 by #x1AhMeD,-09 Link to comment
^iiEcoo'x_) Posted February 4, 2018 Share Posted February 4, 2018 setTimer + الطرق الي عطيتك اياها فوق ولما يطلع سوي كذا getTimerDetlis + setAccountData ولما يخش getAccountData Link to comment
#Soking Posted February 4, 2018 Share Posted February 4, 2018 onPlayerJoin setTimer - Table onPlayerQuit isTimer killTimer - Tables Link to comment
KemoEgypt Posted February 4, 2018 Author Share Posted February 4, 2018 انا كل ذا سهل بالنسبه لي, بس فيه شيء مو سهل اني اتحقق من الداتا التحقق من الداتا بيصير كيف كل 24 ساعه ؟ مو 24 ساعه وفوق. Link to comment
iyaad Posted February 4, 2018 Share Posted February 4, 2018 4 minutes ago, KemoEgypt said: انا كل ذا سهل بالنسبه لي, بس فيه شيء مو سهل اني اتحقق من الداتا التحقق من الداتا بيصير كيف كل 24 ساعه ؟ مو 24 ساعه وفوق. يبوي على ذي setTimer Link to comment
KemoEgypt Posted February 4, 2018 Author Share Posted February 4, 2018 getPlayerTime = function ( player ) local time = getElementData ( player, "Time" ) or "0:0:0" if time then return tonumber ( split ( time, ":" ) [1] ), tonumber ( split ( time, ":" ) [2] ), tonumber ( split ( time, ":" ) [3] ) end end setTimer ( function ( ) local data = getPlayerTime ( source ) if data then givePlayerMoney ( source, 500 ) end end, 24*60, 0 ) ما ظبت اخوي Link to comment
KemoEgypt Posted February 4, 2018 Author Share Posted February 4, 2018 @#x1AhMeD,-09 مساعده Link to comment
MrKAREEM Posted February 5, 2018 Share Posted February 5, 2018 (edited) On ٤/٢/٢٠١٨ at 14:39, KemoEgypt said: getPlayerTime = function ( player ) local time = getElementData ( player, "Time" ) or "0:0:0" if time then return tonumber ( split ( time, ":" ) [1] ), tonumber ( split ( time, ":" ) [2] ), tonumber ( split ( time, ":" ) [3] ) end end setTimer ( function ( ) local data = getPlayerTime ( source ) if data then givePlayerMoney ( source, 500 ) end end, 24*60, 0 ) ما ظبت اخوي -- جرب دا ^^ -- function getPlayerTime ( Player ) local TimeData = getElementData(Player,'PlayTime') or '0:0'; if ( TimeData ) then return tonumber(split(TimeData,':')[1]) , tonumber(split(TimeData,':')[2]); end end setTimer ( function ( ) local data = getPlayerTime ( source ) if data then givePlayerMoney ( source, 500 ) end end, 86400000, 0) Edited February 5, 2018 by MrKAREEM Link to comment
#\_oskar_/# Posted February 6, 2018 Share Posted February 6, 2018 كيف الكود يشتغل بدون تحقق ؟ + اشك انه شغال اصلا Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now