Didn't you make the same post in Triggering and Editing O.o....
but this post makes more sense...
Copied from JJCP, with a bit of editing:
Code:
globals
trigger t2t=CreateTrigger()
...
endglobals
function ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function main takes nothing returns nothing
local player p2p=Player(SomeNumber)
call TriggerRegisterPlayerUnitEvent(t2t,p2p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t2t,p2p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t2t,p2p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t2t,p2p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t2t,p2p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call TriggerAddAction(t2t,function ResetCD)
...
endfunction
just replace SomeNumber with the number of the player you want nocd for (red=0, blue=1, etc)
or if you want everyone to have nocd, loop it through 11 (brown)