Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. just add this if (player ~= localPlayer) then return end
  2. If you will use it client side, there no need for loop all players, just use localPlayer.
  3. TAPL

    Question

    rowc rowi
  4. TAPL

    Scoreboard

    It's work, i tried it.
  5. TAPL

    Scoreboard

    if i am not wrong, this way work too.
  6. TAPL

    Scoreboard

    Do anyone have?
  7. TAPL

    Help

    You can do this by using the event onVehicleDamage, get the health of the vehicle with the function getElementHealth, and check if the health of the vehicle is low (before it get fire) then make it not damageable with the function setVehicleDamageProof. That's a long way, Mr.Pres[T]ege's way is better .. Who cares if it long or short? (it's short actually) fixVehicle with timer also you might need to loop all of the vehicle in the server, you call this a better way? Oh and remember:
  8. TAPL

    Scoreboard

    Who say it didn't? Have you tried it before say it didn't work?
  9. TAPL

    Scoreboard

    This setElementData(players, "Clan", "None") And this local none = "None" setElementData(players, "Clan", none) both of them are same, there no diffrent.
  10. TAPL

    Help

    You can do this by using the event onVehicleDamage, get the health of the vehicle with the function getElementHealth, and check if the health of the vehicle is low (before it get fire) then make it not damageable with the function setVehicleDamageProof.
  11. TAPL

    Scoreboard

    lol?
  12. TAPL

    Help

    This event can be cancelled? Because the wiki haven't say if it can be cancelled or not. Mostly it can't be cancelled.
  13. TAPL

    Help

    setVehicleDamageProof
  14. That's because the player exit from the vehicle and he no longer have vehicle, so the function getPedOccupiedVehicle will return false and it's boolean. You should use the parameters of the event onPlayerVehicleExit. https://wiki.multitheftauto.com/wiki/OnPlayerVehicleExit
  15. function givebike( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Vip")) then if not getElementData(player, "bike") then local x, y, z= getElementPosition(player) local veh = createVehicle(509, x+1, y, z) warpPedIntoVehicle(player, veh) setElementData(player, "bike", true) addEventHandler("onVehicleExit", veh, function(player) setTimer(function(source, player) destroyElement(source) setElementData(player, "bike", false) end, 100, 1, source, player) end) else outputChatBox ( "Voce nao pode pegar duas Bikes ao mesmo tempo!", player, 255,0,0, true) end end end addCommandHandler("bikevip",givebike)
  16. addEventHandler("onVehicleExit", veh, function(player) setTimer(function(source, player) destroyElement(source) setElementData(player, "bike", false) end, 100, 1, source, player) end)
  17. Where do veh defined? Where do player defined?
  18. The attachedTo in this event must be vehicle Not a player. addEventHandler ("onVehicleExit", player, ifPlayerWantsToExit)
  19. https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle
  20. TAPL

    global chat problem

    Post your code then?
  21. TAPL

    تعديل

    ذي ملاحظة من الويكي https://wiki.multitheftauto.com/index.php?title=Resource:Race و ذا الكود مدري وشي يبي addEvent("onPlayerWasted", true)
  22. TAPL

    Clan system

    Two reason: 1- The source of the event(trigger) isn't a player. 2- There no element data with the keys "clan", "leader" and "type".
  23. yes,yes i have gamemod called "GangWarsMR-S3D" and i want to set up at my serer howw? Seems to me, this guy has download client side files when he join another server and he want put it in his server.
  24. ودي بس افهم الحين أستضافة فاشله نفس ديلوكس على كل المشاكل الي فيها للحين تفتحون فيها سيرفرات !شي غريب عجيب
  25. الصوره ما تخرع ... بس المشكلة الصوت يبي لك بازوكا
×
×
  • Create New...