function PingMinimapForPlayer takes player whichPlayer, real x, real y, real duration returns nothing
if (GetLocalPlayer() == whichPlayer) then
call PingMinimap(x, y, duration)
endif
endfunction
local integer transparency = 0
if GetLocalPlayer() != GetTriggerPlayer() then
set transparency = 100
endif
call SetUnitVertexColoring( 100, 100, 100, transparency ) // or whatever function name is.