Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/09/20 in Posts

  1. Achei um código do @Lord Henry perdido pelo fórum, acho que seja útil pra você é tudo que você precisa 100% pronto basta só adaptar do jeito que você gostaria. server-side function recebeKills () local data = getAccounts () local accTable = {} local killsTable = {} local deathsTable = {} local killDeath = {} local kill = 0 local death = 0 if not data[1] then triggerClientEvent (client, "showRank", client) return end for i, acc in ipairs (data) do table.insert (accTable, getAccountName (data[i])) if not getAccountData (data[i], "kills") then table.insert (killsTable, "0") kill = 0 else table.insert (killsTable, tostring (getAccountData (data[i], "kills"))) kill = tonumber (getAccountData (data[i], "kills")) end if not getAccountData (data[i], "deaths") then table.insert (deathsTable, "0") death = 0 else table.insert (deathsTable, tostring (getAccountData (data[i], "deaths"))) death = tonumber (getAccountData (data[i], "deaths")) end if death == 0 and kill == 0 then table.insert (killDeath, 0) else table.insert (killDeath, kill / death) end end triggerClientEvent (client, "showRank", client, accTable, killsTable, deathsTable, killDeath) end addEvent ("getRank", true) addEventHandler ("getRank", getRootElement(), recebeKills) function salvaKills (ammo, killer, weapon, bodypart, stealth) if not isGuestAccount (getPlayerAccount(source)) then local deaths = getAccountData (getPlayerAccount(source), "deaths") if deaths then setAccountData (getPlayerAccount(source), "deaths", deaths + 1) else setAccountData (getPlayerAccount(source), "deaths", 1) end end if killer and killer ~= source then if getElementType (killer) == "player" then if not isGuestAccount (getPlayerAccount(killer)) then local kills = getAccountData (getPlayerAccount(killer), "kills") if kills then setAccountData (getPlayerAccount(killer), "kills", kills + 1) else setAccountData (getPlayerAccount(killer), "kills", 1) end end elseif getElementType (killer) == "vehicle" then killer = getVehicleController (killer) if killer then if not isGuestAccount (getPlayerAccount(killer)) then local kills = getAccountData (getPlayerAccount(killer), "kills") if kills then setAccountData (getPlayerAccount(killer), "kills", kills + 1) else setAccountData (getPlayerAccount(killer), "kills", 1) end end end end end end addEventHandler ("onPlayerWasted", getRootElement(), salvaKills) client-side scoreWindow = guiCreateWindow (0.3, 0.2, 0.4, 0.6, "Ranking Kills/Death (by: LordHenry)", true) scoreGrid = guiCreateGridList (0, 0.05, 1, 0.85, true, scoreWindow) guiWindowSetSizable (scoreWindow, false) guiGridListAddColumn (scoreGrid, "Account", 0.45) guiGridListAddColumn (scoreGrid, "Kills", 0.13) guiGridListAddColumn (scoreGrid, "Deaths", 0.13) guiGridListAddColumn (scoreGrid, "Ratio", 0.18) closeGrid = guiCreateButton (0.2, 0.91, 0.6, 0.09, "Fechar Painel", true, scoreWindow) guiSetVisible (scoreWindow, false) function scoreInfo (accounts, kills, deaths, ratio) guiSetVisible (scoreWindow, true) guiSetVisible (closeGrid, true) showCursor (true) if accounts then for i, v in ipairs (accounts) do guiGridListAddRow (scoreGrid, accounts[i], kills[i], deaths[i], ratio[i]) end end end addEvent ("showRank", true) addEventHandler ("showRank", getRootElement(), scoreInfo) function clickOptions (button, state, absoluteX, absoluteY) if button == "left" then if source == closeGrid then guiSetVisible (scoreWindow, false) showCursor (false) guiGridListClear (scoreGrid) end end end addEventHandler ("onClientGUIClick", getRootElement(), clickOptions) function sendScores () if not guiGetVisible (scoreWindow) then triggerServerEvent ("getRank", localPlayer) end end addCommandHandler ("rank", sendScores) Comando: /rank
    2 points
  2. 5Station | فايف ستيشن ندعم طرق دفع : التحويل البنكي - سوا - باي بال تفعيل سريع خلال 3 ساعات تنويه : هذا الموضوع لعرض الخصومات والعروض الخاصة بالموقع بس https://5Station.net : رابط الموقع
    1 point
  3. You're not globally banned (you are banned by "Next RP" fork, contact them) It's not true.. but i dont know why they would want you to believe that it's us who banned you. @IRISHMAN
    1 point
  4. Even though you misrepresented (and lied about) a lot of things in this appeal, I won't waste more time arguing with you as we've been through this process, during which the true situation surrounding the things you misrepresented became obvious, and also that you kept trying to twist it. That is to say, we've been there, and just because you're now writing another essay doesn't mean that our decision will change. It will not. You're not welcome on MTA, and you have to start accepting that we rejected your ban appeal and told you that the original ban was extended for further illegal activities on MTA. The combination of all of your activities make it clear that you're a really malicious person, and also we won't buy your lies about FFS clan member account (+ a few other player accounts) hacking. We know for a fact, that you didn't only test the access, nor did you do that yourself (you sent an Austrian hacker to do it, one that MTA happens to know really well). Even worse, you misused stored credentials for said FFS clan member account from your old Vultaic server database (he used the same password), it's really not "just testing what you found somewhere". This is actually a recent attempt from the aforementioned guy that you hired for the intrusion, to apologize to the victim (FFS): For the scamming part, in private messages we carefully established why (and which of) your and DizzasteR's actions were considered financially scamming, and explained the reasons MTA would want to put a halt to this, as there were exceptional circumstances during which you spotted a weakness in a person and decided to take advantage of it. We also clarified why we assisted said person to get what he paid for (the contents of your backdoored files) as he had the full ownership rights to it since the sale was for full source code and not providing this for everything means you scammed him in yet another way. We also don't believe the purpose of backdoors. We really got a lot of illegal activity on MTA from you like I said; - Hacking activities (against FFS) - Misuse of DB from your server to compromise account in the hacking offense (your plain-text account storing was probably intended, with future malicious use in mind) - The huge scam with particular reasons for MTA to put consequences to it - Selling gamemodes with backdoors (commands to grant admin access, etcetera) - I really don't believe "its just in case", even if it was, then intruding any server that would use said gamemode using your backdoors would still be a malicious act in itself. You didn't even disclose the existence of backdoors to the buyer(s), nor did you say anything about it when they asked why there's some compiled files despite your promise to provide full source when sold. Anyways, I ask you to accept that your ban appeal is denied, and that you will never be able to get unbanned. I know more about the type of person you are and the extent of your illegal actions that target MTA users and communities than you think I do. Ban appeal denied. Please do not return. From now on, there will be banning on sight.
    0 points
×
×
  • Create New...