Event system
#1

First hello guys, i made my event system and all maps is dm i don't know how i make TDM because its /event and it with textdraw countdown so i don't know how i make Team Balancer, Any help please.
Reply
#2

Код:
#define TEAM_A 0
#define TEAM_B 1

new CountT_A, CountT_B;

if(CountT_A < 1 || CountT_A < CountT_B)
{
	SetPlayerTeam(playerid, TEAM_A);
	++ CountT_A;
}
else if(CountT_B < 1 || CountT_B < CountT_A)
{
	SetPlayerTeam(playerid, TEAM_B);
	++ CountT_B;
}
Reply
#3

Any example code with /event pls
Reply
#4

Код:
CMD:event(playerid)
{
	if(CountT_A < 1 || CountT_A < CountT_B)
	{
		SetPlayerTeam(playerid, TEAM_A);
		++ CountT_A;
		
		SendClientMessage(playerid, -1, "You're in team A");
		
		SetPlayerPos(playerid, x, y, z); // pos of team a
	}
	else if(CountT_B < 1 || CountT_B < CountT_A)
	{
		SetPlayerTeam(playerid, TEAM_B);
		++ CountT_B;
		
		SendClientMessage(playerid, -1, "You're in team B");
		
		SetPlayerPos(playerid, x, y, z); // pos of team b
	}
	return true;
}
Reply
#5

Thanks very much
Reply


Forum Jump:


Users browsing this thread: