Ciastuuś

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

16 Decent

3 Followers

About Ciastuuś

  • Rank
    Civilian
  • Birthday 20/08/1999

Details

  • Gang
    Lua
  • Location
    Poland
  • Occupation
    Help people in Lua

Recent Profile Visitors

610 profile views
  1. Użyj tego, https://wiki.multitheftauto.com/wiki/OnClientRender
  2. Połączyłeś się z bazą danych? Masz nadane uprawnienia w bazie danych? Błędy w /debugscript 3?
  3. https://community.mtasa.com/index.php?p=resources&s=details&id=8209 https://community.mtasa.com/index.php?p=resources&s=details&id=4892
  4. function CommandHandler( thePlayer ) local loginACL = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user."..loginACL.."", "Straz Pozarna") then setElementPosition (thePlayer, -2066.3000488281 ,17.700000762939 ,35.299999237061 ) outputChatBox("Witaj na spawnie!", thePlayer) else outputChatBox("Nie jesteś w Straży Pożarnej!", thePlayer) end end addCommandHandler ( "psp", CommandHandler )
  5. Hi, I have a question. How to rotate in a different direction? Because it looks like this: Server: Code: local x,y = guiGetScreenSize() local show = true function dxDrawCircle( posX, posY, radius, width, angleAmount, startAngle, stopAngle, color, postGUI ) if ( type( posX ) ~= "number" ) or ( type( posY ) ~= "number" ) then return false end local function clamp( val, lower, upper ) if ( lower > upper ) then lower, upper = upper, lower end return math.max( lower, math.min( upper, val ) ) end radius = type( radius ) == "number" and radius or 50 width = type( width ) == "number" and width or 5 angleAmount = type( angleAmount ) == "number" and angleAmount or 0 startAngle = clamp( type( startAngle ) == "number" and startAngle or 0, 0, 360 ) stopAngle = clamp( type( stopAngle ) == "number" and stopAngle or 360, 0, 360 ) color = color or tocolor( 25, 25, 25, 0 ) postGUI = type( postGUI ) == "boolean" and postGUI or false if ( stopAngle < startAngle ) then local tempAngle = stopAngle stopAngle = startAngle startAngle = tempAngle end for i = startAngle, stopAngle, angleAmount do local startX = math.cos( math.rad( i ) ) * ( radius - width ) local startY = math.sin( math.rad( i ) ) * ( radius - width ) local endX = math.cos( math.rad( i ) ) * ( radius + width ) local endY = math.sin( math.rad( i ) ) * ( radius + width ) dxDrawLine( startX + posX, startY + posY, endX + posX, endY + posY, color, width, postGUI ) end return true end local health = tonumber(getElementHealth(localPlayer)) or 0 local armor = tonumber(getPedArmor(localPlayer)) or 0 local hunger = getElementData(localPlayer, "gracz:glod") local thirsty = getElementData(localPlayer, "gracz:spragnienie") function drawCircleHud() if (show==true) then dxDrawCircle(x-250, 35, 0.1, 22.1, 1, 0, 360, tocolor(25, 25, 25)) dxDrawCircle(x-250, 35, 24, 2, 1, 0, health*3.6, tocolor(255, 50, 50)) dxDrawImage(1657, 24, 24, 24, "grafika/zycie.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawCircle(x-180, 35, 0.1, 22.1, 1, 0, 360, tocolor(25, 25, 25)) dxDrawCircle(x-180, 35, 24, 2, 1, 0, armor*3.6, tocolor(66, 134, 244)) dxDrawImage(1728, 24, 24, 24, "grafika/kamizelka.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawCircle(x-110, 35, 0.1, 22.1, 1, 0, 360, tocolor(25, 25, 25)) dxDrawCircle(x-110, 35, 24, 2, 1, 0, hunger*3.6, tocolor(158, 97, 29)) dxDrawImage(1800, 24, 24, 24, "grafika/glod.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawCircle(x-40, 35, 0.1, 22.1, 1, 0, 360, tocolor(25, 25, 25)) dxDrawCircle(x-40, 35, 24, 2, 1, 0, thirsty*3.6, tocolor(14, 173, 175)) dxDrawImage(1869, 24, 24, 24, "grafika/spragnienie.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end end addEventHandler("onClientRender", root, drawCircleHud) local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end end)
  6. Thanks, A bilingual system will soon be added, thanks to which English subtitles will also be available.
  7. Server name: [PL] Endless War - Polski Serwer Wojny Gangów | Discord.io/EndlessWar IP: mtasa://178.33.54.32:20008 Slots: 40 Gamemode: Gang Wars / TDM / Freeroam Forum: http://endlesswar.pl Discord: https://discord.io/EndlessWar We present you the server Endless War - Gang Wars / TDM with elements Freeroam's. Bored with the same ideas repeated over and over again, we decided to create a place where you can live, shoot and relax from the rules of roleplay and feel the original atmosphere of the single San Andreas. This is the official, reactivated and corrected gamemode. Playing at the Endless War has never been so enjoyable! There are 6 gangs to choose from: Grove Street Families, Ballas, Los Santos Vagos, Varrios Los Aztekas, Mafia i Policja. The action mainly takes place in the areas of Los Santos. Each team has unique skins, sets of weapons and headquarters. You can take on many interesting tasks on our server. Have you ever wanted to rob a bank, but no other server has allowed you to do it? It is possible with us! All you have to do is gather at least three gang members, break through to the diligently guarded bank and start the robbery. But you have to be careful, the police were ready for such an eventuality ... Do you need fast cash? What do you say about robbing other gang of drugs? All you have to do is sit down to Picador, get to the enemy's headquarters and come back with the goods to you. It's simple, right? Attack enemy territory to provide your team with an additional source of cash. Visit Ammunation, arm yourself, take a few people to help and get to work! Are you tired of the constant battle with other players? Duel 1v1? Derby? This and many other automatic attractions can be found on our server! On our server it is possible to choose a different sight, a weapon skins, mounting a silencer for a rifle and many other such things. On the server you can buy a VIP account for a low price. In return, you will receive an iPhone that gives you access to many interesting things, such as the possibility of spawn saved by you vehicle, teleporting the player to yourself and to him, the possibility of buying weapons anywhere, a special chat and many more! --- There are many other attractions that we have not mentioned here. You are also cordially invited! See you on the server! A bilingual system will soon be added, thanks to which English subtitles will also be available. --- Subtitles in language PL-EN
  8. Hi, Because we have an atmosphere called winter, why is it only in reality? Abo, because you do not have this script that will add a winter climate to your server and its players. Together with the team, we have created another project! F7 - turning off the snow on the screen Download: https://www55.zippyshare.com/v/cwmhgfTo/file.html Video:
  9. Hello. Today I am giving you a gamemode inspired by the PUBG game! Without unnecessary talk, I will show you how to properly enable gamemode! It's easy to run this gamemode. Begin with adding this to mods > deathmatch > acl > "Admin" group bottom: <object name="resource.pubg"></object> <object name="resource.pubg_config"></object> So it will look like this: <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.acpanel"></object> <object name="resource.pubg"></object> <object name="resource.pb_config"></object> *optionally; admin account for you, using <object name="user.yourAccount"></object> at the bottom. After doing that, open mtaserver.conf and add this at bottom (REMOVE all existing auto-start resources); <!-- pubg is the default gamemode. Remove the following line to prevent it from starting. --> <resource src="pubg" startup="1" protected="0" /> The main gamemode is supposed to start all other depending resources with <include resource="resourceName" /> in meta.xml of the main gamemode resource. So, after adding "pubg" / the main resource to autostartup, it should be sorted already. Now, start the server and play! No accounts or SQL DB required for playing, guest-based! It also contains commands such as: pb-start force || This command forces gamemode start, no matter the amount of players in lobby. pb-starttimer || This command force-starts the timer (default: 60 secs) to start running before auto-launching a new game from lobby, irrespective of amount of players. pb-end dimension || Ends a certain gaming session abruptly, use the dimension ID's for lobbies that are printed to Server console (MTA Server(64).exe) to identify and stop a game while its still running. pb-minplayers [min] || Override a player minimum for specific lobby Video: Download: https://www91.zippyshare.com/v/aSjy6xLh/file.html