Jump to content

` Allawi

Members
  • Posts

    329
  • Joined

  • Last visited

Everything posted by ` Allawi

  1. بإذن الله
  2. if plr and isPlayerAdmin(plr) then ^ استبدل هذا بسطر 13
  3. addCommandHandler restartResource
  4. استبدل سطر 6 بهذا السطر addEventHandler ( "onPlayerWasted", root, deathCheck )
  5. الكود سليم اللي طرحته تاكد من الكوادت الباقيه اذا كان في كودات غيره
  6. guiGetScreenSize
  7. شكراً على التنبيه تم التعديل
  8. الكود التالي بالنسبة للكيك والباند -- Server addEventHandler("onPlayerQuit",root, function(quitType,reason) if quitType == "Kicked" or quitType == "Banned" then outputChatBox("Reason: "..reason,root,255,0,0) end end ) أما بالنسبة للميوت تعدل على لوحة الأدمنية
  9. :استخدم التحقق التالي if getAccountSerial(getAccount(userName)) == getPlayerSerial(theElement) then
  10. القسم غلط :استخدم الوظيفة التالية table.concat :مثال من الويكي -- Define our function that will handle this command (which can accept a variable number of arguments after commandName) function consoleCheckParameters ( playerSource, commandName, ... ) -- If a player, not an admin, triggered it, if playerSource then local arg = {...} -- Get the number of arguments in the arg table (arg table is the same as: {...}) local parameterCount = #arg -- Output it to the player's chatbox outputChatBox ( "Number of parameters: " .. parameterCount, playerSource ) -- Join them together in a single comma-separated string local stringWithAllParameters = table.concat( arg, ", " ) -- Output this parameter list to the player's chatbox outputChatBox ( "Parameters passed: " .. stringWithAllParameters, playerSource ) end end -- Attach the 'consoleCheckParameters' function to the "check_parameters" command addCommandHandler ( "check_parameters", consoleCheckParameters )
  11. حياك الله
  12. جرب كذا addEventHandler("onClientGUIClick",guiRoot, function() if ( source == GUIEditor.button[5] ) then triggerServerEvent('JetPack', localPlayer) end end ) addEvent("close",true) addEventHandler("close",root, function() if GUIEditor.button[5] then guiSetEnabled(GUIEditor.button[5], false) setTimer( guiSetEnabled, 300000, 1,GUIEditor.button[5], true ) end end ) addEvent("open",true) addEventHandler("open",root, function() if GUIEditor.button[5] then guiSetEnabled(GUIEditor.button[5], true) end end )
  13. نعم واستقبل الترايقر في حدث الضغط
  14. بالمتغير والتحققات تسويه
  15. :استخدم الطريقة الثانية addEvent("example",true) addEventHandler("onClientGUIClick",guiRoot, function() if source == button then -- your code addEventHandler("example",root, function() -- your code end ) end end )
  16. ماتقدر بنفس اسم من اسماء الاحداث
  17. SSerial = { ['Temperrr'] = '6C797A27C0E907998DB44774CFA6A9F3', } function chatSoundColor ( msg ) local theCurrentAccount = getPlayerAccount( source ) local Serial = SSerial[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial == getPlayerSerial ( source ) then triggerClientEvent ( getRootElement(), "onPlaysounds", resourceRoot ) cancelEvent() local chatterName = getPlayerName ( source ) outputChatBox ("#ff0000[#ffffffV#000000.#ffffffI#000000.#FFFFFFP#FF0000]"..chatterName, getRootElement(), r, g, b, true ) end end end addEventHandler("onPlayerChat", getRootElement(), chatSoundColor)
  18. القسم غلط وايضا وضح وش بتسوي بالضبط
  19. "onClientGUIClick" triggerServerEvent redirectPlayer
  20. :استخدم الوظيفة التالية setTimer مع المتغيرات
  21. "onClientPlayerWeaponFire"
  22. local Query = executeSQLQuery("SELECT acc,points FROM PointsDerby")
×
×
  • Create New...