pawn Код:
if(PlayerTeam == BLUE_TEAM) // Guessing the Blue team is defined as this
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z)) // Enter your X,Y,Z there of the flag.
{
SendClientMessage(playerid, COLOUR, "You have captured the flag, Your team wins);
SendClientMessageToAll(COLOUR, "Blue team has won!");
SetPlayerPos(playerid, X, Y, Z);
}
else if(PlayerTeam == RED_TEAM) // Guessing the Blue team is defined as this
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z)) // Enter your X,Y,Z there of the flag.
{
SendClientMessage(playerid, COLOUR, "You have captured the flag, Your team wins);
SendClientMessageToAll(COLOUR, "Red team has won!");
SetPlayerPos(playerid, X, Y, Z);
}
}
return 1;
}
Something similar to that should work.