undefined

Members
  • Content Count

    502
  • Joined

  • Last visited

Community Reputation

11 Decent

3 Followers

About undefined

  • Rank
    Playa Partner
  • Birthday 01/01/1981

Recent Profile Visitors

1,071 profile views
  1. undefined

    math.random

    random_number = function(first, second) if first < 0 and second < 0 then return -math.random(math.abs(first), math.abs(second)) elseif first > 0 and second < 0 then if math.random(2) == 1 then return math.random(0, first) else return -math.random(0, math.abs(second)) end elseif first < 0 and second > 0 then if math.random(2) == 1 then return -math.random(0, math.abs(first)) else return math.random(0, second) end else return math.random(first, second) end end Solved.
  2. https://community.mtasa.com/?p=resources&s=details&id=15483 https://community.mtasa.com/index.php?p=resources&s=details&id=14542 DONE
  3. player_tbl = { index = { in_zone = false, zombie_proof = false, zombies = {}, zombie_limit = 60, create_zombie = function(player) outputChatBox("test") if player.zombie_proof or not player.in_zone or isPedDead(player.element) then return end local zombie_count = 0 while zombie_count < 3 do triggerClientEvent ("find_spawn_location", player.element) zombie_count = zombie_count + 1 end end }, players = {} } addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do local self = setmetatable({ element = player }, { __index = player_tbl.index }) table.insert(player_tbl.players, self) Timer(function(self) self:create_zombie() -- this line --self.create_zombie(self) -- or this line end, 10000, 0, self) end end) What is the cause of the mistake?
  4. Script has 2 language(Turkish and English). You can change it with 'selected' variable in options.lua. Current language is Turkish. This script brings the limit to the player's gun and bullets. For example, the player can have a maximum of 1 melee weapon and 2 weapons. All the required properties can be changed in the options.lua file. Link: https://community.mtasa.com/?p=resources&s=details&id=15483 Video:
  5. undefined

    Opening GTA

    https://pastebin.mtasa.com/103562576
  6. undefined

    Opening GTA

    The GTA is opening when I try to open MTA. How can i fix it? I have tried to solve it many times. I formatted the computer. But it did not improve.
  7. undefined

    SQL Error!

    Send creating table row.
  8. Script has 5 parchments. These;Extra Health:- When you bought a parchment from the extra health section, the parchment increases your maximum health according of the parchment quality you bought. Your money will not be refunded if you cancel.Heal:- When you bought a parchment from the heal section, your health increases in the amount specified in the specified repetition time. Your money will not be refunded if you cancel.Prevent Damage:- When you bought a parchment from the prevent damage section, the damage you receive is reduced at the specified rates. Falling, drowning and so on are not included. Your money will not be refunded if you cancel.Extra Damage:- When you bought a parchment from the extra damage section, when you damage a car or a player with a weapon, your damage increases in the specified rate. Your money will not be refunded if you cancel.Money:- When you bought a parchment from the money section, the money you give to buy the parchment increases in the specified and the money is returned to you when the time is up. Your money will be refunded if you cancel. I think it would be useful for freeroam servers. Comment if you encounter an error. Click for download İmages Version 1.0.0 #CrawL helped me for testing script. Thanks.
  9. undefined

    onColShapeHit

    setWeaponProperty(weapon,level,"flag_anim_crouch", false)
  10. local xml = addResourceMap(":File/map2.map", 0) local map = xmlFindChild(xml, "map", 0) xmlNodeSetAttribute(map, "src", "map2.map") You can do it manual.
  11. local szefpozicio = { {2485.87524, -1666.34705, 13.34380}, {2487.87526, -1666.34705, 13.34380} } local szef = createObject (2634, unpack(szefpozicio[1])) local szefrectangle = createColRectangle (2485.8720703125, -1665.8211669922, 5, 5) function szefopen(jatekos) if isElementWithinColShape (jatekos, szefrectangle) then moveObject (szef, 5000, unpack(szefpozicio[2])) outputChatBox (math.random(1, 2)) end end addCommandHandler ("felfeszit", szefopen)
  12. Because i wrote it for 1B0Y's code. You should use both.