-
Posts
75 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Infinity#
-
Bumping this topic! I just want to inform to anyone reading this post that we are returning to give our last shot to MTA until our batteries run out. Join our Discord below to get in touch with us! We are currently up & running. You may join us at: mtasa://185.239.238.147:22003. Our Discord Server: https://discord.com/invite/Ey7xG546uc
-
San Andreas Future Gaming RPG Server Main Language: English (Other languages could be spoken through our language-chat) Server Game-mode: Cops & Robbers Server IP: mtasa://185.239.238.147:22003 Official Discord Link: Click here Core Spawn Selection When you register and login for your first time onto the Server, you will be prompted with our spawn menu selection. In this menu, you will be able to select the city you wish to spawn in along with your class, spawn and skin. For each class, there is at least one public spawn which gives you access to spawn. (Exception: Special/restricted groups & organizations which you must join through their recruitment process) Public Spawn: This class has no restriction at all. Anyone can spawn as this class whenever they want and play as it. Restricted Spawn: This class is restricted to certain stats. You require 100 headshots in the game to unlock this spawn. This class gives the ability to be able to headshot with your sniper. (Kill instantly upon shooting someone in the head with your sniper) Hospital Menu When you die in the game, you will have this hospital screen menu pop up with the most nearest hospital you died within. You can press 'R' to respawn at the hospital with your saved weapons or 'Backspace' to completely return back to spawn selection screen. Car Spawner All hospital respawns & local police departments have one of these car spawner markers. This will give you a few options to use a few vehicles for limited time. These vehicles cannot be upgraded at the mod shop, they're used to get from Point A to Point B. An unoccupied vehicle for 5 minutes will be removed. Car shop System Mod shop System If you own a personal vehicle in the game, you are able to upgrade your vehicle at any mod shop in the game. You will simply visit any mod shop around the map, can be found by opening up the map in-game pressing 'F11' and following the red pliers on the map. Basic upgrades cost $2.5K & if you wish to have better vehicle upgrades, prepare to spend some good cash. This is only the v1 version of the mod shop, I plan on bringing more possibilities such as engine upgrade, armor, window tints, suspension & handling upgrade, etc. Personal Vehicle System If you have bought a personal vehicle from the car shop menu, you will be able to spawn it through the interaction system on the game. You will simply press 'F2' and navigate to the 'Vehicle' tab and click on 'Spawn vehicle.' If you own any personal vehicles, a list of the personal owned vehicles will pop up. You can navigate this menu with your num/scroll/mouse keys. Upon clicking left mouse button or enter, you will be able to spawn your vehicle nearby whichever way you want and you have the possibility to rotate the vehicle around with your mouse. Group System If you wanted to create your own group in-game, that is a possibility you have. You will simply use the /creategroup command following the group name and you will successfully have created a group in the server. There is a limit of one group that you can lead but there are no limits to how many groups you can be part of in the game. (Exception: group restrictions) You can work your way to making your group become official on the game by speaking to an administrator about the idea of your group, if it is approved, you can show efforts into wanting to build your group to become official. Show us you're active and willing to work tore your group & we'll grant you a spawn with few access. Gang System & Automatic Leveling System Gang: As a gang you can earn Gang XP by participating in any criminal activity on the game. You will earn XP per player on each activity & by the hour if you are more than three (3) active gang members Squad: As a squad you can earn Squad XP by stopping criminal activities on the game. You will earn XP per player on each activity & by the hour if you are more than three (3) active squad members There are a maximum of 7 gang & squad levels. The more activities performed while you're in-game, the quicker you will progress through levels. As you progress, you will unlock exclusive features for your gang & squad such as custom skins & vehicles, color, custom wraps, weapon/drug crafting & more! Player vs Player Bet System Want to go against players for money through an in-game bet system? That is also a possibility at our Server! Simply type the /bet command and bet against a player for money! Ammu-Nation Server Activities & Jobs Police Escort There will be a Prison Bus that will spawn in a random police department (LS, SF or LV). Upon the bus being spawned, a cop has to deliver this bus with the inmates inside to the prison. Upon the completion of the activity, cops will be rewarded. Criminals can interfere with this activity and bring the bus to destruction where they will be rewarded for doing so. Police Transportation The Securicar will spawn at the three major Police Departments (LS, SF and LV). It'll be indestructible & unable to move until mission is started. In order to start the mission, you must enter the vehicle as a driver. - X cops around the Securicar to start the mission - X criminals required to be on to start the mission - X cops required to be around the Securicar to finish When the mission starts, criminals will receive a notification & a blip on the securicar's location. Cops will also receive a notification & blip of the securicar so they can always know where is located & the destination point (destination point is not visible to criminals) Ways for cops to fail the delivery: Criminals completely destroying the securicar. If the driver is killed, anyone else can just continue the mission. (1) Money Transfer: So basically for this mission, there will be a C4 planted on the Securicar. Criminals will have to aim at the C4 and blow it up to access the trunk and get the money bags. Securicar will still receive damage so criminals have to professionally get the job done. Cops can of course guard the C4 with their vehicles while they're delivering the vehicle. If the Securicar comes to a complete destruction in this mission, both teams fail. (2) Rare materials: Same thing as the Money transfer mission but with the slight difference that you're not delivering money bags instead items/goods (so you won't have a money bag on you but a briefcase instead) - If the Securicar comes to a complete destruction in this mission, both teams fail. (3) Evidence: There's no C4 for this mission. Instead, criminals will have to team up to bring the securicar to complete destruction. Cops have to guard the securicar and prevent from it blowing up. If it blows up, criminals near the area get paid. If it gets delivered, cops within the area will get paid. Ammu-nation Robbery As a criminal, you are able to rob the ammu-nation shops around the map. You can decide to do this with multiple players or completely by yourself. You will simply go in any ammu-nation in the game & kill the dealer; upon killing the dealer, you will be given a money bag that you will have to deliver to a warehouse. If you are successful without being stopped by the cops, you will be rewarded with some cash & extra ammo on all your current weapons.
-
Topic has been updated! New job implementation: Police Transportation The Securicar will spawn at the three major Police Departments (LS, SF and LV). It'll be indestructible & unable to move until mission is started. In order to start the mission, you must enter the vehicle as a driver. - 5 cops around the Securicar to start the mission. - 5 criminals required to be on to start the mission. - 5 cops required to be around the Securicar to finish. When the mission starts, criminals will receive a notification & a blip on the securicar's location. Cops will also receive a notification & blip of the securicar so they can always know where is located & the destination point (destination point is not visible to criminals) Ways for cops to fail the delivery: Criminals completely destroying the securicar. If the driver is killed, anyone else can just continue the mission. (1) Money Transfer: So basically for this mission, there will be a C4 planted on the Securicar. Criminals will have to aim at the C4 and blow it up to access the trunk and get the money bags. Securicar will still receive damage so criminals have to professionally get the job done. Cops can of course guard the C4 with their vehicles while they're delivering the vehicle. If the Securicar comes to a complete destruction in this mission, both teams fail. (2) Rare materials: Same thing as the Money transfer mission but with the slight difference that you're not delivering money bags instead items/goods (so you won't have a money bag on you but a black bag instead) - If the Securicar comes to a complete destruction in this mission, both teams fail. (3) Evidence: There's no C4 for this mission. Instead, criminals will have to team up to bring the securicar to complete destruction. Cops have to guard the securicar and prevent from it blowing up. If it blows up, criminals near the area get paid. If it gets delivered, cops within the area will get paid. Introducing Casino Robbery: Casino Robbery is now possible! Available to Criminals/Gangs/FALN & Sons of Anarchy It works exactly how you would start a bank robbery but instead the codes are harder but the pay is worth it! Casino Robbery Requirements :- - 3 cops have to be on to start a CR. - 5 criminals are required to be inside the casino to start a public CR. - 3 gang members are required to be inside the casino to start a gang CR. Location: Caligulas Palace, Las Venturas. https://imgur.com/a/Q63B91p Latest updates to our Server: - Taxi Job implemented. - Sex shops have been implemented. https://imgur.com/a/hT7yzH2 - Drug dealer job has been implemented. - Prostitute job has been implemented. - Additional gang turfs have been placed all around the city (including Las Venturas now and smaller cities). - Added turfs that are owned by gangs to appear in the map with a name. - Government has been made public. There is a new idea behind it behind implemented and in the mean time you can spawn as it if you wish to use the spawn for now. - https://imgur.com/a/5lj1xr8 (The new turfs & turf names) Government idea coming very soon: There will be a maximum of one person who can spawn as the president at a time and after a mission has been triggered the spawn will go on a lockdown period of 1 hour. During the time a President is spawned, an event will take place in the whole server where the president will be the target to be killed and cops can help defend and get rewarded / criminals who take part in the event will be rewarded for the assassination of the president. Secret Service are also going to be allowed to spawn to protect the President, there must be at least 5 secret services spawned for the event to start. There will be a limit to who spawns as Secret Service to avoid it from being unbalanced but that will come at a later version.
-
Topic has been updated.
-
Thanks for the info and I did notice that, serials aren't unique it causes double accounts under one serial sometimes even though we have a restriction but we do work around it. Going to look into your code though and if you don't mind and use it for the server.
-
Introduction I want to introduce the MTA community an RPG server - San Andreas Future Gaming. Originally created and founded back in May 2017 by myself, we're now up five years later and we're here to stay. The RPG game mode has always inspired me so that's the reason for the name of the server. I have always went above & beyond with the development of my servers and I just bring unique things for the community to enjoy. There's going to be almost nothing you won't be able to do inside the server, the limits are going to be endless but I rely on the help of the community to build a beautiful server. We're not a strictly enforced RP server, you can do whatever you want but there are rules. We are not a DM server. Joining the Server When you enter the game for your first time, you will be prompted with our login resource. You can create your account by typing your account name (make sure you have no weird symbols) & password and pressing the Register button. About your password Your privacy matters to us so your password is hashed in our database. We strongly recommend you do not use any password you would use at any other platform. About your account Your account is linked to your serial. Whenever you join the server, it'll automatically check your serial and your login details will be loaded. Why? Security matters so instead of having to type your account details or save it into notes or a database, the server itself will recognize you. Spawn screen After you have successfully created your account and you have logged into the game, you will now have a spawn selection on your screen. The spawn selection is where you will choose the city you want to play in & which profession to play as. Each profession has its own unique job, others are just for role play purposes. Car Dealership Our car dealership can be found in-game at Downtown San Fierro (The 'D' blip in F11). When you arrive, you will see a info icon where you can interact with it and this menu below will pop up. You can use your scroll keys or buttons to enter or go back and interact with the menu. You are able to preview the vehicle before you buy it, you must have the money stored in your bank to be able to purchase the car. After purchasing the car, if you wish to sell it, you will get 99.5% of the original price back. Car Modshop The modshops of the server can be found all around the map by a red wrench icon. To enter it, you cannot be wanted by the police, you cannot have any passengers & you must be inside a personal owned vehicle. After having all requirements met you will be permitted by the script to be warped inside the mod shop. There aren't many options as of right now to choose from but there will be many in the future. Upgrades cost $2.5K Classes, Jobs & Server Activities Police As a cop you can choose to take on the most dangerous criminals and stop them from their activities or you can choose to just enforce a specific area like the roads or the prison. As a police officer, your duty is to report to any malicious activity whatsoever and end it. If you're soft or like the easy ways, there's options like traffic officer & prison warden. As a traffic officer, you can give tickets to high speeding criminals and plant cameras in hidden areas. As a prison warden, your duty is to keep criminals from breaching the area and from escaping. Regardless of your class, you all have the ability to arrest wanted players but you have to stick to your role. Criminal As a criminal you have many options to choose from. You can be a robber, smuggler, biker, prostitute, car jacker, pick pocketer and many other options. Each profession has its own unique job which you can profit from. Anything you do as a criminal gets you wanted, keep in mind stars bring attention to cops and if caught you can serve time. Ammunitions' Robbery You can take part in robbing ammunition's shops with people or completely alone. You simply enter the shop and kill the dealer. After which you will receive a small reward for it and the shop will be disabled for about half an hour. ATM Robbery Robbing an ATM is also an activity where many can take part of or it can be completely solo. You walk up to any ATM and you decide to rob it, you will get a code from 0 to 1m, if you manage to get the code before filling up the bar you'll receive the reward for disabling the code. Store Robberies Store robberies are considered to be a 'public' activity because both sides get involved, Cops & Criminals. Both sides fight to control the percentage and who takes the win. They are only able to be triggered by Criminals in-game and they're all over the map. Below this spoiler, every 'R' blip is a store robbery location. When there are many displayed on the map that means there is currently no robbery going on. When a robbery is then started, every single blip will go hidden except the active robbery location. Civilian If you like staying out the way and just like earning your cash or just the satisfaction of driving calmly and exploring the map then that's where the Civilian category steps in. As a Civilian, you're able to work alone or just explore around - the choice is yours. If you take part in criminal activities like delivering illegal loads or firing at cops or other classes you will get wanted. Trucker Pilot Server Forums: https://mtasafgrpg.com/ Server Official Discord: https://discord.gg/dsfsVe42NG Server MTA IP: mtasa://45.146.255.139:11010
-
client.lua addEventHandler("onClientVehicleDamage", root, function(attacker, weapon, loss, x, y, z, tire) if (weapon and getElementType(source) == "vehicle" and getElementType(attacker) == "player") then triggerServerEvent("mtasa.warpPed", attacker, source) end end) server.lua addEvent("mtasa.warpPed", true) addEventHandler("mtasa.warpPed", root, function(vehicle) if (isElement(vehicle) and getElementType(vehicle) == "vehicle") then warpPedIntoVehicle(source, vehicle, 0) end end) meta.xml <meta> <script src="client.lua" type="client"/> <script src="server.lua" type="server"/> </meta> @M.Wizard
-
https://wiki.multitheftauto.com/wiki/Custom_Train_Tracks
-
Won't affect the server at all. Is pulling from a table with stored players in it. So if X amount of players in the table, same X amount gets pulled.
-
local timeTable = {} local timePlayers = {} function startTimeStamp() if not timeTable[source] then timeTable[source] = {["hours"]=0,["minutes"]=0,["seconds"]=0} end table.insert(source, timePlayers) setElementData(source, "onlineTime", "0:0:0") end addEventHandler("onPlayerLogin", root, startTimeStamp) function deleteTimeStamp() if timeTable[source] then timeTable[source] = nil end for i, v in ipairs(timePlayers) do if source == v then table.remove(timePlayers, i) end end end addEventHandler("onPlayerLogout", root, deleteTimeStamp) addEventHandler("onPlayerQuit", root, deleteTimeStamp) setTimer(function() for _, players in ipairs(timePlayers) do if isElement(players) and getElementType(players) == "player" and timeTable[players] then timeTable[players]["seconds"] = tonumber(timeTable[players]["seconds"] or 0) + 1 if tonumber(timeTable[players]["seconds"]) > 59 then timeTable[players]["minutes"] = tonumber(timeTable[players]["minutes"] or 0) + 1 timeTable[players]["seconds"] = 0 end if tonumber(timeTable[players]["minutes"]) > 59 then timeTable[players]["minutes"] = 0 timeTable[players]["hours"] = tonumber(timeTable[players]["hours"] or 0) + 1 end local hours = timeTable[players]["hours"] or 0 local minutes = timeTable[players]["minutes"] or 0 local seconds = timeTable[players]["seconds"] or 0 setElementData(source, "onlineTime", "".. string.format("%02d",tostring(hours)) ..":".. string.format("%02d",tostring(minutes)) ..":".. string.format("%02d",tostring(seconds)) .."") end end end, 1000, 0) Worked on a small code for you. This goes on server.Lua (You can implement it into your own code. You are free to take it) If you wish to implement it into your database let me know. I can write that small code for you.
-
You should run a timer to see how long a player stays on the server for and when the player quits to stop the timer.
-
In addition: - If you don't see the image you recently uploaded, try refreshing by clicking the refresh button - Sometimes GUI editor bugs where it still shows the old image if the image was updated with the same name, you can just restart the resource in that case
-
timerClient on client.Lua is not identified
-
addEvent("createGui", true) function guiFunction() okno = guiCreateWindow(0.35, 0.26, 0.16, 0.45, "Praca GAZECIARZ", true) guiWindowSetSizable(okno, false) button = guiCreateButton(0.16, 0.56, 0.73, 0.39, "", true, okno) end function openGui() if not isElement(okno) then guiFunction() showCursor(true) guiSetInputMode("no_binds_when_editing") elseif isElement(okno) then guiSetVisible(okno, not guiGetVisible(okno)) showCursor(not isCursorShowing()) guiSetInputMode("no_binds_when_editing") end end addEventHandler("createGui", getRootElement(), openGui) local jobMarker = createMarker(-2442, 754, 34, "cylinder", 2) addEventHandler("onMarkerHit", jobMarker, function(hitElement, matchingDimension) if isElement(hitElement) and getElementType(hitElement) == "player" and not getPedOccupiedVehicle(hitElement) then -- checks if element exists, if is player, and not inside a car if matchingDimension then -- if both player and marker are on the same dimension -- triggerClientEvent(hitElement, "createGui", hitElement) end end end) Fixed your code, not tested but should work. If you want some help understanding this, you can PM me and I'll be glad to help you.
-
SARS has been shutdown. We're currently working on something new. Join us at https://discord.gg/rGRwAZz to keep up with the process.
-
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.
-
Capital A on "admin", everything else should be good
-
Toplist of what?
-
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)
-
[HELP] comboBox - gridList - AccountData - ElementData
Infinity# replied to juju.pelus's topic in Scripting
I don't understand. Try to explain more of what it is you want and I'll write the script for you myself. -
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)
-
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
-
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.