Deathmatch help
#5

Код:
#define ROUNDWON 30

enum dmteams {
	Red,
	Blue,
}
new DMScore[dmteams];

public OnPlayerDeath(playerid, killerid, reason){
	if(gTeam[killerid] == TEAM_RED)DMScore[Red]++;
	if(gTeam[killerid] == TEAM_BLUE)DMScore[BLUE]++;
	if(DMScore[Red] == ROUNDWON)SendClientMessageToAll(0xffffff,"Red has won the match);
	if(DMScore[Blue] == ROUNDWON)SendClientMessageToAll(0xffffff,"Blue has won the match);
	return 1;
}
how about this
Reply


Messages In This Thread
Deathmatch help - by reallifescript - 22.06.2010, 21:18
Re: Deathmatch help - by reallifescript - 23.06.2010, 09:43
Re: Deathmatch help - by (SF)Noobanatior - 23.06.2010, 09:57
Re: Deathmatch help - by reallifescript - 23.06.2010, 10:02
Re: Deathmatch help - by (SF)Noobanatior - 23.06.2010, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)