team score
#1

hello iam working on team death match server

what iam trying todo is

on team reach determined score the game ends
also when a member of a team kill one of the opposite team team get 1 score so when the team get 100 kills from all players it end the games and the team with the 100 kills or score wins

please help me....

iam trying to base on this 2 codes:

Код:
	LoLTeam++;
	KillTimer(ExplosionTimer);
	GameTextForAll("~b~ LOL team won this round", 3000, 6);
	SetTimer("ResetRound", 3000, false);
Reply
#2

Hey, thats almost the whole script you need lol
I guess it will help you a bit

new Team1[MAX_PLAYERS];
new Team2[MAX_PLAYERS];
new score1,score2;

public OnPlayerDeath(playerid, killerid, reason)
{

if(Team1[killerid] != Team1[playerid]) // if it is not a teamkill
{
score1 ++;
if(score1 == 100)
{
//write here that the team 1 has won etc.
return 0;
}
}

if(Team2[killerid] != Team2[playerid]) // if it is not a teamkill
{
score2 ++;
if(score2 == 100)
{
//write here that the team 2 has won etc.
return 0;
}
}
return 1;
}
Reply
#3

Quote:
Originally Posted by Kmitska
Посмотреть сообщение
Hey, thats almost the whole script you need lol
I guess it will help you a bit

new Team1[MAX_PLAYERS];
new Team2[MAX_PLAYERS];
new score1,score2;

public OnPlayerDeath(playerid, killerid, reason)
{

if(Team1[killerid] != Team1[playerid]) // if it is not a teamkill
{
score1 ++;
if(score1 == 100)
{
//write here that the team 1 has won etc.
return 0;
}
}

if(Team2[killerid] != Team2[playerid]) // if it is not a teamkill
{
score2 ++;
if(score2 == 100)
{
//write here that the team 2 has won etc.
return 0;
}
}
return 1;
}
thanks! i will test it...
Reply
#4

Quote:
Originally Posted by Hailine
Посмотреть сообщение
thanks! i will test it...
thank you worked perfect!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)