Bassam*Syria Posted March 28, 2014 Share Posted March 28, 2014 ابغة لما يدخل الاعب اول مرة عسيرفر ياخذ 30 الف بس مب كل ما يدخل ياخذ بس اول مرة يدخل الاعب اي مساعدة؟ Link to comment
abu5lf Posted March 28, 2014 Share Posted March 28, 2014 setAccountData( ) -- يمديك تسوي ب الاكونت داتا لكن اذا سجل دخوله الاعب في حسابه * وهذي اسهل طريقة لك لكن يمديك تسويها عبر SQL من دون يسجل حساب ويتحقق اذا دخل الاعب Link to comment
™!>VàLéNTiNô<!™ Posted March 29, 2014 Share Posted March 29, 2014 ممكن عن طريق SQL او حفظ السيريال حق اللاعب Link to comment
ALw7sH Posted March 30, 2014 Share Posted March 30, 2014 function join() join1 = getElementData ( source, "join1") if not join1 then givePlayerMoney ( source, 30000 ) setElementData ( source, "join1", true ) end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) Link to comment
iPrestege Posted March 30, 2014 Share Posted March 30, 2014 function join() join1 = getElementData ( source, "join1") if not join1 then givePlayerMoney ( source, 30000 ) setElementData ( source, "join1", true ) end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) الداتا ماتثبت .. تروح لا طلع .. Link to comment
</Mr.Tn6eL> Posted March 30, 2014 Share Posted March 30, 2014 table getPlayerSerial لكن السريال يروح لما تحدث المود Link to comment
ΞĪŚŚÀ Posted March 30, 2014 Share Posted March 30, 2014 " onPlayerJoin " setElementData givePlayerMoney Link to comment
!#NssoR_) Posted March 30, 2014 Share Posted March 30, 2014 افضل شي تستخدم مثل ماقال اخوي عاشق الشرق استخدم ( اكاونت داتا ) بس بتكون ع الحساب نفسه يعني لو الاعب سجل بـ حساب اخر راح يعطيه فلوس. اما اذا تبي حتي لو يسجل بحساب ثاني خلاص مايعطيه فلوس SQL استخدم * setElementData = ماراح تنفع Link to comment
</Mr.Tn6eL> Posted March 30, 2014 Share Posted March 30, 2014 ksa = {} function join() if not ksa[getPlayerSerial] then givePlayerMoney ( source, 30000 ) ksa[getPlayerSerial] = true end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) Link to comment
فاّرس Posted March 30, 2014 Share Posted March 30, 2014 ^ كودك غلط ذذ, + .رد عاشق الشرق يكفي Link to comment
abu5lf Posted March 30, 2014 Share Posted March 30, 2014 addEventHandler( 'onResourceStart', resourceRoot, function( ) executeSQLQuery( 'CREATE TABLE IF NOT EXISTS givePlayerMoney( PlayerSreial TEXT )' ) end ) addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) local Result = executeSQLQuery( 'SELECT * FROM givePlayerMoney WHERE PlayerSreial = ? ', getPlayerSerial( source ) ) if( Result )and( type( Result ) == 'table' )and( #Result > 0 )then return else givePlayerMoney( source, 30000 ) executeSQLQuery( 'INSERT INTO givePlayerMoney( PlayerSreial ) VALUES( ? )', getPlayerSerial( source ) ) end end ) Link to comment
</Mr.Tn6eL> Posted March 31, 2014 Share Posted March 31, 2014 ^ كودك غلط ذذ,+ .رد عاشق الشرق يكفي نسيت شي ksa = {} function join() if not ksa[getPlayerSerial] then givePlayerMoney ( source, 30000 ) ksa[getPlayerSerial(source)] = true end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) Link to comment
xFace[B]ook Posted March 31, 2014 Share Posted March 31, 2014 ^ كودك غلط ذذ,+ .رد عاشق الشرق يكفي نسيت شي ksa = {} function join() if not ksa[getPlayerSerial] then givePlayerMoney ( source, 30000 ) ksa[getPlayerSerial(source)] = true end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) واذا سوا ريستارت بيعطيه فلوس خخ Link to comment
abu5lf Posted March 31, 2014 Share Posted March 31, 2014 نسيت شي ksa = {} function join() if not ksa[getPlayerSerial] then givePlayerMoney ( source, 30000 ) ksa[getPlayerSerial(source)] = true end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) سطر 3 Link to comment
</Mr.Tn6eL> Posted March 31, 2014 Share Posted March 31, 2014 نسيت شي ksa = {} function join() if not ksa[getPlayerSerial] then givePlayerMoney ( source, 30000 ) ksa[getPlayerSerial(source)] = true end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) سطر 3 هههه صلحت سطر وسيبت سطر ksa = {} function join() if not ksa[getPlayerSerial(source)] then givePlayerMoney ( source, 30000 ) ksa[getPlayerSerial(source)] = true end end addEventHandler ( "onPlayerJoin", getRootElement(), join ) 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