Infinity#

Members
  • Content Count

    67
  • Joined

  • Last visited

  • Days Won

    1

Infinity# last won the day on July 7 2017

Infinity# had the most liked content!

Community Reputation

26 Good

4 Followers

About Infinity#

  • Rank
    Snitch
  • Birthday 01/11/1990

Details

  • Gang
    SARSRPG
  • Location
    Las Venturas
  • Occupation
    Businessman

Recent Profile Visitors

1,692 profile views
  1. SARS has been shutdown. We're currently working on something new. Join us at https://discord.gg/rGRwAZz to keep up with the process.
  2. Is sad seeing someone your age still acting the way you're acting. Anyhow, yes, I said if you have any evidence us using your scripts, then report us to MTA. Stop making false accusations, save your words and take the necessary actions you have to, of course, if you have proof of what you're accusing us with. This won't be one of those "WSS vs SAES" endless fighting & arguments you had with the WSS Server back in the day. "We wish all the luck," thank you, but you can save it for when you actually mean it. Because I too can make accusations of how SAES have stolen our ideas that ran in past SARS generations as well. But that won't be looked at, why? Because SARS doesn't have anyone from the MTA Team in the team to believe us, or actually follow up with what we say. You in the SAES Team do. All I ask of you is, stop replying in our topics. You and your SAES team members.
  3. Bueno, Yo también hablo castellano, soy de Argentina. Voy a probar el script que me diste, y te aviso si funciona. 

  4. Capital A on "admin", everything else should be good
  5. Give me the image below, and I'll write it down for you. Everything you've above is right and it should work. local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() local zombieKills = tonumber(getElementData(localPlayer, "Zombie kills")) or 'None' dxDrawRectangle(screenW * 0.0454, screenH * 0.6263, screenW * 0.1691, screenH * 0.0404, tocolor(0, 0, 0, 155), false) dxDrawText("Zombie Kills: ".. zombieKills .."", screenW * 0.0527, screenH * 0.6406, screenW * 0.2072, screenH * 0.6536, tocolor(255, 255, 255, 255), 1.20, "clear", "center", "center", false, false, false, false, false) end) This code will draw a rectangle and a text showing the player's zombie kills. You can add a line to it with the dxDrawImage above, based on the player's zombie kills what image should it draw since that is what you want. So the player can know their rank by the number of zombie kills they've. Perhaps you can even make another line for dxDrawText to show the name of the rank as well. Here you go: If there's anything missing/bugging, let me know. Untested but this should work 100%. And it'll open up more possibilities. exports.scoreboard:addScoreboardColumn('Zombie kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted", root, function(killer) givePlayerMoney(killer, 50) addPlayerZombieKills(killer) end) function addPlayerZombieKills(killer) if isElement(killer) then if getElementData(killer, "Zombie kills") then local zombieKills = tonumber(getElementData(killer, "Zombie kills")) setElementData(killer, "Zombie kills", zombieKills + 1) else setElementData(killer, "Zombie kills", 1) outputChatBox("'Zombie kills' stats are now being recorded on your account", killer, 0, 200, 0, false) end end end addEventHandler("onPlayerLogin", root, function(_, account) if isGuestAccount(account) then return end if getPlayerAccount(source) and getAccountData(account, "Zombie kills") then local zombieKills = getAccountData(account, "Zombie kills") if zombieKills then setElementData(source, "Zombie kills", tostring(zombieKills)) else setElementData(source, "Zombie kills", 0) outputChatBox("'Zombie kills' stats are now being recorded on your account", source, 0, 200, 0, false) end end end) function saveZombieData() if getPlayerAccount(source) then local account = getPlayerAccount(source) if getAccountData(account, "Zombie kills") then local zombieKills = tonumber(getElementData(source, "Zombie kills")) if zombieKills then setAccountData(account, "Zombie kills", zombieKills) end end end end addEventHandler("onPlayerQuit", root, saveZombieData) addEventHandler("onPlayerLogout", root, saveZombieData)
  6. I don't understand. Try to explain more of what it is you want and I'll write the script for you myself.
  7. Make it so it gets saved on the element's data. (Show me your function on how the data is saved on players when they kill a zombie) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() local zombieKills = tonumber(getElementData(localPlayer, "zombieKills")) or 'None' dxDrawRectangle(screenW * 0.0454, screenH * 0.6263, screenW * 0.1691, screenH * 0.0404, tocolor(0, 0, 0, 155), false) dxDrawText("Zombie Kills: ".. zombieKills .."", screenW * 0.0527, screenH * 0.6406, screenW * 0.2072, screenH * 0.6536, tocolor(255, 255, 255, 255), 1.20, "clear", "center", "center", false, false, false, false, false) end)
  8. teleport_s.lua addCommandHandler("gotobeach", function(player) if isElement(player) and not isPedDead(player) then setElementPosition(player, 343.20026, -1780.60388, 5.22299) outputChatBox("You have been successfully teleported to the beach.", player, 0, 200, 0, false) else outputChatBox("You must be alive in order to use this command.", player, 200, 0, 0, false) end end) meta.xml <meta> <script src="teleport_s.lua" type="server"/> </meta> http://www.mediafire.com/file/kwz7052k8tltfxf/teleport.zip
  9. Infinity#

    testing script

    addEventHandler("onClientPlayerWeaponFire", root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if weapon == 38 and isElement(source) and isElement(hitElement) and getElementType(source) == "player" and getElementType(hitElement) == "vehicle" then local r, g, b = getVehicleColor(hitElement) outputChatBox("".. getVehicleName(hitElement) ..": ".. getPlayerName(source) ..", why you shooting me? :(", r, g, b) end end) (untested) but try that. Also, the only problem on your script was the capitalization on "V" when you wrote getElementType(hitElement) == "Vehicle" and for events like that, I don't think is necessary to add a name to it since you won't be calling it from anywhere.
  10. Add https://wiki.multitheftauto.com/wiki/GuiGridListInsertRowAfter
  11. Add it on to your script. Client-side file. So it would be: function isPlayerInTeam(player, team) assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]") assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]") return getPlayerTeam(player) == (type(team) == "string" and getTeamFromName(team) or (type(team) == "userdata" and team or (getPlayerTeam(player) or true))) end local screenW, screenH = guiGetScreenSize() function teams_images () local team_mercenarios = isPlayerInTeam(source,"Mercenarios") if team_mercenarios then addEventHandler("onClientRender", root, drawTeamImage) end end addEventHandler("onClientPlayerSpawn", getLocalPlayer(),teams_images) function drawTeamImage() dxDrawImage(100, 100, 40,40,"mercenarios.png") end But you need to do something because this is suppose to be client-side and 'isPlayerInTeam' is a server-side event.
  12. if team_mercenarios then addEventHandler("onClientRender", root, drawTeamImage) end function drawTeamImage() dxDrawImage(100, 100, 40,40,"mercenarios.png") end Then make it onClientPlayerWasted to remove the onClientRender event. Let me know if it works.
  13. Bumped the topic.