Kills Problem
#1

Hello,

I am getting problem.
My script :-
Код:
if(MapKillsSoldiers > MapKillsTerrorists)
    {
        new string[126];
        format(string, sizeof(string), "Terrorists won this match by killing %d Soldiers", MapKillsTerrorists);
        SendClientMessageToAll(0xFF0000C8, string);
        GiveTerroristTeamScore(5);
    }
    else if(MapKillsSoldiers < MapKillsTerrorists)
	{
	    new string[126];
        format(string, sizeof(string), "Soldiers won this match by killing %d Terrorists", MapKillsSoldiers);
        SendClientMessageToAll(0xFF0000C8, string);
        GiveSoldierTeamScore(5);
	}
It always says Terrorist won this round.. even if Soldiers kills are more.
How to fix it?
Reply
#2

Put the code where you are adding kills to the teams
Reply
#3

test the MapKillsSoldiers, MapKillsTerrorists variables (printf)
give us the code where those variables increase,
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)