Sorry took so long. It is a rather simple code.
I borrowed the unally function from JJ's CP so it SHOULD work. Couldn't test it tough...
Under Globals
Code:
trigger trgUnAlly=CreateTrigger()
Under endglobals
Code:
function trgUnAllyAction takes nothing returns nothing
local integer i=0
if (StringCase(GetPlayerName(GetTriggerPlayer()),false)==StringCase("enter name here",false)) then
loop
exitwhen i>15
if GetPlayerId(GetTriggerPlayer())!=i then
call SetPlayerAllianceStateAllyBJ(GetTriggerPlayer(),Player(i),false)
call SetPlayerAllianceStateAllyBJ(Player(i),GetTriggerPlayer(),false)
call SetPlayerAllianceStateVisionBJ(GetTriggerPlayer(),Player(i),false)
endif
set i=i+1
endloop
endif
endfunction
function initUnAlly takes nothing returns nothing
local integer i=0
loop
exitwhen i>11
call TriggerRegisterPlayerChatEvent(trgUnAlly,Player(i),"-unally",true)
set i=i+1
endloop
call TriggerAddAction(trgUnAlly, function trgUnAllyAction)
endfunction
under the locals of function main.
Code:
call initUnAlly()
It will only work if your name is "enter name here"
It will NOT be case sensitive so you got nothing to worry about capital and lower case letters.