Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. ped نفس الفنكشن يضبط على اللاعب و على setPedAnimation
  2. Whenever you attack other player, use the function getElementHealth to get the current health and then use function setElementHealth to set the health to lower, also you might need killPed when the health is low, so you will always have a killer.
  3. Change what? You download it from where?
  4. Event: "onClientPlayerDamage" or "onPlayerDamage" getElementHealth setElementHealth
  5. ؟Column وين الـ guiGridListAddColumn
  6. https://forum.multitheftauto.com/viewtopic.php?f=160&t=55560
  7. في احد ما طرح بعد؟
  8. شكلك تفهم بنقالي معليه بنسخ لك الكود هنا function clientsideResourceStart () local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) -- Create the grid list local column = guiGridListAddColumn( playerList, "Player", 0.85 ) -- Create a 'players' column in the list if ( column ) then -- If the column was successfully created for id, playeritem in ipairs(getElementsByType("player")) do --Loop through all the players, adding them to the table local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getResourceRootElement(), clientsideResourceStart )
  9. ^^؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
  10. ما يحتاج تفتح 50 موضوع https://forum.multitheftauto.com/viewtopic.php?f=160&t=55340
  11. TAPL

    تعديل

    ؟
  12. TAPL

    ~| طلب |~

    https://forum.multitheftauto.com/viewtopic.php?f=119&t=47268 https://community.multitheftauto.com/index.php?p=resources&s=details&id=3054
  13. TAPL

    Account data

    You can by setting it to false or nil, i tried before and it was removed but i don't remember which one.
  14. TAPL

    Help event script

    You're welcome.
  15. TAPL

    draw distance

    This maybe can help viewtopic.php?f=91&t=50958
  16. TAPL

    Help event script

    Try function evento(source) if (isElement(theMarker)) then destroyElement(theMarker) local nombre2 = getPlayerName(source) outputChatBox("#FF0000[AVISO]#00FF00Eventos removidos por #0000FF"..nombre2.."#00FF00.", getRootElement(), 255, 255, 255, true) removeCommandHandler("eventwarp") else local x,y,z = getElementPosition(source) theMarker = createMarker ( x, y, z, "checkpoint", 2, 255, 255, 255, 100 ) local nombre = getPlayerName(source) outputChatBox("#FF0000[AVISO]#00FF00Se ha creado un evento por #0000FF"..nombre..". #00FF00Usa #FF0000/eventwarp #00FF00para participar!", getRootElement(), 255, 255, 255, true) addCommandHandler("eventwarp", eventowarp) end end addCommandHandler("event", evento) function eventowarp(thePlayer) if isElement(theMarker) then local x, y, z = getElementPosition(theMarker) setElementPosition(thePlayer, x, y, z) end end
  17. TAPL

    Scoreboard

    You set the data to "true", while in the code that i post it was "Bronze". Also the text not used anywhere. Do you have three command for these thing?
  18. TAPL

    help

    This too if not(modelid or x1 or y1 or z1 or msg) then outputChatBox("[invalid Syntax]: /createped [modelid] [x] [y] [z] [text]", player, 255, 0, 0 ) return end Should be if (not modelid or not x1 or not y1 or not z1 or not ...) then outputChatBox("[invalid Syntax]: /createped [modelid] [x] [y] [z] [text]", player, 255, 0, 0 ) return end
  19. TAPL

    help

    Should be table.concat({...}, " ")
  20. TAPL

    Scoreboard

    Your script doesn't look good with three account data, but this is your choice. call(getResourceFromName("scoreboard"), "addScoreboardColumn", "VIP", getRootElement(), 8, 0.07) local none = "None" local bronze = "Bronze" local silver = "Silver" local gold = "Gold" addEventHandler("onResourceStart", resourceRoot, function() for _, thePlayer in ipairs(getElementsByType("player")) do local acc = getPlayerAccount(thePlayer) if acc and not isGuestAccount(acc) then local goldvip = getAccountData(acc, "goldvip") local nonevip = getAccountData(acc, "nonevip") local silvervip = getAccountData(acc, "silvervip") local bronzevip = getAccountData(acc, "bronzevip") if nonevip == "None" then setElementData(thePlayer, "VIP", none) elseif bronzevip == "Bronze" then setElementData(thePlayer, "VIP", bronze) elseif silvervip == "Silver" then setElementData(thePlayer, "VIP", silver) elseif goldvip == "Gold" then setElementData(thePlayer, "VIP", gold) end end end end) addEventHandler("onPlayerLogin", root, function(_, acc) local goldvip = getAccountData(acc, "goldvip") local nonevip = getAccountData(acc, "nonevip") local silvervip = getAccountData(acc, "silvervip") local bronzevip = getAccountData(acc, "bronzevip") if nonevip == "None" then setElementData(source, "VIP", none) elseif bronzevip == "Bronze" then setElementData(source, "VIP", bronze) elseif silvervip == "Silver" then setElementData(source, "VIP", silver) elseif goldvip == "Gold" then setElementData(source, "VIP", gold) end end)
  21. TAPL

    help

    Read my previous post. viewtopic.php?f=91&t=55535#p536457
  22. TAPL

    help

    Also you need this for the text: table.concat
  23. I don't think there an event called "OnClientPlayerSpawn" and can be attached to "resourceRoot"?
  24. https://wiki.multitheftauto.com/wiki/OnClientPedDamage
  25. TAPL

    ~| طلب |~

    You're welcome.
×
×
  • Create New...