Server Intro

Započeo desibro, Februar 12, 2023, 01:19:02 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning):[/b] Nece da promeni na sledecu scenu . Cim se prva zavrsi tako ostane i tjt .
Pawno Code:forward CRPIntro1(playerid, crpintroid1);
public CRPIntro1(playerid, crpintroid1)
{
    if(IsPlayerConnected(playerid))
    {
    if(crpintroid1 == 1)
    {
        TogglePlayerControllable(playerid, 0);
        InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, 0, "ii", playerid, 2);
    }
else if(crpintroid1 == 2)
{
  TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, 0, "ii", playerid, 3);
}
else if(rrpintroid1 == 3)
{
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
}

Slika/video ingame problema(obavezno ako je ingame problem): /
Poslednja Izmena: Februar 12, 2023, 01:23:27 PRE PODNE od desibro

Citat: desibro poslato Februar 12, 2023, 01:19:02 PRE PODNE
Problem(error/warning):[/b] Nece da promeni na sledecu scenu . Cim se prva zavrsi tako ostane i tjt .
Pawno Code:forward CRPIntro1(playerid, crpintroid1);
public CRPIntro1(playerid, crpintroid1)
{
    if(IsPlayerConnected(playerid))
    {
    if(crpintroid1 == 1)
    {
        TogglePlayerControllable(playerid, 0);
        InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, 0, "ii", playerid, 2);
    }
else if(crpintroid1 == 2)
{
  TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, 0, "ii", playerid, 3);
}
else if(rrpintroid1 == 3)
{
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
}

Slika/video ingame problema(obavezno ako je ingame problem): /
Pokusaj ovako i pisi jel radi

[pawn]
new   CRPIntroTimer[MAX_PLAYERS];
forward CRPIntro1( playerid, izbor );
public CRPIntro1( playerid, izbor )
{
   if( izbor == 1 )
   {
      SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
        TogglePlayerControllable(playerid, 0);
       InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
      InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
       CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 2 );
   }
   else if( izbor == 2 )
   {
       TogglePlayerControllable(playerid, 0);
      InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
      InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
       CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 3 );
   }
   else if( izbor == 3 )
   {
      TogglePlayerControllable(playerid, 0);
      InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
      InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
       CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 4 );
   }
   return 1;
}

Kod kraj register stavi
CRPIntroTimer[playerid] = SetTimerEx("crpintroid1",465, false, "ii", playerid, 1 );
[/pawn]

Citat: Goku ^ poslato Februar 12, 2023, 10:34:01 PRE PODNE
Pokusaj ovako i pisi jel radi

[pawn]
new   CRPIntroTimer[MAX_PLAYERS];
forward CRPIntro1( playerid, izbor );
public CRPIntro1( playerid, izbor )
{
   if( izbor == 1 )
   {
      SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
        TogglePlayerControllable(playerid, 0);
       InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
      InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
       CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 2 );
   }
   else if( izbor == 2 )
   {
       TogglePlayerControllable(playerid, 0);
      InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
      InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
       CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 3 );
   }
   else if( izbor == 3 )
   {
      TogglePlayerControllable(playerid, 0);
      InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
      InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
       CRPIntroTimer[playerid] = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 4 );
   }
   return 1;
}

Kod kraj register stavi
CRPIntroTimer[playerid] = SetTimerEx("crpintroid1",465, false, "ii", playerid, 1 );
[/pawn]
Nece mozes li priv?

forward CRPIntro1(playerid, crpintroid1);
public CRPIntro1(playerid, crpintroid1)
{
    if(IsPlayerConnected(playerid))
    {
       if(crpintroid1 == 1)
       {
              TogglePlayerControllable(playerid, 0);
              InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
         InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
         CRPIntroTimer[playerid] = SetTimerEx("CRPIntro1", 10000, 0, "ii", playerid, 2);
         }
      else if(crpintroid1 == 2)
      {
           TogglePlayerControllable(playerid, 0);
         InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
         InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
         CRPIntroTimer[playerid] = SetTimerEx("CRPIntro1", 10000, 0, "ii", playerid, 3);
      }
      else if(crpintroid1 == 3)
      {
         TogglePlayerControllable(playerid, 0);
         InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
         InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
      }

Citat: Tebrix poslato Februar 12, 2023, 17:51:07 POSLE PODNE
forward CRPIntro1(playerid, crpintroid1);
public CRPIntro1(playerid, crpintroid1)
{
    if(IsPlayerConnected(playerid))
    {
       if(crpintroid1 == 1)
       {
              TogglePlayerControllable(playerid, 0);
              InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
         InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
         CRPIntroTimer[playerid] = SetTimerEx("CRPIntro1", 10000, 0, "ii", playerid, 2);
         }
      else if(crpintroid1 == 2)
      {
           TogglePlayerControllable(playerid, 0);
         InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
         InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
         CRPIntroTimer[playerid] = SetTimerEx("CRPIntro1", 10000, 0, "ii", playerid, 3);
      }
      else if(crpintroid1 == 3)
      {
         TogglePlayerControllable(playerid, 0);
         InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
         InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
      }
Ovo vec radi sad samo predstavlja problem sto ne ucitava mape i onda se neki objekti ne vide a nekim je losa tekstura i da ne radi se o mapanim delovima vec samo o default objketima iz san andreasa
Poslednja Izmena: Februar 12, 2023, 19:02:34 POSLE PODNE od desibro

Citat: desibro poslato Februar 12, 2023, 19:01:19 POSLE PODNE
Ovo vec radi sad samo predstavlja problem sto ne ucitava mape i onda se neki objekti ne vide a nekim je losa tekstura i da ne radi se o mapanim delovima vec samo o default objketima iz san andreasa
Postavi igraca blizu tih mapa i freezaj ga i to je to
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Citat: ɴᴏᴅɪ poslato Februar 12, 2023, 19:09:01 POSLE PODNE
Postavi igraca blizu tih mapa i freezaj ga i to je to
Pa neki pogled je blizu a neki udaljen . Koristio sam FreezeTimer i stavio tacno koliko treba al idalje ista prica.

Dodao sam "SetPlayerPos" postavio kordinate jos samo da namestim da se ne vidi CJ tkd odprilike svaki put da bude pod zemljom i bice ovo top. Hvala svima :)