Jump to content

XxX[مساعدة]XxX


Doffy

Recommended Posts

Posted

ممكن مساعدة في هذا الكود انا ابيه يعطيك فلوس كل نص ساعة نقود حافز بس مو عارف اضبط الكود لانه حتي ونا مسجل يقولي برضو لازم تسجيل الدخول

addEvent ("giveM",true)
addEventHandler ("giveM",root,
function ()
if not isGuestAccount(getPlayerAccount(source)) then return outputChatBox ("يجب تسجيل الدخول اولاً",source,255,5,5) end
if not getAccountData (getPlayerAccount(source),"Mon") then
setAccountData (getPlayerAccount(source),"Mon",true)
givePlayerMoney (source,50000)
l = source
outputChatBox ("تم إعطائك نقود",source,2,255,5)
setTimer(function()
givePlayerMoney(l,50000)
outputChatBox ("تم إعطائك نقود",l,2,255,5)
if getAccountData (getPlayerAccount(source),"Mon") then setAccountData (getPlayerAccount(source),"Mon",false) end
end,30*60000,0)
addEventHandler ("onPlayerLogout",source,
function (_,acc)
setAccountData (acc,"Mon",false)
end)
else
outputChatBox ("تم تفعيل الطريقة",source,255,5,5)
end
end
)

Posted

جرب

addEvent ("giveM",true)
addEventHandler ("giveM",root,
  function (player)
       local account = getPlayerAccount(player)
       if  not ( isGuestAccount( accountName ) ) then         
       if not getAccountData (account,"Mon") then
       setAccountData (account,"Mon",true)
       givePlayerMoney (player,50000)
       outputChatBox ("تم إعطائك نقود",player,2,255,5)
       end
    end
end
)

 function removeAccountData ( playerAccount, data )
    if ( playerAccount ~= "" ) and ( data ~= "" ) then
        if getAccount ( playerAccount ) then
			local dataName = getAccountData(playerAccount, data)
			if ( dataName ~= nil ) or ( dataName ~= "" ) then
				setAccountData(playerAccount, data, false)
			end
		end
	end
end 

setTimer(function(player)
      local account = getPlayerAccount(player)
      if  not ( isGuestAccount( accountName ) ) then         
      local data =  getAccountData (account,"Mon")
      if ( data == "true" )
      removeAccountData ( account , "Mon")
      givePlayerMoney(player,50000)
      outputChatBox ("تم إعطائك نقود",player,2,255,5)
end,30*60000,0)


addEventHandler ("onPlayerLogout",source,
    function (_,acc)
      removeAccountData ( acc , "Mon")
  end
)

 

- Hashemite Kingdom Of Jordan -

Posted
52 minutes ago, KinG_Himoo12 said:

ممكن مساعدة في هذا الكود انا ابيه يعطيك فلوس كل نص ساعة نقود حافز بس مو عارف اضبط الكود لانه حتي ونا مسجل يقولي برضو لازم تسجيل الدخول

addEvent ("giveM",true)
addEventHandler ("giveM",root,
function ()
if not isGuestAccount(getPlayerAccount(source)) then return outputChatBox ("يجب تسجيل الدخول اولاً",source,255,5,5) end
if not getAccountData (getPlayerAccount(source),"Mon") then
setAccountData (getPlayerAccount(source),"Mon",true)
givePlayerMoney (source,50000)
l = source
outputChatBox ("تم إعطائك نقود",source,2,255,5)
setTimer(function()
givePlayerMoney(l,50000)
outputChatBox ("تم إعطائك نقود",l,2,255,5)
if getAccountData (getPlayerAccount(source),"Mon") then setAccountData (getPlayerAccount(source),"Mon",false) end
end,30*60000,0)
addEventHandler ("onPlayerLogout",source,
function (_,acc)
setAccountData (acc,"Mon",false)
end)
else
outputChatBox ("تم تفعيل الطريقة",source,255,5,5)
end
end
)

Quote
Quote

 

 

اخوي انا ابيه اول ما تضغط علي بوتون مو بالشات 

Posted (edited)
6 minutes ago, KinG_Himoo12 said:

اخوي انا ابيه اول ما تضغط علي بوتون مو بالشات 

آطرح الكود حق الكلينت

Edited by Abu-Solo

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Posted
Just now, Abu-Solo said:

آطرح الكود حق الكلينت

خذ
addEventHandler("onClientGUIClick",GUIEditor.button[2],
function()
triggerServerEvent ("giveM",localPlayer)
end,false)

 

Posted (edited)
addEvent("giveM",true)
addEventHandler("giveM",root,function()
    acc=getPlayerAccount(source)
   if not isGuestAccount(acc) then
      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end
      setAccountData(acc,"mmtake",true)
      givePlayerMoney(source,50000)
      setTimer(removeAccountData,1000*60*30,1,acc,"mmtake")
              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60*30,1)

    
    end
    end
  )

غير مجرب جرب وعطني خبر

Edited by Master_MTA

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted

Client 

addEventHandler("onClientGUIClick",root,
   function()
      if ( source == GUIEditor.button[2] ) then
      triggerServerEvent ("giveM",localPlayer)
    end
)

 

Server 

addEvent ("giveM",true)
addEventHandler ("giveM",root,
  function (player)
       local account = getPlayerAccount(player)
       if  not ( isGuestAccount( accountName ) ) then         
       if not getAccountData (account,"Mon") then
       setAccountData (account,"Mon",true)
       givePlayerMoney (player,50000)
       outputChatBox ("تم إعطائك نقود",player,2,255,5)
       end
    end
end
)

 function removeAccountData ( playerAccount, data )
    if ( playerAccount ~= "" ) and ( data ~= "" ) then
        if getAccount ( playerAccount ) then
			local dataName = getAccountData(playerAccount, data)
			if ( dataName ~= nil ) or ( dataName ~= "" ) then
				setAccountData(playerAccount, data, false)
			end
		end
	end
end 

setTimer(function(player)
      local account = getPlayerAccount(player)
      if  not ( isGuestAccount( accountName ) ) then         
      local data =  getAccountData (account,"Mon")
      if ( data == "true" )
      removeAccountData ( account , "Mon")
      givePlayerMoney(player,50000)
      outputChatBox ("تم إعطائك نقود",player,2,255,5)
end,30*60000,0)


addEventHandler ("onPlayerLogout",source,
    function (_,acc)
      removeAccountData ( acc , "Mon")
  end
)

 

- Hashemite Kingdom Of Jordan -

Posted
7 minutes ago, #_iMr,[E]coo said:

Client 


addEventHandler("onClientGUIClick",root,
   function()
      if ( source == GUIEditor.button[2] ) then
      triggerServerEvent ("giveM",localPlayer)
    end
)

 

Server 


addEvent ("giveM",true)
addEventHandler ("giveM",root,
  function (player)
       local account = getPlayerAccount(player)
       if  not ( isGuestAccount( accountName ) ) then         
       if not getAccountData (account,"Mon") then
       setAccountData (account,"Mon",true)
       givePlayerMoney (player,50000)
       outputChatBox ("تم إعطائك نقود",player,2,255,5)
       end
    end
end
)

 function removeAccountData ( playerAccount, data )
    if ( playerAccount ~= "" ) and ( data ~= "" ) then
        if getAccount ( playerAccount ) then
			local dataName = getAccountData(playerAccount, data)
			if ( dataName ~= nil ) or ( dataName ~= "" ) then
				setAccountData(playerAccount, data, false)
			end
		end
	end
end 

setTimer(function(player)
      local account = getPlayerAccount(player)
      if  not ( isGuestAccount( accountName ) ) then         
      local data =  getAccountData (account,"Mon")
      if ( data == "true" )
      removeAccountData ( account , "Mon")
      givePlayerMoney(player,50000)
      outputChatBox ("تم إعطائك نقود",player,2,255,5)
end,30*60000,0)


addEventHandler ("onPlayerLogout",source,
    function (_,acc)
      removeAccountData ( acc , "Mon")
  end
)

 

موب شغال

20 minutes ago, Master_MTA said:

addEvent("giveM",true)
addEventHandler("giveM",root,function()
    acc=getPlayerAccount(source)
   if not isGuestAccount(acc) then
      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end
      setAccountData(acc,"mmtake",true)
      givePlayerMoney(source,50000)
      setTimer(removeAccountData,1000*60*30,1,acc,"mmtake")
              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60*30,1)

    
    end
    end
  )

غير مجرب جرب وعطني خبر

ولا ذا كمان شغال

Posted (edited)
29 minutes ago, Master_MTA said:

addEvent("giveM",true)
addEventHandler("giveM",root,function()
    acc=getPlayerAccount(source)
   if not isGuestAccount(acc) then
      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end
      setAccountData(acc,"mmtake",true)
      givePlayerMoney(source,50000)
      setTimer(removeAccountData,1000*60*30,1,acc,"mmtake")
              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60*30,1)

    
    end
    end
  )

غير مجرب جرب وعطني خبر

تعديل بسيط

addEvent("giveM",true)
addEventHandler("giveM",root,function()
    acc=getPlayerAccount(source)
   if not isGuestAccount(acc) then
      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end
      setAccountData(acc,"mmtake",true)
      givePlayerMoney(source,50000)
      setTimer(setAccountData,1000*60*30,1,acc,"mmtake",false)
              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60*30,1)

    
    end
    end
  )

@KinG_Himoo12

Edited by Master_MTA

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
1 minute ago, Master_MTA said:

تعديل بسيط


addEvent("giveM",true)addEventHandler("giveM",root,function()    acc=getPlayerAccount(source)   if not isGuestAccount(acc) then      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end      setAccountData(acc,"mmtake",true)      givePlayerMoney(source,50000)      setTimer(setAccountData,1000*60*30,1,acc,"mmtake",false)              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60*30,1)        end    end  )

 

برضو موب شغال :@

Posted (edited)

يا غالي انتظرت نص ساعه انت؟

وهل انت مسجل؟

وهل عطاك فلوس؟

@KinG_Himoo12

Edited by Master_MTA

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
1 minute ago, Master_MTA said:

يا غالي انتظرت نص ساعه انت؟

وهل انت مسجل؟

@KinG_Himoo12

لا انا خليت الوقت 1 دقيقة وانتظرت :@ وما جاني شي فهمت

Posted (edited)
2 minutes ago, KinG_Himoo12 said:

لا انا خليت الوقت 1 دقيقة وانتظرت :@ وما جاني شي فهمت

كيف خليت الوقت 1 دق اطرح بعد التعديل؟

@KinG_Himoo12

Edited by Master_MTA

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
2 minutes ago, Master_MTA said:

كيف خليت الوقت 1 دق اطرح بعد التعديل؟

addEvent("giveM",true)
addEventHandler("giveM",root,function()
    acc=getPlayerAccount(source)
   if not isGuestAccount(acc) then
      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end
      setAccountData(acc,"mmtake",true)
      givePlayerMoney(source,50000)
      setTimer(setAccountData,1*60*30,1,acc,"mmtake",false)
              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60*30,1)
    
    end
    end
  )

Posted (edited)

استخدم 

<>

اولا

ثانيا

  
addEvent("giveM",true)
addEventHandler("giveM",root,function()
    acc=getPlayerAccount(source)
   if not isGuestAccount(acc) then
      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end
      setAccountData(acc,"mmtake",true)
      outputChatBox("#33ff00 اخذت النقود",source,255,255,255,true)
      givePlayerMoney(source,50000)
     setTimer(setAccountData,1000*60,1,acc,"mmtake",false)-----------------كذا دقيقه
              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60,1)-----------كذا دقيقه
    
    end
    end
  )

@KinG_Himoo12

بدله بالكود اللي معك وقولي لما تضغط الزر يجيك رساله بالشات

اخذت النقود

Edited by Master_MTA

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
2 hours ago, Master_MTA said:

استخدم 

<>

اولا

ثانيا


  addEvent("giveM",true)addEventHandler("giveM",root,function()    acc=getPlayerAccount(source)   if not isGuestAccount(acc) then      if getAccountData(acc,"mmtake")==true then return outputChatBox("#ff0000لقد اخذت النقود من قبل",source,255,255,255,true)end      setAccountData(acc,"mmtake",true)      outputChatBox("#33ff00 اخذت النقود",source,255,255,255,true)      givePlayerMoney(source,50000)     setTimer(setAccountData,1000*60,1,acc,"mmtake",false)-----------------كذا دقيقه              setTimer(outputChatBox("#33ff00يمكنك الان اخذ النقود مره اخرى",source,255,255,255,true),1000*60,1)-----------كذا دقيقه        end    end  )

@KinG_Himoo12

بدله بالكود اللي معك وقولي لما تضغط الزر يجيك رساله بالشات

اخذت النقود

موب شغااااااااال -_-

Posted

سويتهـ لك لما يضغط عالزر يقفلهـ وبعد وقت معين يفتحهـ 

 

Client Side !

 

function guiAntiFlood(element, timer) -- To Mezo !
    if getElementType ( element ) == "gui-button" then
        local atimer = tonumber(timer)
        if atimer == nil or atimer == '' or not tonumber(atimer) then
            error("Bad Argument the Argument 2 must number")
        else
        end
        guiSetEnabled(element,false)
        setTimer(function()
        guiSetEnabled(element,true)
        end,tonumber(atimer),1)
    else
        error("Bad Argument 1 the element must button")
  end
end



addEventHandler ( 'onClientGUIClick',root, -- حدث عند الضغط على زر
  function () -- وظيفة
if ( source == GUIEditor.button[2] ) then -- نتحقق من اسم الزر
triggerServerEvent ( "money", localPlayer ) -- ترايقر للسيرفر عشان ناخذ فلوس
guiAntiFlood(GUIEditor.button[2],1800000) -- بعد نص ساعة يفتح الزر 
end -- نهاية if
end -- نهاية الوظيفة
) -- قوس الوظيفة

 

addEvent ( "money", true ) -- نستقبل الترايقر
addEventHandler ( "money", root, -- نستقبل الترايقر
 function (    ) -- وظيفة
        givePlayerMoney(source,5000) -- اعطاء الاعب فلوس
end -- نهاية الوظيفة
 ) -- قوس الوظيفة

 

- Hashemite Kingdom Of Jordan -

Posted
2 hours ago, #_iMr,[E]coo said:

سويتهـ لك لما يضغط عالزر يقفلهـ وبعد وقت معين يفتحهـ 

 

Client Side !

 


function guiAntiFlood(element, timer) -- To Mezo !    if getElementType ( element ) == "gui-button" then        local atimer = tonumber(timer)        if atimer == nil or atimer == '' or not tonumber(atimer) then            error("Bad Argument the Argument 2 must number")        else        end        guiSetEnabled(element,false)        setTimer(function()        guiSetEnabled(element,true)        end,tonumber(atimer),1)    else        error("Bad Argument 1 the element must button")  endendaddEventHandler ( 'onClientGUIClick',root, -- حدث عند الضغط على زر  function () -- وظيفةif ( source == GUIEditor.button[2] ) then -- نتحقق من اسم الزرtriggerServerEvent ( "money", localPlayer ) -- ترايقر للسيرفر عشان ناخذ فلوسguiAntiFlood(GUIEditor.button[2],1800000) -- بعد نص ساعة يفتح الزر end -- نهاية ifend -- نهاية الوظيفة) -- قوس الوظيفة

 


addEvent ( "money", true ) -- نستقبل الترايقرaddEventHandler ( "money", root, -- نستقبل الترايقر function (    ) -- وظيفة        givePlayerMoney(source,5000) -- اعطاء الاعب فلوسend -- نهاية الوظيفة ) -- قوس الوظيفة

 

انت جربته يا صديق ؟

Posted
17 hours ago, #_iMr,[E]coo said:

سويتهـ لك لما يضغط عالزر يقفلهـ وبعد وقت معين يفتحهـ 

 

Client Side !

 


function guiAntiFlood(element, timer) -- To Mezo !    if getElementType ( element ) == "gui-button" then        local atimer = tonumber(timer)        if atimer == nil or atimer == '' or not tonumber(atimer) then            error("Bad Argument the Argument 2 must number")        else        end        guiSetEnabled(element,false)        setTimer(function()        guiSetEnabled(element,true)        end,tonumber(atimer),1)    else        error("Bad Argument 1 the element must button")  endendaddEventHandler ( 'onClientGUIClick',root, -- حدث عند الضغط على زر  function () -- وظيفةif ( source == GUIEditor.button[2] ) then -- نتحقق من اسم الزرtriggerServerEvent ( "money", localPlayer ) -- ترايقر للسيرفر عشان ناخذ فلوسguiAntiFlood(GUIEditor.button[2],1800000) -- بعد نص ساعة يفتح الزر end -- نهاية ifend -- نهاية الوظيفة) -- قوس الوظيفة

 


addEvent ( "money", true ) -- نستقبل الترايقرaddEventHandler ( "money", root, -- نستقبل الترايقر function (    ) -- وظيفة        givePlayerMoney(source,5000) -- اعطاء الاعب فلوسend -- نهاية الوظيفة ) -- قوس الوظيفة

 

شكرا حب الكود اشتغل 100% تمام

Posted
23 hours ago, KinG_Himoo12 said:

خذ
addEventHandler("onClientGUIClick",GUIEditor.button[2],
function()
triggerServerEvent ("giveM",localPlayer)
end,false)

 

:eek::eek:

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...