Im looking for a way to start a script for all players. I using pol 095 and I tried a way I thought would work.
Code: Select all
local players := EnumerateOnlineCharacters();
local numplayer := len(players);
local player;
local i := 0;
for (i := 1; i <= numplayer; i := i + 1)
player := players[i];
If (player.cmdlevel==0)
start_script( "::XXX", player );
endif
endfor