[Pomoc] organizacije spawn

Započeo {ZOKA}{BOND}, Decembar 06, 2012, 11:46:39 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:gtarp
Opis problema:ako moze jedna jos pomoc ne spawnamiseu bazi nego na spawnu jbt a kada udjese u srv onda me spawna u bazi a kad se ja ubijem onda me ne porta vrati me na spawn
Dio skripte:
Slike:/

Setplayerspawn

public SetPlayerSpawn(playerid)
{
   if(IsPlayerConnected(playerid))
   {
       SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
       if(PlayerInfo[playerid][pTut] == 0)
       {
          TextDrawShowForPlayer(playerid,lbt);
         TextDrawShowForPlayer(playerid,lbb);
         gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
         SetPlayerInterior(playerid, 3);
         PlayerInfo[playerid][pInt] = 3;
         JBC_SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
         SetPlayerFacingAngle(playerid, 280);
         TogglePlayerControllable(playerid, 0);
         RegistrationStep[playerid] = 1;
         ClearChatbox(playerid, 10);
         SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
         SendClientMessage(playerid, COLOR_LIGHTGREEN, "DobrodoÅ¡li na  server, molim vas ispunite podatke.");
         ShowPlayerDialog(playerid, 12348, DIALOG_STYLE_LIST, "Kojeg ste pola?", "{0049FF}Musko \n{F81414}Zensko", "U redu", "Odustani");
         SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
         ClearChatbox(playerid, 2);
         return 1;
       }
       if(AdminSpec[playerid] == 1)
      {
          return 1;
      }
      new rand;
      new house = PlayerInfo[playerid][pPhousekey];
      if(PlayerPaintballing[playerid] != 0)
      {
          SafeJBC_ResetPlayerWeapons(playerid);
            SafeJBC_GivePlayerWeapon(playerid, 29, 999);
          rand = random(sizeof(PaintballSpawns));
         JBC_SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
          return 1;
      }
      if(PlayerInfo[playerid][pJailed] == 1)
      {
          /*SetPlayerInterior(playerid, 6);
          PlayerInfo[playerid][pInt] = 6;
         JBC_SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
         SendClientMessage(playerid, COLOR_LIGHTRED, "Nedovrsena zatvorska kazna,natrad u zatvor.");*/
         SetPlayerInterior(playerid, 6);
          PlayerInfo[playerid][pInt] = 6;
         rand = random(sizeof(ZatvorSpawns));
            JBC_SetPlayerPos(playerid, ZatvorSpawns[rand][0], ZatvorSpawns[rand][1], ZatvorSpawns[rand][2]);
         SendClientMessage(playerid, COLOR_LIGHTRED, "Nepotpuna zatvorska kazna, nazad u zatvor.");
         return 1;
      }
      if(PlayerInfo[playerid][pJailed] == 2)
      {
          /*SetPlayerInterior(playerid, 0);
          PlayerInfo[playerid][pInt] = 0;
         JBC_SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
         SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811*/
         SetPlayerInterior(playerid, 0);
          PlayerInfo[playerid][pInt] = 0;
         rand = random(sizeof(ZatvorSpawns));
            JBC_SetPlayerPos(playerid, ZatvorSpawns[rand][0], ZatvorSpawns[rand][1], ZatvorSpawns[rand][2]);

         return 1;
      }
      if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
      {
          if(FirstSpawn[playerid] != 1)
          {
             //new string[256];
             new cut = deathcost;
            SafeJBC_GivePlayerMoney(playerid, -cut);
            MedicBill[playerid] = 0;
            MedicTime[playerid] = 0;
            NeedMedicTime[playerid] = 0;
            SetPlayerToTeamColor(playerid);
            JBC_SetPlayerPos(playerid,1612.3240,-2330.1670,14.5469);
            SetPlayerFacingAngle(playerid, 0);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            /*JBC_SetPlayerHealth(playerid, 50.0);
            PlayerInfo[playerid][pDeaths] += 1;
             SetPlayerInterior(playerid, 3);
             PlayerInfo[playerid][pInt] = 3;
              rand = random(sizeof(gMedicSpawns));
            JBC_SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
            SetPlayerFacingAngle(playerid, 0);
              TogglePlayerControllable(playerid, 0);
              GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 30000, 3);
                JustDied[playerid] = 1;
              MedicTime[playerid] = 1;
              ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
              if(PlayerInfo[playerid][pDonateRank] > 0)
              {
                  NeedMedicTime[playerid] = 30;
              }
              else
              {
                 NeedMedicTime[playerid] = 40;
            }
              PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);*/
             return 1;
         }
      }
      if(JustDied[playerid] == 1)
      {
          if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
          {
              SetPlayerVirtualWorld(playerid, 0);
              PlayerInfo[playerid][pVirWorld] = 0;
          }
          JBC_SetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
          SetPlayerFacingAngle(playerid, 270.0);
          SetPlayerInterior(playerid,0);
          PlayerInfo[playerid][pInt] = 0;
          return 1;
      }
      if(PlayerInfo[playerid][pCrashed] == 1)
      {
          if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
          {
              SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pVirWorld]);
              SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
             JBC_SetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z] + 1);
             //SendClientMessage(playerid, COLOR_WHITE, "Crashed, returning where you been.");
             //GameTextForPlayer(playerid, "~p~Crashed~n~~w~returning where you been", 5000, 1);
             return 1;
         }
      }
      if(house !=9999)
      {
          if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
          {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid,HouseInfo[house][hInt]);
            SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
            JBC_SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
            PlayerInfo[playerid][pLocal] = house;
            HouseEntered[playerid] = house;
            PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
            return 1;
         }
      }
      if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
      {
         SetPlayerToTeamColor(playerid);
         SetPlayerInterior(playerid,6);
          rand = random(sizeof(gCopPlayerSpawns));
         JBC_SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
         SetPlayerFacingAngle(playerid, 270.0);
         PlayerInfo[playerid][pInt] = 6;
         return 1;
       }
       if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
      {
         SetPlayerToTeamColor(playerid);
         SetPlayerInterior(playerid,3);
         JBC_SetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
         SetPlayerFacingAngle(playerid, 90);
         PlayerInfo[playerid][pInt] = 3;
         return 1;
       }
      if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 0);
          JBC_SetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
          PlayerInfo[playerid][pInt] = 0;
          return 1;
      }
      if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
      {
          SetPlayerToTeamColor(playerid);
          JBC_SetPlayerPos(playerid, 1180.2388,-1331.6196,1006.4028);
         SetPlayerInterior(playerid,6);
         SetPlayerFacingAngle(playerid, 0);
         PlayerInfo[playerid][pInt] = 6;
          return 1;
      }
      if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Aryan spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 3);
          JBC_SetPlayerPos(playerid, 961.40710449219,-53.224853515625,1001.1245727539);
          PlayerInfo[playerid][pInt] = 5;
          return 1;
      }
      if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Yakuze spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 5);
          JBC_SetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
          PlayerInfo[playerid][pInt] = 5;
          return 1;
      }
      if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 3);
          JBC_SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
          PlayerInfo[playerid][pInt] = 3;
         PlayerInfo[playerid][pLocal] = 241;
          return 1;
      }
       if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
       {
           SetPlayerToTeamColor(playerid);
         JBC_SetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
         SetPlayerInterior(playerid,0);
         PlayerInfo[playerid][pInt] = 0;
           return 1;
       }
       if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
       {
           SetPlayerToTeamColor(playerid);
           SetPlayerInterior(playerid,3);
         JBC_SetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
         PlayerInfo[playerid][pInt] = 3;
         SafeJBC_GivePlayerWeapon(playerid, 43, 20);
           return 1;
       }
       if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
       {
           SetPlayerToTeamColor(playerid);
         JBC_SetPlayerPos(playerid, 1754.99,-1894.19,13.55);
         SetPlayerInterior(playerid,0);
         PlayerInfo[playerid][pInt] = 0;
           return 1;
       }
       /*if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 1);
          JBC_SetPlayerPos(playerid, -779.6406,501.2036,1371.7422);
          PlayerInfo[playerid][pInt] = 1;
          return 1;
      }
      */
      if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Grove Street Gang spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 2);
          JBC_SetPlayerPos(playerid, 446.9658,1399.1479,1084.3047);
          PlayerInfo[playerid][pInt] = 2;
          return 1;
      }
      if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//Trinitario spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 8);
          JBC_SetPlayerPos(playerid, 2809.1741,-1169.0574,1025.5703);
          PlayerInfo[playerid][pInt] = 8;
          return 1;
      }
       /*if(IsAnInstructor(playerid) || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) //Driving/Flying School spawn
       {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid,3);
         JBC_SetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
         SetPlayerFacingAngle(playerid, 180);
         PlayerInfo[playerid][pInt] = 3;
           return 1;
       }*/
       if ((gTeam[playerid]) == 1)
       {
         SetPlayerToTeamColor(playerid);
         rand = random(sizeof(gMedPlayerSpawns));
         JBC_SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
         SetPlayerFacingAngle(playerid, 270.0);
         SetPlayerInterior(playerid,0);
         PlayerInfo[playerid][pInt] = 0;
         return 1;
      }
      /*if(PlayerInfo[playerid][pFMember] != 255)
      {
          new family = PlayerInfo[playerid][pFMember];
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
          JBC_SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
          SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
          return 1;
      }*/
       else
       {
         SetPlayerToTeamColor(playerid);
         JBC_SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469);
         SetPlayerFacingAngle(playerid, 0);
         SetPlayerInterior(playerid,0);
         PlayerInfo[playerid][pInt] = 0;
         return 1;
      }
   }
   return 1;
}

onplayerspawn

public OnPlayerSpawn(playerid)
{
    SetPlayerAttachedObject(playerid, 1, 1210, 6,0.2,0.17,0,0,270);
    SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
   TextDrawShowForPlayer(playerid, poruke);
   TextDrawShowForPlayer(playerid, Text:poruke1);
   TextDrawShowForPlayer(playerid, Text:poruke2);
   TextDrawShowForPlayer(playerid, Text:poruke3);
   TextDrawShowForPlayer(playerid, Text:poruke4);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    TextDrawShowForPlayer(playerid, Textdraw6);
    TextDrawShowForPlayer(playerid, Textdraw7);
    TextDrawShowForPlayer(playerid, Textdraw8);
    TextDrawShowForPlayer(playerid, Textdraw9);
    TextDrawShowForPlayer(playerid, Text50);
    TextDrawShowForPlayer(playerid, Text51);
    TextDrawShowForPlayer(playerid, Text52);
    TextDrawShowForPlayer(playerid, Text53);
    TextDrawShowForPlayer(playerid, Text54);
   InitLockDoors(playerid);
   STDPlayer[playerid] = 0;
   gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
   if (gTeam[playerid] == 4) //medic / criminal reset team
   {
      gTeam[playerid] = 3;
   }
   if(gPlayerLogged[playerid] == 0)
   {
       SendClientMessage(playerid, COLOR_LIGHTRED, "** Ovaj server zahtjeva login prije spawna (Kicked) **");
        KickPlayer[playerid] = 1;
   }
   if(!gPlayerAnimLibsPreloaded[playerid])
    {
         PreloadAnimLib(playerid,"BOMBER");
         PreloadAnimLib(playerid,"RAPPING");
       PreloadAnimLib(playerid,"SHOP");
         PreloadAnimLib(playerid,"BEACH");
         PreloadAnimLib(playerid,"SMOKING");
       PreloadAnimLib(playerid,"FOOD");
       PreloadAnimLib(playerid,"ON_LOOKERS");
       PreloadAnimLib(playerid,"DEALER");
      PreloadAnimLib(playerid,"CRACK");
      PreloadAnimLib(playerid,"CARRY");
      PreloadAnimLib(playerid,"COP_AMBIENT");
      PreloadAnimLib(playerid,"PARK");
      PreloadAnimLib(playerid,"INT_HOUSE");
      PreloadAnimLib(playerid,"FOOD");
      PreloadAnimLib(playerid,"PED");
      PreloadAnimLib(playerid,"MISC");
      PreloadAnimLib(playerid,"BLOWJOBZ");
      PreloadAnimLib(playerid,"RIFLE");
      PreloadAnimLib(playerid,"UZI");
      PreloadAnimLib(playerid,"SHOTGUN");
      PreloadAnimLib(playerid,"COLT45");
      PreloadAnimLib(playerid,"SILENCED");
      PreloadAnimLib(playerid,"GYMNASIUM");
      PreloadAnimLib(playerid,"PARK");
      PreloadAnimLib(playerid,"BSKTBALL");
      PreloadAnimLib(playerid,"GANGS");
      PreloadAnimLib(playerid,"FIGHT_D");
      PreloadAnimLib(playerid,"PAULNMAC");
      gPlayerAnimLibsPreloaded[playerid] = 1;
   }
   if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
   {
       MedicBill[playerid] = 0;
       new rand = random(sizeof(CIV));
      SendClientMessage(playerid, COLOR_LIGHTRED, "Vise niste Lider, sad ste ponovo civil !");
      PlayerInfo[playerid][pTeam] = 3;
      gTeam[playerid] = 3;
      SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
      PlayerInfo[playerid][pModel] = CIV[rand];
      SpawnPlayer(playerid);
   }
   if(gTeam[playerid] == 5)
   {
       if(PlayerInfo[playerid][pMember] < 1)
       {
           MedicBill[playerid] = 0;
           new rand = random(sizeof(CIV));
         SendClientMessage(playerid, COLOR_LIGHTRED, "Niste vise clan u Organizaciju, Sad ste ponovo civil !");
         PlayerInfo[playerid][pTeam] = 3;
         gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
         PlayerInfo[playerid][pModel] = CIV[rand];
         SpawnPlayer(playerid);
      }
   }
   if(gTeam[playerid] == 10)
   {
       if(PlayerInfo[playerid][pMember] != 8)
       {
           MedicBill[playerid] = 0;
           new rand = random(sizeof(CIV));
         SendClientMessage(playerid, COLOR_LIGHTRED, "Vise niste clan ove agencije, sad ste ponovo civil !");
         PlayerInfo[playerid][pTeam] = 3;
         gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
         PlayerInfo[playerid][pModel] = CIV[rand];
         SpawnPlayer(playerid);
      }
   }
   if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
   {
       MedicBill[playerid] = 0;
      new rand = random(sizeof(CIV));
      SendClientMessage(playerid, COLOR_LIGHTRED, "Niste se prijavili za Policiju / FBI / SWAT, sada ste civil !");
      PlayerInfo[playerid][pTeam] = 3;
      gTeam[playerid] = 3;
      SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
      PlayerInfo[playerid][pModel] = CIV[rand];
      SpawnPlayer(playerid);
   }
   if(gTeam[playerid] == 3)
   {
       if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
       {
         SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan Org, premjesteni ste na odgovarajucu Klasu + Char !");
         MedicBill[playerid] = 0;
         new model = PlayerInfo[playerid][pChar];
         if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
         //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
         SpawnPlayer(playerid);
      }
   }
   if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
   else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
   SetPlayerWeapons(playerid);
   SetPlayerSpawn(playerid);
   SetPlayerToTeamColor(playerid);
   PlayerFixRadio(playerid);
   for(new i = 0; i < sizeof(Turfs); i++)
   {
       GangZoneShowForPlayer(playerid, i, TurfInfo[zColor]);
       //GangZoneShowForPlayer(playerid, surenos, 0x4C5386AA);
       //GangZoneShowForPlayer(playerid, black_yakuza, 0x000000C2);
      //GangZoneShowForPlayer(playerid, nortenos, 0x9D000096);
      //GangZoneShowForPlayer(playerid, street_zone, 0x33AA33AA);
      //GangZoneShowForPlayer(playerid, jefferson_saints, 0xD900D3C8);
        return 1;
   }
   if(MapIconsShown[playerid] != 1)
   {
       MapIconsShown[playerid] = 1;
       for(new i = 0; i < sizeof(BizzInfo); i++)
      {
         SetPlayerMapIcon(playerid,i + 1,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],36,COLOR_LIGHTRED);
      }
      for(new i = 0; i < sizeof(SBizzInfo); i++)
      {
          SetPlayerMapIcon(playerid,i + 20,SBizzInfo[sbEntranceX],SBizzInfo[sbEntranceY],SBizzInfo[sbEntranceZ],36,COLOR_LIGHTRED);
      }
   }
   return 1;
}
Poslednja Izmena: Decembar 06, 2012, 20:05:13 POSLE PODNE od PopCapo

Nadji pod OnPlayerConnect TextDrawShowForPlayer(playerid, lbb); i TextDrawShowForPlayer(playerid, lbt); i pobrisi ih oba, a ne razumem te sta hoces oko ovih komandi?

ako si za komande mislio ovo
da ih prebacis u strcmp

evo vako :)


if (strcmp("/voda", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(4.0,playerid, 1018.90002441,-2091.50000000,12.00000000))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1699.80004883,-1696.50000000,12.50000000))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1917.00000000,-1766.00000000,12.50000000))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1199.40002441,-957.29998779,41.90000153))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
if(PlayerToPoint(4.0,playerid, 1186.00000000,-1377.50000000,12.60000038))
{
ShowPlayerDialog(playerid, 2635, DIALOG_STYLE_LIST, "{F81414}Lista vode","{FFFFFF}Hladna voda {6EF83C}[10$]\n{FFFFFF}Topla voda {6EF83C}[15$]", "Ok", "Izlaz");
}
return 1;
}



if (strcmp("/voda", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(4.0,playerid, 1377.7008,-1890.2435,13.4782))
{
ShowPlayerDialog(playerid, 8799, DIALOG_STYLE_LIST, "{F81414}Lista","{FFFFFF}Buket cveca {6EF83C}[20$]", "Ok", "Izlaz");
}
return 1;
}



eto ;)
Aa on ti je objasnio za TD :)

Bolje ti je da radiš u ZCMD, tj. samo na vrh skripte dodaš
#include <zcmd>
ZCMD(CMD) komande stavljaš van svakog callbacka(najbolje na kraj skripte)

ee blaeks
nema ovo
TextDrawShowForPlayer(playerid, lbb);
TextDrawShowForPlayer(playerid, lbt);

to nema al ima nesto lbb i lbt kao ovo ima ono new text oba to i ima
   TextDrawShowForPlayer(playerid,lbt);
   TextDrawShowForPlayer(playerid,lbb);

pa ima jos vamo lbb i lbt

   TextDrawHideForPlayer(playerid,lbt);
   TextDrawHideForPlayer(playerid,lbb);

ovo je pod setplayespawn
          TextDrawShowForPlayer(playerid,lbt);
         TextDrawShowForPlayer(playerid,lbb);

ovo je kod tutorijala
               TextDrawHideForPlayer(i,lbt);
               TextDrawHideForPlayer(i,lbb);

ima i ovo oov je pod public GameModeExitFunc() tusu neki killtimer
   TextDrawHideForAll(lbt);
   TextDrawHideForAll(lbb);

pa ima i ovo
   lbt = TextDrawCreate(-1.000000,2.000000,"---");
   lbb = TextDrawCreate(0.000000,337.000000,"---");

i ovo ima
   lbt = TextDrawCreate(-1.000000,2.000000,"---");
   lbb = TextDrawCreate(0.000000,337.000000,"---");
   TextDrawUseBox(lbt,1);
   TextDrawBoxColor(lbt,0x000000ff);
   TextDrawTextSize(lbt,640.000000,-69.000000);
   TextDrawUseBox(lbb,1);
   TextDrawBoxColor(lbb,0x000000ff);
   TextDrawTextSize(lbb,638.000000,-60.000000);
   TextDrawAlignment(lbt,0);
   TextDrawAlignment(lbb,0);
   TextDrawBackgroundColor(lbt,0x000000ff);
   TextDrawBackgroundColor(lbb,0x000000ff);
   TextDrawFont(lbt,3);
   TextDrawLetterSize(lbt,1.000000,12.199999);
   TextDrawFont(lbb,3);
   TextDrawLetterSize(lbb,0.899999,15.000000);
   TextDrawColor(lbt,0x000000ff);
   TextDrawColor(lbb,0x000000ff);
   TextDrawSetOutline(lbt,1);
   TextDrawSetOutline(lbb,1);
   TextDrawSetProportional(lbt,1);
   TextDrawSetProportional(lbb,1);
   TextDrawSetShadow(lbt,1);
   TextDrawSetShadow(lbb,1);

ima jos na dva mesta neka ima kod /refresh to i nema vise to jel to sve izbrisem :D jel se nece nista drugo mi se sjebat

hvala Lood

Nadjes ovo pod OnPlayerConnect TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
i obrisi ga

e hvala oce e mozel jos nesto molimvas dami kazete kako da napravim nesto jbt jebeme ja u organizacij lider sam ili clan neko bude i ja ga ubijem i on sve opet spawna na spawn na aedrom gdemi spawn i tako sve ne u bazi nzm sto a kadudje u srv spawnase u bazi u nekoj org eto gore setplayerspawn i onplayerspawn ae molimvas dami kazete jos to kako da napravim damise u bazi spawna jbt i otvaram srv ako bog da


baca eror

.pwn(5390) : warning 202: number of arguments does not match definition

Pardoniram se, ovako SetPlayerSpawn(playerid);

hehe tose desi kad brzo radis polako

radi hvala ti mnogo