local CreatedTeam = createTeam ( 'Prestege',255,0,0 )
Radar = { }
addEventHandler('onPlayerJoin',root,
function ( )
setPlayerTeam ( source,CreatedTeam )
end
)
addEventHandler('onPlayerSpawn',root,
function ( _,_,_,_,team )
setTimer (
function ( source )
if team and not isElement ( Radar [ source ] ) then
local r,g,b = getTeamColor ( team )
local x,y = 500,500
Radar [ source ] = createRadarArea ( x,y,50,50,r,g,b,255,source )
end
end,1000,1,source
)
end
)
x,y = احداثيات الرادار
50,50 = حجمة
ذذ
هذا مثال للرادار غيره ماعندي قصدي صار الكود كامل ذذ