Code:
call TriggerRegisterAnyPlayerChatEvent
If this native list ever existed. We have already used it in the JASS pack.
Too Bad there is no such native list.
In another word, it doesn't work.
To save some spaces. The only way to do it is to Loop the integer.
Code:
local integer i7=0
loop
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(i7),"-cheat",false)
set i7=i7+1
exitwhen i7>11
endloop
But .....
There is a reason Aero do his code that way.
Because it runs faster, without loops:
Code:
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(0),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(1),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(2),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(3),"-cheat",false)
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,Player(4),"-cheat",false)
etc...
there is another way to do it. But I haven't tested it yet, so it may not work.
You may test it yourself if you are interested.
Code:
call TriggerRegisterPlayerChatEvent(cp_ICHEAT,GetLocalplayer(),"-cheat",false)