Szerző Téma: Spawn hiba!Segitsetek kerlek  (Megtekintve 640 alkalommal)

Spawn hiba!Segitsetek kerlek
« Dátum: 2016. január 08. - 14:35:07 »
0 Show voters
Sziasztok az a bajom hogy van egy SeeRPG modom ami a valosag,es mikor beregelek a LosSantos Bank melletti hid alatt spawnolok.Az OnPlayerSpawn-nal amit kaptam az egesznek a poziciojat atirtam de ugyis ogyan ott spawnol a player.Miert?Kerlek segitstek,koszonom elore is!
 
public OnPlayerSpawn(playerid)
{
//   KillTimer(PlayerTimers[playerid][sCREEN_FADE]);
if(PlayerInfo[playerid][pSzunetel])
CallLocalFunction(\"OnPlayerPause\", \"dd\", playerid, 0);
PlayerInfo[playerid][pCamera] = NINCS;
if(!PlayerInfo[playerid][pPaintBall][0])
PlayerInfo[playerid][pSpawnVedelem] = 5;
if(PlayerInfo[playerid][pTiltvaVan])
return false;
if(IsPlayerNPC(playerid))
{
new VWjuk = 0;
if(ServerInfo[0][sRL_Time][0] > 20)
{
   VWjuk = 0;
}
if(ServerInfo[0][sRL_Time][0] < 21)
{
   VWjuk = Rand(1,9999);
}
if(egyezik(JatekosNev(playerid),\"[NPC]Steve_Pullman\"))
{
   VasarlosNPCK[0] = playerid;
   SetPlayerVirtualWorld(playerid,VWjuk);
   SetPlayerPos(playerid,2690.316, -1975.359, 13.546);
   SetPlayerFacingAngle(playerid,357);
   SetPlayerSkin(playerid,20);
   SetPlayerColor(playerid, COLOR_INVISIBLE);
   NPCTextLabel[0] = CreateDynamic3DTextLabel(\"- Nyomd le az Y gombot a csevegéshez! -\",0xfff200AA,2690.316, -1975.359, 13.546,3,playerid,INVALID_PLAYER_ID,0,VWjuk,0,-1,100);
}
new l = -1;
for(;++l < sizeof(BoltBot);)
{
   //printf(\"Spawn: %d | %d\", playerid, BoltRablas[l][npcID]);
   if(BoltRablas[l][npcID] == playerid)
   {
      //printf(\"NPC! ID: %d | %d\", playerid, BoltRablas[l][npcID]);
      BoltRablas[l][npcRabolhato] = BoltBot[l][bBotRob];
      SetPlayerPos(BoltRablas[l][npcID], BoltBot[l][bBotPosX], BoltBot[l][bBotPosY], BoltBot[l][bBotPosZ]);
      SetPlayerFacingAngle(BoltRablas[l][npcID], BoltBot[l][bBotA]);
      //SetHealth(BoltRablas[l][npcID], FLOAT_INFINITY);
      break;
   }
}
if(BankBotok[bankNPCID] == playerid)
{
   SetPlayerPos(BankBotok[bankNPCID],  2308.553, -6.994, 22.819);
   SetPlayerFacingAngle(BankBotok[bankNPCID], 178.0);
   SetPlayerSkin(BankBotok[bankNPCID],17);
   //SetHealth(BankBotok[bankNPCID], FLOAT_INFINITY);
}
  /*
SetSpawnInfo(BoltRablas[npcID], 0, 1, PosExt(BoltBot), 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(BoltRablas[npcID]);
SetPlayerFacingAngle(BoltRablas[npcID], BoltBot[3]);
SetHealth(BoltRablas[npcID], FLOAT_INFINITY);
  */
//printf(\"NPC! ID: %d\", playerid);
//SetPlayerPos(playerid, 0.0, 0.0, 3.0);
//BoltRablas[npcID] = ConnectNPCEx(botname);
//BoltRablas[npcID] = ConnectNPC(botname, \"npcspawn\");
/*SetSpawnInfo(BoltRablas[npcID], 0, 1, PosExt(BoltBot), 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(BoltRablas[npcID]);
SetPlayerFacingAngle(BoltRablas[npcID], BoltBot[3]);
SetHealth(BoltRablas[npcID], FLOAT_INFINITY);*/
return true;
}
//-0.19600
if(PlayerInfo[playerid][pHatizsak])
SetPlayerAttachedObject(playerid, SLOT_HATIZSAK, 3026, 1, -0.125, -0.046, -0.004, -1.299, -0.5, -6.297, 1.0, 1.0, 1.0);
//SetPlayerAttachedObject(playerid, SLOT_HATIZSAK, 371, 1, 0.0, -0.19600, 0.0, 0.0, 90.0, 0.0);
PlayerInfo[playerid][pMP3_Megy] = false;
StopAudioStreamForPlayer(playerid);
/*------------------------ Munka korrekció ------------------------*/
if(FInfo[ PlayerInfo[playerid][pFrakcio] ][fLegalis] != FK_MAFFIA)
{
if(PlayerInfo[playerid][pMunka1] == MUNKA_FEGYVER)
   PlayerInfo[playerid][pMunka1] = 0;
if(PlayerInfo[playerid][pMunka2] == MUNKA_FEGYVER)
   PlayerInfo[playerid][pMunka2] = 0;
}
if(FInfo[ PlayerInfo[playerid][pFrakcio] ][fLegalis] != FK_BANDA)
{
if(PlayerInfo[playerid][pMunka1] == MUNKA_DROG)
   PlayerInfo[playerid][pMunka1] = 0;
if(PlayerInfo[playerid][pMunka2] == MUNKA_DROG)
   PlayerInfo[playerid][pMunka2] = 0;
}
/*--------------------- Munka korrekció vége ---------------------*/
    if(!PlayerInfo[playerid][pregisztracio])
{
//1682.910
    SetPlayerPos(playerid, 1481.3906,-1751.0538,13.5469);
//(X:1737.370 | Y:-1737.991 | Z:13.546 | Angle: 355.931 | Interior: 0 | VirtualWorld: 0)
SetPlayerFacingAngle(playerid, 359.1057);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pregisztracio] = 1;
} else {
new skin = PlayerInfo[playerid][pskin];
if(PlayerInfo[playerid][pFrakcio] != 0)
{
   if(PlayerInfo[playerid][pDuty][0])//ha szoliban van
   {
      if(!PlayerInfo[playerid][pDutySkin])
      {
         new i = NINCS;
         for(;++i < sizeof(FrakcioSkinek);)
            if(FrakcioSkinek[0] == PlayerInfo[playerid][pFrakcio])
               skin = FrakcioSkinek[ PlayerInfo[playerid][prang] ];
      } else
         skin = PlayerInfo[playerid][pDutySkin];
   }
}
if(!skin) skin = 1;
SetPlayerSkin(playerid, skin);
Freeze(playerid, 2000);
if(PlayerInfo[playerid][pPaintBall][0] != 0)
   PaintBallMuvelet(playerid, 3);
/*else if(Bortonben(playerid) != 0)
   Borton( playerid, Bortonben( playerid ) );*/
else
{
   if(PlayerInfo[playerid][pNewSpawn])
   {
      if(PlayerInfo[playerid][pHazKulcs][0] != NINCS)
         RemovePlayerFromHouse(playerid, PlayerInfo[playerid][pHazKulcs][0]);
      else
         SetPos(playerid, 1481.3906,-1751.0538,13.5469, 359.1057, true);
      PlayerInfo[playerid][pNewSpawn] = false;
      PlayerInfo[playerid][phaz] = NINCS;
   }
   else if(PlayerInfo[playerid][posx] != 0.0)
   {
      SetPlayerInterior(playerid, PlayerInfo[playerid][pinterior]);
      SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pvirtualworld]);
      SetPlayerPos(playerid, PlayerInfo[playerid][posx], PlayerInfo[playerid][posy], PlayerInfo[playerid][posz]);
      SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pangle]);
   } else
      SetPos(playerid, 1481.3906,-1751.0538,13.5469, 359.1057, true),SCM(playerid,COL_MKEK,\"Megérkeztél Los Santos egyik belvárosi buszmegállójába, egy helyi járattal.\"); //1480.084, -1770.767, 13.546, 0.236
}
}
StatInfo[playerid][pRIdo] = UnixTime, StatMentes(playerid, true);
Idojaras(playerid); //Idojárás váltás
Felirat( playerid, true );//IDK
PlayerTextDrawDestroy(playerid, AlsoFelso[playerid][0]);
PlayerTextDrawDestroy(playerid, AlsoFelso[playerid][1]);
UpdatePlayerInfo(playerid);
ShowInfoTextDraw(playerid);
PlayerInfo[playerid][pEhseg] = 0.0;
PlayerInfo[playerid][pVizelet] = 0.0;
//Progressbar-ok beállítása
if(EhsegBar[playerid] != INVALID_PLAYER_BAR_ID)
{
SetPlayerProgressBarValue(playerid, EhsegBar[playerid], 0.0);
UpdatePlayerProgressBar(playerid, EhsegBar[playerid]);
}
if(VizeletBar[playerid] != INVALID_PLAYER_BAR_ID)
{
SetPlayerProgressBarValue(playerid, VizeletBar[playerid], 0.0);
UpdatePlayerProgressBar(playerid, VizeletBar[playerid]);
}
if(NemLehetANeve(playerid))
{
SCM(playerid,COL_LRED,\"Hiba Történt! Ezt a nevet NEM veheted fel kérlek változtass az nevet!\");
SCM(playerid,COL_LRED,\"Ezt a nevet már használja egy NPC!\");
Kick_Ex(playerid);
return 1;
}
new index;
if(DivatInfo[sLOT_SAPKA][playerid][dVan] == 1)
{
index = SLOT_SAPKA;
SetPlayerAttachedObject(playerid, index, DivatInfo[index][playerid][dmodelid], 2, DivatInfo[index][playerid][dPosX], DivatInfo[index][playerid][dPosY], DivatInfo[index][playerid][dPosZ], DivatInfo[index][playerid][dRotX], DivatInfo[index][playerid][dRotY], DivatInfo[index][playerid][dRotZ], DivatInfo[index][playerid][dScaleX], DivatInfo[index][playerid][dScaleY], DivatInfo[index][playerid][dScaleZ]);
}
if(DivatInfo[sLOT_SZEMUVEG][playerid][dVan] == 1)
{
index = SLOT_SZEMUVEG;
SetPlayerAttachedObject(playerid, index, DivatInfo[index][playerid][dmodelid], 2, DivatInfo[index][playerid][dPosX], DivatInfo[index][playerid][dPosY], DivatInfo[index][playerid][dPosZ], DivatInfo[index][playerid][dRotX], DivatInfo[index][playerid][dRotY], DivatInfo[index][playerid][dRotZ], DivatInfo[index][playerid][dScaleX], DivatInfo[index][playerid][dScaleY], DivatInfo[index][playerid][dScaleZ]);
}
if(DivatInfo[sLOT_KARORA][playerid][dVan] == 1)
{
index = SLOT_KARORA;
SetPlayerAttachedObject(playerid, index, DivatInfo[index][playerid][dmodelid], 13, DivatInfo[index][playerid][dPosX], DivatInfo[index][playerid][dPosY], DivatInfo[index][playerid][dPosZ], DivatInfo[index][playerid][dRotX], DivatInfo[index][playerid][dRotY], DivatInfo[index][playerid][dRotZ], DivatInfo[index][playerid][dScaleX], DivatInfo[index][playerid][dScaleY], DivatInfo[index][playerid][dScaleZ]);
}
if(!PlayerInfo[playerid][pAduty])
SetPlayerColor(playerid, COLOR_INVISIBLE);//listában normálisan látható
SetPlayerScore(playerid, PlayerInfo[playerid][pjatekosszint]);
PlayerTextDrawShow(playerid, Penz[playerid]);
PenzFrissites(playerid);
PlayerTextDrawSetString(playerid, Adatok[playerid], \"Adatok betöltése....\");
PlayerTextDrawShow(playerid, Adatok[playerid]);
if(PlayerInfo[playerid][pFegyver])
SetPlayerArmedWeapon(playerid, PlayerInfo[playerid][pFegyver]);
SetHealth(playerid, MAX_HP);
SetPlayerAttachedWeapon(playerid);
new x = -1;
for(;++x < MAX_TERULET;)
{
if(tInfo
  • [tVan])

{
   GangZoneShowForPlayer(playerid, tInfo
  • [tZone], FrakcioSzin[ tInfo
  • [tFrakcio] - 1 ]);

   if(tInfo
  • [tHarcFolyik])

      GangZoneFlashForPlayer(playerid, tInfo
  • [tZone], COLOR_INVISIBLE);

   else
      GangZoneStopFlashForPlayer(playerid, tInfo
  • [tZone]);

}
}
/*-------------------- Streamer újratöltés --------------------*/
if(ServerInfo[0][sTuzVan] && PlayerInfo[playerid][pFrakcio] == FRAKCIO_LSFD) {
for(new t = 0; t < TUZ_MAX; t++)
{
   if(Tuz[t][tuzAktiv] && !Streamer_IsInArrayData(STREAMER_TYPE_MAP_ICON, Tuz[t][tMap], E_STREAMER_PLAYER_ID, playerid))
      Streamer_AppendArrayData(STREAMER_TYPE_MAP_ICON, Tuz[t][tMap], E_STREAMER_PLAYER_ID, playerid);
}
}
//Animok kezelése
if(!PlayerInfo[playerid][pAnimLibsPreloaded])
{
EloToltes(playerid);
PlayerInfo[playerid][pAnimLibsPreloaded] = 1;
}
//AdatTextDrawFrissites(playerid);   
if(PlayerInfo[playerid][pMeghalt] == 1)
{
//PreloadnimLib(playerid, \"WUZI\");
SetPlayerPos(playerid,PlayerInfo[playerid][pHx],PlayerInfo[playerid][pHy],PlayerInfo[playerid][pHz]);
LoopingAnim(playerid, \"WUZI\", \"CS_Dead_Guy\", 4.0, 1, 0, 0, 1, 0, 1);
PlayerInfo[playerid][pHalalfogadas] = 0;
SetPlayerWeather(playerid, 22);
SetHealth(playerid, 30);
nformat(form, 128, \"(( Súlyosan sérült ))\", playerid);
PlayerInfo[playerid][pHalalText] = CreateDynamic3DTextLabel(form, 0xff7f7fAA, 0.0, 0.0, 0.0, 40.0, playerid, INVALID_VEHICLE_ID, 0);
SCM(playerid,  COL_VZOLD, \"Súlyos sérüléseket szenvedtél, amennyiben mentos, vagy egy járókelo nem lát el elvérzel!\");
SCM(playerid,  COL_VZOLD, \"Ahhoz hogy elfogadd a teljes karakterhalált írd be: /elfogadck, majd vedd fel a kapcsolatot Fo, - illetve SuperAdminnal.\");
SCM(playerid,  COL_VZOLD, \"10 perc elteltével használhatod a /elfogadhalál parancsot, ami bedob a kórházba.\");
SCM(playerid,  COL_VZOLD, \"Alap esetben 20 percig fekszel a földön.\");
TogglePlayerControllable(playerid, false);
SetTimerEx(\"Hasznalhatja\", 500, 0, \"d\", playerid);
}
if(LeCheckolva[playerid] == 0)
{
Check(playerid);
}
AdatBetoltes( playerid );
return true;
}

 
Nem tudjatok mi lehet a problema .Kerlek segitsetek nagyon halas lennek.

Dupla hozzászólás automatikusan összefûzve. ( 2016. január 10. - 09:31:13 )

Nem oldottam meg sajnos.Segitseg :)
« Utoljára szerkesztve: 2016. január 10. - 09:31:13 írta Brian_Oconer »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal