DM zone with a "capture the..." idea
#3

Quote:
Originally Posted by Dokins
Посмотреть сообщение
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.
You forgot to close the two strings
Reply


Messages In This Thread
DM zone with a "capture the..." idea - by Gemini - 11.09.2011, 17:49
Re: DM zone with a "capture the..." idea - by Dokins - 11.09.2011, 18:23
Re: DM zone with a "capture the..." idea - by Sasino97 - 11.09.2011, 19:13
Re: DM zone with a "capture the..." idea - by Gemini - 11.09.2011, 19:36
Re: DM zone with a "capture the..." idea - by Gemini - 12.09.2011, 07:38
Re: DM zone with a "capture the..." idea - by HotPlayer - 12.09.2011, 07:40
Re: DM zone with a "capture the..." idea - by Gemini - 12.09.2011, 07:57
Re: DM zone with a "capture the..." idea - by iggy1 - 12.09.2011, 08:19
Re: DM zone with a "capture the..." idea - by rangerxxll - 12.09.2011, 08:23
Re: DM zone with a "capture the..." idea - by Dokins - 12.09.2011, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)