[pomoc] spawn

Započeo sampzone, April 13, 2011, 17:29:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

mod koji ja koristim: street stories

problem: Mozel mi neko obj kako da izbrisem da kada igrac kupi kucu da se ne spawna u njoj nego kao da nema tj ako je u nekoj org da se u njoj ili ako nije onda na spawn mjestu. Kod mene je na modu napravljeno da se u org spanujes ako si clan a ako nisi onda na mjestu spawna, ali ja samo hocu da izbrisem da se ne spawnujes u kuci ako je imas!

Nadam se da sam dobro obj!

Hvala za pomoc unaprijed!


forward SetPlayerSpawn(playerid);

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;
         SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
         SetPlayerFacingAngle(playerid, 280);
         TogglePlayerControllable(playerid, 0);
         RegistrationStep[playerid] = 1;
         ClearChatbox(playerid, 10);

SetPlayerSpawn(playerid);
   SetPlayerToTeamColor(playerid);
   PlayerFixRadio(playerid);
   for(new i = 0; i < sizeof(Turfs); i++)

SetPlayerSpawn(playerid);
      }
      if(WantedPoints[playerid] > 0)
      {
          new dstring[128];
         new wanted = WantedPoints[playerid];
         new diecash = 0;
          while(WantedPoints[playerid] > 0)
          {
              diecash += 500;
              WantedPoints[playerid] --;

SetPlayerSpawn(i);
               ShowPlayerDialog(i, 333, DIALOG_STYLE_LIST, "Sto je smisao RolePlay-a?","Simulacija stvarnog zivota\nIgranje bez obzira na stvarni zivot\nNe znam sta znaci","Odaberi", "Odustani");
             }
         }
         if(PlayerTazeTime >= 1)
         {
             PlayerTazeTime += 1;
             if(PlayerTazeTime == 15)
             {
                    PlayerTazeTime = 0;
             }
             else
             {
                 new Float:angle;
               GetPlayerFacingAngle(i, angle);
               SetPlayerFacingAngle(i, angle + 90);
             }

SetPlayerSpawn(para1);
                  ClearCrime(para1);
                  printf("[ADMIN]: %s je promenio igracu %s tim na %d.", sendername, giveplayer, level);
                  format(string, sizeof(string), "   Promenili ste tim %d od %s", level, sendername);
                  SendClientMessage(para1, COLOR_WHITE, string);
                  format(string, sizeof(string), "   Postavili ste igraca %s u tim %d.", giveplayer,level);
                  SendClientMessage(playerid, COLOR_WHITE, string);
               }


sve sto je SetPlayerSpawn poslo sam pa ako je to to mozel pomoc? plsss
Poslednja Izmena: April 13, 2011, 18:26:45 POSLE PODNE od sampzone

jel to sve?? jel po mome koliko vidim koristis GF a tu fali dosta :)


if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force
{
SetPlayerToTeamColor(playerid);
   SetPlayerPos(playerid, 233.7260,111.1146,1003.2257);
SetPlayerInterior(playerid,10);
PlayerInfo[playerid][pInt] = 10;
return 1;
   }
   if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//fbi spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1660.7053,-1661.6621,22.5156);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
   }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//SWAT
{
   SetPlayerToTeamColor(playerid);
   SetPlayerInterior(playerid, 0);
   SetPlayerPos(playerid, 301.9958,-1529.7733,24.9219);
   PlayerInfo[playerid][pInt] = 0;
   return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) //MD
   {
       SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1147.1177,-1345.9570,13.6268);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
       return 1;
   }
   if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //lcn
   {
       SetPlayerToTeamColor(playerid);
       SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 984.5677,-1553.5308,21.5078);
PlayerInfo[playerid][pInt] = 0;
       return 1;
   }
       if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Hitman
{
   SetPlayerToTeamColor(playerid);
   SetPlayerInterior(playerid, 0);
   SetPlayerPos(playerid, 1767.4663,-1391.6415,15.7578);
   PlayerInfo[playerid][pInt] = 0;
   return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)//Vlada spawn
{
   SetPlayerToTeamColor(playerid);
   SetPlayerInterior(playerid, 3);
   SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
   PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 241;
   return 1;
}
 



To još ubaci u SetPlayerSpawn, to je za bande spawn
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) //MD

Primjer. pMember = 4 tu stavi svoj ID organizacije

Poslednja Izmena: April 13, 2011, 18:51:56 POSLE PODNE od CH | Marko

ma imam ja spawn igraca kada je u bandi al meni samo treba da izbrisem da se igraci ne spawnuju u kuci kada je kupe

Citat: sampzone poslato April 13, 2011, 20:49:58 POSLE PODNE
ma imam ja spawn igraca kada je u bandi al meni samo treba da izbrisem da se igraci ne spawnuju u kuci kada je kupe
nado pod setplayerspawn [house] i to obrisi mislim od {do }


Tema  ???
Rado bi ti pomogao ali nepetljam se sa tim GMovima kao sto su GF :D

Citat: eXtreme poslato April 14, 2011, 12:07:34 POSLE PODNE
Tema  ???
Rado bi ti pomogao ali nepetljam se sa tim GMovima kao sto su GF :D

Street Stories nije godfather

a nego sta je larp ili gtarp,a larp ili ti gtarp dolazi od GF-a -.-