Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. https://forum.multitheftauto.com/topic/104876-save-skins-in-professional-design-حفظ-الشخصيات-بتصميم-احترافي/
  2. بالماوس
  3. تقدر تختصر كذا : function refreshMoney(_, func, _, _, _, ...) local args = {...} if #args >= 2 then if isElement(args[1]) and getElementType(args[1]) == 'player' then local data = getElementData(args[1], 'Money') or 0 setElementData(args[1], 'Money', func == 'setPlayerMoney' and args[2] or (func == 'takePlayerMoney' and data-args[2] or data+args[2])) end end end addDebugHook('preFunction', refreshMoney, {'givePlayerMoney', 'setPlayerMoney', 'takePlayerMoney'})
  4. addDebugHook افضل
  5. المشكلة من الداتا .. حط هذا الكود ولفل نفسك وشوف وش يطلع لك في الشات addEventHandler('onElementDataChange', root, function(data) if data == 'xLevelx' then if getElementType(source) == 'player' then outputChatBox('You\'re now level '..tostring(getElementData(source, data) or 1)..'!', source, 255, 255, 255, true) else outputChatBox('Error !', root, 255, 255, 255, true) end end end);
  6. Rockyz

    طلب

    https://forum.multitheftauto.com/topic/100386-مساعدة-في-كود/?do=findComment&comment=882913
  7. ????
  8. setTimer(function() guiGridListClear(NONE) local g = getPlayersSortByaPlayTime() for i = 1, 20 do local aRow = guiGridListAddRow(NONE) if not g[i] then break end guiGridListSetItemText(NONE, aRow, 1, i ..'-', false, false) guiGridListSetItemText(NONE, aRow, 2, getPlayerName(g[i].player):gsub('#%x%x%x%x%x%x', ''), false, false) guiGridListSetItemText(NONE, aRow, 3, convertNumber(g[i].PlayTime), false, false) guiGridListSetItemColor(NONE, aRow, 1, 255, 255, 0) guiGridListSetItemColor(NONE, aRow, 2, 255, 0, 0) guiGridListSetItemColor(NONE, aRow, 3, 0, 255, 0) end end, 1000, 0)
  9. @Trefeor server.giveMeVehicles ?? errMsg ??
  10. اطرح اكوادك
  11. ترى لازم تشوف الي فوق
  12. post the full code
  13. حلو, بس يبيلك ترتبه شوي بالتوفيق..
  14. https://www.lua.org/pil/20.2.html بسيط جداً بس يبيلك تركز
  15. كودي شغال وانا مجربه المشكلة من عندك تأكد انك ما عدلت شي من كودي وتأكد انه سيرفر سايد انا سويت طلبه على اساس انه يبيه بالترتيب مادري وش يبي بالضبط ولكن كودي شغال
  16. playerDeath = {}; killMessage = { 'a', 'b', 'c', 'd' } addEventHandler('onPlayerWasted', root, function() playerDeath[source] = math.max(((playerDeath[source] or 0) +1)%(#killMessage+1), 1) outputChatBox(killMessage[playerDeath[source]], source, 255, 0, 0, true) end)
×
×
  • Create New...