Jump to content

monster010

Membru
  • Posts

    365
  • Joined

  • Last visited

Posts posted by monster010

  1. Ca sa faci un HQ trebuie modifici spawn-ul la acea factiune cu coordonatele interiorului . Dupa trebuie sa faci doua comenzi, de intrat si iesire.

    if(strcmp(cmdtext, "/enter", true) == 0)

        {

        if(PlayerInfo[playerid][pMember] >= [iDfactiune.member] || PlayerInfo[playerid][pLeader] >= [iDfactiune.leader])

      {

    if PlayerToPoint(5,playerid,[Coordonatele in care sa se execute comanda])

    {

      SetPlayerPos(playerid,[Coordonatele interiorului]);

      SetPlayerInterior(playerid,[iD interior]);

      //SendClientMessage(playerid,COLOR_1GREEN,"Daca vrei sa apara un mesaj]");

      return 1;

    }

    }

    }

    if(strcmp(cmdtext, "/exit", true) == 0)

        {

        if(PlayerInfo[playerid][pMember] >= [iDfactiune.member] || PlayerInfo[playerid][pLeader] >= [iDfactiune.leader])

      {

    if PlayerToPoint(5,playerid,[Coordonatele in care sa se execute comanda])

    {

      SetPlayerPos(playerid,[Coordonatele interiorului]);

      SetPlayerInterior(playerid,[iD interior]);

      //SendClientMessage(playerid,COLOR_1GREEN,"Daca vrei sa apara un mesaj]");

      return 1;

    }

    }

    }

  2. Si ca sa nu stai sa pui fiecare linie corecta pune pe la inceptul gamemod-ului #pragma tabsize 0

    __________________________________________________________________________________________________________________________________

    else

            {

                  GetPlayerName(i, plname, sizeof(plname));

                  format(string, 256, "Atentie !Este posibil ca [%d]%s sa spawneze 5000$ , folositi /check.",i,plname);

                  ABroadCast(COLOR_GREEN,string,1);

                  PayLog(string);

                  CurrentMoney = GetPlayerMoney(i);

                   

             }

  3.    if(strcmp(cmd, "/factionspawn", true) == 0)
       {
          if(IsPlayerConnected(playerid))
          {
             new x_nr[256];
             x_nr = strtok(cmdtext, idx);
             if(!strlen(x_nr)) {
                 SendClientMessage(playerid, COLOR_WHITE, "Type: /factionspawn (primary ; secondary)");
                return 1;
           }
             if(SpawnChange[playerid])
             {
                 if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
                 {
                      if(strcmp(x_nr,"primary",true) == 0)
                      {
                            if(LcnSpawn[playerid] == 0)
                            {
                                LcnSpawn[playerid] = 1;
                                return 1;
                            }
                               else if(strcmp(x_nr,"secondary",true) == 0)
                            {
                                 if(LcnSpawn[playerid] == 1)
                                 {
                                      LcnSpawn[playerid] = 0;
                                      return 1;
                                 }
                           }
                      }
                 }
    		 }
    	 }
           return 1;
       }
    

  4. Dai copy paste si o sa iti mearga.

    new JoinPed[][1] = {
    {280},//POLICE_FORCE
    {281},
    {282},
    {283},
    {284},
    {285},
    {288},
    {71},
    {166},
    {295},
    {148},
    {286},//FBI/ATF
    {164},
    {163},
    {287},//NATIONAL_GUARD
    {285},
    {70},//FIRE/AMBULANCE
    {274},
    {275},
    {276},
    {277},
    {278},
    {279},
    {258},//LA_COSA_NOSTRA
    {127},
    {126},
    {125},
    {124},
    {113},
    {111},
    {98},
    {120},//YAKUZA
    {121},
    {122},
    {123},
    {169},
    {186},
    {228},
    {127},//HITMANS
    {165},
    {186},
    {93},
    {141},
    {148},//NEWS_REPORTERS
    {188},
    {187},
    {255},//TAXI_CAB_COMPANY
    {253},
    {59},//DRIVING/FLYING_SCHOOL
    {60},//DRIVING/FLYING_SCHOOL
    {76},//DRIVING/FLYING_SCHOOL
    {150},//DRIVING/FLYING_SCHOOL
    {105},//grove
    {106},
    {107},
    {0}
    };
    

×
×
  • 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.