تفضل
myMarker = createMarker( 2485.64136, -1666.60461 ,12.5, "cylinder", 2.0, 255, 0, 0, 150)
hillRadar = createRadarArea ( 2485.64136, -1666.60461, 111, 440, 255,255,255, 175 )
local Settings = {
-- { team name , r , g , b , alpha }
{'Progamer',255,0,255,190},
}
local time = 1
addEventHandler( "onMarkerHit", myMarker, function ( checkPla )
if ( getElementType ( checkPla ) == "player" ) then
if ( getElementData ( myMarker , 'MarkerData' ) ~= true ) then
for i,v in ipairs ( Settings ) do
if ( getPlayerTeam ( checkPla ) and getTeamName( getPlayerTeam ( checkPla ) ) == ( v[1] ) ) then
setRadarAreaColor ( hillRadar, v[2],v[3],v[4], v[5] )
setElementData ( myMarker , 'MarkerData' , true )
setTimer ( function ( )
setElementData ( myMarker , 'MarkerData' , nil)
end,time * 60000,1)
end
end
else
outputChatBox('Please Wait '..time..' Min',checkPla,255,0,0,true)
end
end
end
)