N3xT

Members
  • Content count

    1,819
  • Joined

  • Last visited

  • Days Won

    11

N3xT last won the day on June 22

N3xT had the most liked content!

Community Reputation

360 Superstar

About N3xT

  • Rank
    Jacker
  • Birthday April 7

Details

  • Location
    Saudi Arabia - Taif
  • Occupation
    Developer

Recent Profile Visitors

2,592 profile views
  1. طلب كود بسيط

    انت مسوي الجدول للروت، يعني اي واحد يكتب راح يقفل الكوماند للجميع مدري اذا صاحب الموضوع يبي الكود كذا ولا لا
  2. مساعده ضروري جدا

    هذا المنتدى ليس لطلب السكربتات, حاول تسويه ونساعدك
  3. قاعد اجرب حركة, ومدري اذا بتظبط ولا لا لكن جرب الكود ورد علي executeSQLQuery("CREATE TABLE IF NOT EXISTS 3ajel ( myText TEXT, playerName TEXT )") addCommandHandler("AdminMsg", function ( player, cmd, ... ) if not ( isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( isPlayerAdmin ( player ) ) then local msg = {...} local message = table.concat(msg, " ") setElementData ( resourceRoot, "Have_", true ) setElementData ( resourceRoot, "Msg_", message ) if ( getElementData ( player, "Name" ) and getElementData ( player, "Name" ) ~= false ) then setElementData ( resourceRoot, "By_", getElementData ( player, "Name" )) else setElementData ( resourceRoot, "By_", getPlayerName ( player )) end else outputChatBox("* You Are Not Admin !", player, 255, 0, 0, true) end else outputChatBox("* Please Login !", player, 255, 0, 0, true) end end) function myEvents () if ( eventName == "onResourceStop" ) then if ( getElementData ( resourceRoot, "Msg_" ) ~= "" and getElementData ( resourceRoot, "By_" ) ~= "" ) then local result = executeSQLQuery ( 'SELECT * FROM 3ajel' ) if ( #result == 0 ) then executeSQLQuery("INSERT INTO 3ajel ( myText, playerName ) VALUES( ?, ? )", getElementData ( resourceRoot, "Msg_" ) , getElementData ( resourceRoot, "By_" ) ) else executeSQLQuery("UPDATE 3ajel SET myText=?, playerName=?", getElementData ( resourceRoot, "Msg_" ), getElementData ( resourceRoot, "By_" ) ) end end elseif ( eventName == "onResourceStart" ) then local result = executeSQLQuery ( 'SELECT * FROM 3ajel' ) if ( #result ~= 0 ) then setElementData ( resourceRoot, "Have_", true ) setElementData ( resourceRoot, "Msg_", result[1].myText ) setElementData ( resourceRoot, "By_", result[1].playerName ) end end end addEventHandler("onResourceStop", root, myEvents) addEventHandler("onResourceStart", root, myEvents)
  4. PlayTime

    addEventHandler ( "onClientGUIClick" , root, function ( ) if ( source == button1 ) then triggerServerEvent("addTime", localPlayer, getPlayerName ( localPlayer ), 20) end end )
  5. طلب تعديل كود سهل

    انسخ الكود كامل مثل اللي فوق
  6. تعديل كود او تصحيح

    مافيها شيء لو سألت, لكن الواحد يحاول يحل مشكلته بنفسه قبل ما يسأل ويبحث طلباتكم ومشاكلكم كلها موجودة بالقسم ومحلولة الواحد لو يبحث شوي بس حصل اجابة
  7. مساعدة في كود بسيط

    لازم تسوي تريقر للكلنت ولا ضيف الحدث حق الموت بالكلنت onClientPlayerWasted
  8. مساعدة في كود بسيط

    حطه مع كودك اللي فوق
  9. مساعدة في كود بسيط

    يعني ذا نص كود ولا وش؟
  10. تعديل كود او تصحيح

    اللي اعرفه ذا المنتدى للمساعدة مو لتنفيذ الطلبات الواحد اذا ما ظبط كوده يحاول يصلحه بنفسه مو اي كود ما يشتغل معي يلا على المنتدى واسوي موضوع؟ وحالياً صاير المنتدى كيف اسوي وكيف الطريقة وكيف اصلح, طيب ليه ما تحاول تسويه بنفسك؟
  11. مساعدة في كود بسيط

    addEventHandler("onPlayerWasted", root, function ( ) if ( getElementAlpha ( source ) ~= 255 ) then setElementAlpha ( source, 255 ) end end )
  12. مساعده في كود

    حياك
  13. مساعده في كود

    جرب كذا addEvent("giveDailySalary", true) addEventHandler("giveDailySalary", root, function( ) if isTimer( TimeDaySet ) then outputChatBox( "#dddddd ≈ [ Bank ]#ff0000 Please Try Again After 24 Hours", source, 0, 0, 0, true ) return end outputChatBox( "#00ffff Salary Was Successfully Taken ✔", source, 0, 0, 0, true ) givePlayerMoney( source, 9000 ) TimeDaySet = setTimer( function() end, 86400000, 1 ) end ) function myEvents () if ( eventName == "onPlayerLogin" ) then local playerSerial = getPlayerSerial ( source ) local checkSQL = executeSQLQuery ( 'SELECT * FROM SQLTst WHERE SerialP=?' , playerSerial ) if ( #checkSQL ~= 0 ) then if ( isTimer ( TimeDaySet ) ) then killTimer ( TimeDaySet ) end TimeDaySet = setTimer( function() end, checkSQL[1].Timer, 1 ) end elseif ( eventName == "onPlayerQuit" ) then local playerSerial = getPlayerSerial ( source ) local checkSQL = executeSQLQuery ( 'SELECT * FROM SQLTst WHERE SerialP=?' , playerSerial ) if ( isTimer ( TimeDaySet ) ) then local myTimer = getTimerDetails ( TimeDaySet ) if ( myTimer ) then if ( #checkSQL == 0 ) then executeSQLQuery( "INSERT INTO SQLTst ( Timer, SerialP ) VALUES( ? , ? )", myTimer, playerSerial ) else executeSQLQuery("UPDATE SQLTst SET Timer=? WHERE SerialP=?", myTimer, playerSerial ) end end end elseif ( eventName == "onResourceStop" ) then for k, v in ipairs ( getElementsByType ( "player" ) ) do local playerSerial = getPlayerSerial ( v ) local checkSQL = executeSQLQuery ( 'SELECT * FROM SQLTst WHERE SerialP=?' , playerSerial ) if ( isTimer ( TimeDaySet ) ) then local myTimer = getTimerDetails ( TimeDaySet ) if ( myTimer ) then if ( #checkSQL == 0 ) then executeSQLQuery( "INSERT INTO SQLTst ( Timer, SerialP ) VALUES( ? , ? )", myTimer, playerSerial ) else executeSQLQuery("UPDATE SQLTst SET Timer=? WHERE SerialP=?", myTimer, playerSerial ) end end end end elseif ( eventName == "onResourceStart" ) then for k, v in ipairs ( getElementsByType ( "player" ) ) do local playerSerial = getPlayerSerial ( v ) local checkSQL = executeSQLQuery ( 'SELECT * FROM SQLTst WHERE SerialP=?' , playerSerial ) if ( #checkSQL ~= 0 ) then if ( isTimer ( TimeDaySet ) ) then killTimer ( TimeDaySet ) end TimeDaySet = setTimer( function() end, checkSQL[1].Timer, 1 ) end end end end addEventHandler("onPlayerLogin", root, myEvents) addEventHandler("onPlayerQuit", root, myEvents) addEventHandler("onResourceStop", root, myEvents) addEventHandler("onResourceStart", root, myEvents) ^ عدلت الكود
  14. مساعده في كود

    addEvent("giveDailySalary", true) addEventHandler("giveDailySalary", root, function( ) if isTimer( TimeDaySet ) then outputChatBox( "#dddddd ≈ [ Bank ]#ff0000 Please Try Again After 24 Hours", source, 0, 0, 0, true ) return end outputChatBox( "#00ffff Salary Was Successfully Taken ✔", source, 0, 0, 0, true ) givePlayerMoney( source, 9000 ) TimeDaySet = setTimer( function() end, 86400000, 1 ) end ) addEventHandler("onPlayerLogin", root, function ( ) local playerSerial = getPlayerSerial ( source ) local checkSQL = executeSQLQuery ( 'SELECT * FROM SQLTst WHERE SerialP=?' , playerSerial ) if ( #checkSQL ~= 0 ) then if ( isTimer ( TimeDaySet ) ) then killTimer ( TimeDaySet ) end TimeDaySet = setTimer( function() end, checkSQL[1].Timer, 1 ) end end ) addEventHandler("onPlayerQuit", root, function ( ) local playerSerial = getPlayerSerial ( source ) local checkSQL = executeSQLQuery ( 'SELECT * FROM SQLTst WHERE SerialP=?' , playerSerial ) if ( isTimer ( TimeDaySet ) ) then local myTimer = getTimerDetails ( TimeDaySet ) if ( myTimer ) then if ( #checkSQL == 0 ) then executeSQLQuery( "INSERT INTO SQLTst ( Timer, SerialP ) VALUES( ? , ? )", myTimer, playerSerial ) else executeSQLQuery("UPDATE SQLTst SET Timer=? WHERE SerialP=?", myTimer, playerSerial ) end end end end )