Jump to content

dewek

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

dewek's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. https://community.multitheftauto.com/index.php?p=resources&s=details&id=14950 wht not download sir??
  2. Hello, sorry for my bad english i have turf war script, please how to display radar to the team?. local turf = {} local timer = {} local turfCount = {} local turfName = {} local isSomebodyInTurf = {} local capture = {} local radar = {} local turfOwner = {} function createTurfs() for index, ent in pairs(theTurfs) do local area = createColRectangle(ent[1], ent[2], ent[3], ent[4]) local r = createRadarArea(ent[1], ent[2], ent[3], ent[4], 255, 255, 255, 170) radar[area] = r turf[area] = ent[5] turfName[area] = ent[5] end end addEventHandler("onResourceStart", resourceRoot, createTurfs) function checkPlayersInTeam() for _, player in ipairs(exports.pool:getPoolElementsByType("player")) do if getElementData(player, "loggedin") then local Team = getPlayerTeam(player) local factionType = getElementData(Team, "type") or 99 if (factionType==0) then setElementVisibleTo(radar[source], player, true) -- i want to show the area to player who factiontype is 0 (when i change player with root it works show the area) else setElementVisibleTo(radar[source], player, false) -- i want to hide the area to player who factiontype is not 0 (when i change player with root it works hide the area) end end end end function turfhide() setTimer(checkPlayersInTeam, 5000, 0) end addCommandHandler("hideturf", turfhide, false, false)
×
×
  • Create New...