SetPlayerAllianceBJ

Parameters
sourcePlayer player
whichAllianceSetting alliancetype
value boolean
otherPlayer player
return type
nothing
Source code
function SetPlayerAllianceBJ takes player sourcePlayer, alliancetype whichAllianceSetting, boolean value, player otherPlayer returns nothing
    // Prevent players from attempting to ally with themselves.
    if (sourcePlayer == otherPlayer) then
        return
    endif

    call SetPlayerAlliance(sourcePlayer, otherPlayer, whichAllianceSetting, value)
endfunction
Source
Blizzard.j
wc3modding.com
SetPlayerAllianceBJ