local integer i = 0
if bj_isSinglePlayer == true then
loop
exitwhen i == GetPlayersAll()
call CustomDefeatBJ(Player(i), "Single player is not allowed !")
set i = i + 1
endloop
endif
exitwhen i == bj_forceCountPlayers
local integer i = 0
if bj_isSinglePlayer == true then
loop
exitwhen i = 11
call CustomDefeatBJ(Player(i), "Single player is not allowed !")
set i = i + 1
endloop
endif
Why would you want such a dumb and stupid system you fool!
Simply do what all good RPGs do and disable the save/load system from functioning if only 1 human player is present. That way people like your map more, your map has a greater chance of being approved and no one can cheat. You can do this by counting the number of human players that are present and if they equal 1 then disabling the triggers that handle saving and loading.
bj_isSinglePlayer == true also does not stop cheating, as they could make a LAN game and hack them selves a hero of strong power by using a memory editor which is totally legal as they are not using it online.
Also implimenting a single player kick system is asking for your map to be ripped and ruined (people have a reason to do so) and that kind of trigger is insainly easy to edit and disable no matter how well you try and protect your map.
(Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))) Equal to 1
~Thread closed; PM me if you want it reopened OmegaOne.seems to work perfect, thanks again wolf![]()