Jump to content

Tekken

Helpers
  • Posts

    1,423
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. Best way is not mo make bases on the air and make them on default GTA ground.
  2. There are those players with gamepad and they can auto-aim just like Aim Bot.
  3. You may need setGlitchEnabled
  4. You did not passed the player in timer. Server function createTopSystem(player) if not isElement(player) then return false; end local Top = {} local CreatTop = executeSQLQuery("SELECT * FROM stats6"); for i = 1, #CreatTop do table.insert(Top, {nickim = CreatTop[i].nickim,puan = CreatTop[i].puan}); end if (#CreatTop > 0) then table.sort(Top, function(a, b) return (tonumber(a.puan) or 0) > (tonumber(b.puan) or 0) end ); setTimer(function(player) for k, data in ipairs(Top) do triggerClientEvent(player, "siraayarla", player, tostring(data.nickim), tonumber(k)) end end, 50, 1, player); end end Client function getPlayerFromNamePart(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil; if (name) then for _,v in ipairs(getElementsByType("player")) do local name_ = getPlayerName(v):gsub("#%x%x%x%x%x%x", ""):lower(); if name_:find(name, 1, true) then return v; end end end end addEvent("siraayarla", true); addEventHandler("siraayarla", getRootElement(), function(name, i) local player = getPlayerFromNamePart(name); if isElement(player) then setElementData(player, "Sıra", i); end end);
  5. Tekken

    SOLVED

    You do not bother me I just want you to learn, try harder by yourself, I actually like to make those scripts for you.
  6. Tekken

    SOLVED

    I said I will not do it, but there you go: local timeTable = {}; local marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); local isMarerHidden = false; addEventHandler("onMarkerHit", marker, function(player) if isPedInVehicle(player) then return; end if (isMarerHidden == true) then return; end if (getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Resistances") then outputChatBox("Wait 30 seconds in the marker, don't leave it! or the mission will fail!", player, 255, 0, 0); outputChatBox("Military Broadcast: Attention Soldiers! The military vault is under attack!", getRootElement(), 0, 200, 0); timeTable[player] = setTimer(function() for _,v in ipairs(getElementsByType("player")) do if isElementWithinMarker(v, marker) then givePlayerMoney(v, 5000); end destroyTimer(v); end setElementAlpha(marker, 0); isMarerHidden = true; setTimer(function() setElementAlpha(marker, 100); isMarerHidden = false; end, 60000, 1); end, 5000, 1); end end); function destroyTimer(element) if isTimer(timeTable[element]) then killTimer(timeTable[element]); timeTable[element] = nil; end end addEventHandler("onPlayerWasted", getRootElement(), function() destroyTimer(source); end); addEventHandler("onPlayerQuit", getRootElement(), function() destroyTimer(source); end); addEventHandler("onMarkerLeave", marker, function(player) destroyTimer(player); end);
  7. What do you mean "make a melee weapon fire" ?
  8. Those are all weapons you ca use setWeaponProperty:
  9. Tekken

    SOLVED

    Yes it will, but the timer will continue and he will get the money, you must do a check for that and kill all timers, after first player get the money.
  10. Tekken

    SOLVED

    What do you mean? Explain better I do not understand.
  11. Tekken

    SOLVED

    You're welcome.
  12. Tekken

    SOLVED

    Now should work. local timeTable = {}; local marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); local isMarerHidden = false; addEventHandler("onMarkerHit", marker, function(player) if isPedInVehicle(player) then return; end if (isMarerHidden == true) then return; end if (getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Resistances") then outputChatBox("Wait 30 seconds in the marker, don't leave it! or the mission will fail!", player, 255, 0, 0); outputChatBox("Military Broadcast: Attention Soldiers! The military vault is under attack!", getRootElement(), 0, 200, 0); timeTable[player] = setTimer(function() givePlayerMoney(player, 5000); setElementAlpha(marker, 0); isMarerHidden = true; setTimer(function() setElementAlpha(marker, 100); isMarerHidden = false; end, 60000, 1); end, 5000, 1); end end); function checkTimer(element) if isTimer(timeTable[element]) then killTimer(timeTable[element]); timeTable[element] = nil; end end addEventHandler("onPlayerWasted", getRootElement(), function() checkTimer(source); end); addEventHandler("onPlayerQuit", getRootElement(), function() checkTimer(source); end); addEventHandler("onMarkerLeave", marker, function(player) checkTimer(player); end);
  13. Tekken

    SOLVED

    Not sure but test again: local marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); local timeTable = {}; addEventHandler("onMarkerHit", marker, function(player) if (getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Resistances") then outputChatBox("Wait 30 seconds in the marker, don't leave it! or the mission will fail!", player, 255, 0, 0); outputChatBox("Military Broadcast: Attention Soldiers! The military vault is under attack!", getRootElement(), 0, 200, 0); timeTable[player] = setTimer(function() givePlayerMoney(player, 5000); destroyElement(marker); marker = nil; setTimer(function() marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); end, 60000, 1); end, 5000, 1); end end); function checkTimer(element) if isTimer(timeTable[element]) then killTimer(timeTable[element]); timeTable[element] = nil; end end addEventHandler("onPlayerWasted", getRootElement(), function() checkTimer(source); end); addEventHandler("onPlayerQuit", getRootElement(), function() checkTimer(source); end); addEventHandler("onMarkerLeave", marker, function(player) checkTimer(player); end);
  14. Tekken

    SOLVED

    Yes it is possible to work with car as well, but will need some changes if i'm not mistaken. And did you tested if it work's when enter the recreated marker? Cause I am not sure if it's a question or a fact.
  15. Tekken

    SOLVED

    Everything is possible. local marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); local timeTable = {}; addEventHandler("onMarkerHit", marker, function(player) if (getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Resistances") then outputChatBox("Wait 30 seconds in the marker, don't leave it! or the mission will fail!", player, 255, 0, 0); outputChatBox("Military Broadcast: Attention Soldiers! The military vault is under attack!", getRootElement(), 0, 200, 0); timeTable[player] = setTimer(function() givePlayerMoney(player, 5000); destroyElement(marker); setTimer(function() marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); end, 60000, 1); end, 5000, 1); end end); function checkTimer(element) if isTimer(timeTable[element]) then killTimer(timeTable[element]); timeTable[element] = nil; end end addEventHandler("onPlayerWasted", getRootElement(), function() checkTimer(source); end); addEventHandler("onPlayerQuit", getRootElement(), function() checkTimer(source); end); addEventHandler("onMarkerLeave", marker, function(player) checkTimer(player); end);
  16. Tekken

    SOLVED

    local marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); forgot to add this line
  17. Tekken

    SOLVED

    Yes it is, just make a table. Also add onPlayerQuit and onMarkerLeave local timeTable = {}; addEventHandler("onMarkerHit", marker, function(player) if (getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Resistances") then outputChatBox("Wait 30 seconds in the marker, don't leave it! or the mission will fail!", player, 255, 0, 0); outputChatBox("Military Broadcast: Attention Soldiers! The military vault is under attack!", getRootElement(), 0, 200, 0); timeTable[player] = setTimer(givePlayerMoney, 5000, 1, player, 5000); end end); addEventHandler("onPlayerWasted", getRootElement(), function() if isTimer(timeTable[source]) then killTimer(timeTable[source]); timeTable[source] = nil; end end); addEventHandler("onPlayerQuit", getRootElement(), function() if isTimer(timeTable[source]) then killTimer(timeTable[source]); timeTable[source] = nil; end end); addEventHandler("onMarkerLeave", marker, function(player) if isTimer(timeTable[player]) then killTimer(timeTable[player]); timeTable[player] = nil; end end);
  18. That's 'cause the player doesn't have a team. To fix this just add this before every getTeamName() check: local team = getPlayerTeam(player); --Return a Team or nil if the player doesn't have a team; if team then --If the team ~= nil; teamName = getTeamName(team); -- Get team name; end You most likely did it like this: local team = getPlayerTeam(player); --This was returning nil; local teamName = getTeamName(team); --And then you tried to get the them name of a nil (NOTHING);
  19. If you want to reject players with modified map just start resource acpanel typing "/start acpanel" then press 'o' and make sure you enable all anti-cheats features.
  20. Tekken

    SOLVED

    Make it server-side, creating markers client side is not the best idea in this case. local marker = createMarker(-2405, -597.53125, 131.9, "cylinder", 7.0, 0, 180, 0, 100); addEventHandler("onMarkerHit", marker, function(player) if (getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Resistances") then outputChatBox("Wait 30 seconds in the marker, don't leave it! or the mission will fail!", player, 255, 0, 0); outputChatBox("Military Broadcast: Attention Soldiers! The military vault is under attack!", getRootElement(), 0, 200, 0); timer = setTimer(givePlayerMoney, 5000, 1, player, 5000); end end); Also if you want to delete that timer from other function you must not make it a local variable, if not is better to delete the variable.
  21. Change the syntax cause those two functions setAccountData and getAccountData are mta defined functions. You can do something like accountSetData() and accountGetData().
  22. Yes, everyone it's free to pull requests.
×
×
  • Create New...