Jump to content
Sign in to follow this  
azams

[ASK] End by score - TDM

Recommended Posts

That is how mine is ment to look, read the comments in the script.

//west won, show end1 with closing shot, called on all west players via BIS_fnc_MP

[["end1",true,true],"BIS_fnc_endMission", west, false] call BIS_fnc_MP;

//east failed, show end2 fade to black, called on all east players via BIS_fnc_MP

[["end2",true,5],"BIS_fnc_endMission", east, false] call BIS_fnc_MP;

See WIKI for command parameters BIS_fnc_endMission

when he lost want it to end like this:y5qd.jpg

but to say "you've lose"

Share this post


Link to post
Share on other sites

[/color]

if (isServer) then {

   GameFinished = false;

   while {!(GameFinished)} do {
       if ( (scoreSide west >= (paramsArray select 0)) || (scoreSide east >= (paramsArray select 0)) ) then {
           if ( scoreSide west > scoreSide east ) then {
               //west won, show end1 with closing shot, called on all west players via BIS_fnc_MP
               [["end1",true,true],"BIS_fnc_endMission", west, false] call BIS_fnc_MP;
               //east failed, show end2 with closing shot, called on all east players via BIS_fnc_MP
               [["end2",true,true],"BIS_fnc_endMission", east, false] call BIS_fnc_MP;
           }else{
               //east won, show end1 with closing shot, called on all east players via BIS_fnc_MP
               [["end1",true,true],"BIS_fnc_endMission", east, false] call BIS_fnc_MP;
               //west failed, show end2 with closing shot, called on all west players via BIS_fnc_MP
               [["end2",true,true],"BIS_fnc_endMission", west, false] call BIS_fnc_MP;
           };

           GameFinished = true;
       };

       sleep 1;
   };
};  

I could fix the problem =)

Iceman77 and larrow

Thank you very much for your help! =)

Edited by exevankeko

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×