All pastes #526203 Raw Edit

Stuff

public text v1 · immutable
#526203 ·published 2007-05-31 18:29 UTC
rendered paste body
new string[256];
	if (gTeam[killerid] != gTeam[playerid])
		{
		SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
		if (gTeam[killerid] == SAB)
			{
			gSAB += 1;
			if (gSAB == 100)
				{
				format(string, sizeof(string),"~y~SAB ~w~won the war!!~n~Final results:~n~[SAB] = %d [-D-] = %d", gSAB, gVisitors);
				GameTextForAll(string, 20000, 6);
				SetTimer("OnGameModeExit", 20000, 0);
				for(new i=0;i<MAX_PLAYERS;i++)
					{
					TogglePlayerControllable(i, 0);
					}
				}
			}
		else if (gTeam[killerid] == Visitors)
			{
			gVisitors += 1;
			if (gVisitors == 100)
				{
				format(string, sizeof(string),"~y~[!] ~w~won the war!!~n~Final results:~n~[SAB] = %d [-D-] = %d", gSAB, gVisitors);
				GameTextForAll(string, 20000, 6);
				SetTimer("OnGameModeExit", 20000, 0);
				for(new i=0;i<MAX_PLAYERS;i++)
					{
					TogglePlayerControllable(i, 0);
					}
				}
			}
		}
	if (gTeam[killerid] == gTeam[playerid])
		{
		SetPlayerScore(killerid, GetPlayerScore(killerid)-1);
		SendClientMessage(playerid, COLOR_RED, "*** DONT TEAMKILL, YOU LOST 1 POINT***");
		}
	return 1;
}