Jump to content

طلب صغير (اسف على الازعاج ازعجتكم


Recommended Posts

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

افضل شي تستخدم مثل ماقال اخوي عاشق الشرق استخدم ( اكاونت داتا ) بس بتكون ع الحساب نفسه

يعني لو الاعب سجل بـ حساب اخر راح يعطيه فلوس. اما اذا تبي حتي لو يسجل بحساب ثاني خلاص مايعطيه فلوس

SQL استخدم

* setElementData = ماراح تنفع

Link to comment
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
^ كودك غلط ذذ,

+ .رد عاشق الشرق يكفي

نسيت شي

ksa = {} 
    function join() 
      if not ksa[getPlayerSerial] then 
         givePlayerMoney ( source, 30000 ) 
            ksa[getPlayerSerial(source)] = true 
          end 
      end 
addEventHandler ( "onPlayerJoin", getRootElement(), join ) 

Link to comment
^ كودك غلط ذذ,

+ .رد عاشق الشرق يكفي

نسيت شي

ksa = {} 
    function join() 
      if not ksa[getPlayerSerial] then 
         givePlayerMoney ( source, 30000 ) 
            ksa[getPlayerSerial(source)] = true 
          end 
      end 
addEventHandler ( "onPlayerJoin", getRootElement(), join ) 

واذا سوا ريستارت

بيعطيه فلوس خخ

Link to comment

نسيت شي

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

نسيت شي

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

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