Jump to content
  • 0

war zone


Andr3y

Question

Am incercat sa fac si eu zona la war dar nu merge deci: am pus la inceput 

new zonawar;

apoi la OnGameModeInit am pus

warzone = GangZoneCreate(1227.469, -1291.036, 1524.091, -1077.857);
la on playerspawn
GangZoneFlashForPlayer(playerid, warzone, COLOR_RED);
apoi comanda
if(strcmp(cmd, "/war", true) == 0)

    {

      GetPlayerName(playerid, sendername, sizeof(sendername));

      if(IsPlayerConnected(playerid))

      {

        if(WarDuty == 0)

        {

          if (PlayerInfo[playerid][pAdmin] >= 1337)

          {

            format(string, sizeof(string), "Warul a fost pornit de %s!", sendername);

            SendClientMessageToAll(0xFF7171FF, string);

            format(string, sizeof(string), " Ballas, Los Santos Vagos, The Mafia & Varrios Los Aztecas, Grove Street, The Triads");

            SendClientMessageToAll(COLOR_GREEN, string);

            Alianta1 = 0;

            Alianta2 = 0;

            WarDuty = 1;

            GangZoneFlashForPlayer(playerid, warzone, COLOR_RED);

            for(new i = 0; i < MAX_PLAYERS; i++)

            {

              if(IsAMember(i))

              {

                WarOn = 1;

              }

            }

            SetTimer("stopwar", 1800000,0);

          }

          else

          {

              SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti admin  !");

          }

        }

        else

        {

                SendClientMessage(playerid, COLOR_GRAD1, "  Este deja War-ul pornit !");

        }

      }

      return 1;

    }

cam asta e... si la fel cu gangzoneflashforall

si cand dau /war nu se intampla nimic ...stie cineva ce trebuie sa fac?

Snapshot_2012_03_07_003934.jpg
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.