[Pomoc] intro problem

Započeo [GU:RP] Ivica
4. Jun 2013. Zaključano
410
pregleda
10
postova
ivica158
5
Crime Lord
4. Jun 2013.
Skripta koju koristim:cyber
Detaljan opis problema:pa sad se ja regao i meni intro sve odradio mislim nije mi stalo ni na jednom slajdu i usao frend i gleda intro i stalo mu odma na pocetku do cega moze da bude to. Hvala
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
xyzcod2
5
Underboss
4. Jun 2013.
jesi uradio sa foreachom?
ivica158
5
Crime Lord
4. Jun 2013.
dakle da pojasnim na koji princip radi tamo na connectu di gleda dal igrac nema acc tu sam stavio showintro(playerid);

i iz njega se pokrece dalje da se gleda to je dakle ovo introstate
stock ShowIntro(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPVarInt(playerid, "introstate", 1); //INTRO 1.
for(new t=0;t<9;t++) { TextDrawShowForPlayer(playerid, IntroTD); TextDrawShowForPlayer(playerid,crni); }
PlayerPlaySound(playerid, 1039, 0.0, 0.0, 0.0); SetPlayerPos(playerid, 1265.0597,-1529.2328,-62.4249); SetPlayerCameraPos(playerid, 1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(playerid, 1314.5819,-1495.5293,82.3117);
}
return 1;
}
Deleted User
Obrisan korisnik
4. Jun 2013.
Kako si ostalo odradio?
ivica158
5
Crime Lord
4. Jun 2013.
evo i ovo je introcheck i njegov timer pod ongamemodeinit

timer:
IntroReg = SetTimer("IntroCheck",7000,true);

public IntroCheck(playerid) {
for(new i=0;i if(IsPlayerConnected(i) && GetPVarInt(i, "introstate") != 0) {
    if(GetPVarInt(i, "introstate") == 1) {
        for(new t=0;t<5;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTD); }
        for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDDva); }
        SetPVarInt(i, "introstate", 2); //INTRO 2.
        PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0); SetPlayerPos(i, 1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i, 1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(i,1314.5819,-1495.5293,82.3117);
}else if(GetPVarInt(i, "introstate") == 2) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTDDva); }
        for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDTri); }
        SetPVarInt(i, "introstate", 3);//INTRO 3.
        PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0); SetPlayerPos(i,  1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i,1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(i,1314.5819,-1495.5293,82.3117);
}else if(GetPVarInt(i, "introstate") == 3) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTDTri); }
    //----------------intro 4------------------------------------------//
    for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDCetiri); }
        SetPVarInt(i, "introstate", 4);//INTRO 4.
        PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); //SetPlayerPos(i,  1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i,-2572.4331,1405.6974,20.2946); SetPlayerCameraLookAt(i,-2603.3301,1516.0060,39.6734);
}else if(GetPVarInt(i, "introstate") == 4) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTDCetiri); }
    //intro 5.
for(new t=0;t<7;t++)
{
TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,Textdraw124); TextDrawShowForPlayer(i,Textdraw126); TextDrawShowForPlayer(i,Textdraw127); TextDrawShowForPlayer(i,Textdraw116); TextDrawShowForPlayer(i,Textdraw117); TextDrawShowForPlayer(i,Textdraw118); TextDrawShowForPlayer(i,Textdraw119); TextDrawShowForPlayer(i,Textdraw120); TextDrawShowForPlayer(i,Textdraw121);TextDrawShowForPlayer(i,Textdraw122);TextDrawShowForPlayer(i, IntroTDPet);
TextDrawShowForPlayer(i,Textdraw123); TextDrawShowForPlayer(i,Textdraw115); TextDrawHideForPlayer(i,crni);
}
        SetPVarInt(i, "introstate", 5);//INTRO 5.
        PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); SetPlayerPos(i,  2076.1084,1309.1228,19.7385);
SetPlayerCameraPos(i,2092.1477,1306.3602,33.3597); SetPlayerCameraLookAt(i,2138.7808,1290.1499,43.7068);
}else if(GetPVarInt(i, "introstate") == 5) {
for(new t=0;t<7;t++)
{
TextDrawHideForPlayer(i,TDRMsgs); TextDrawHideForPlayer(i,crni); TextDrawHideForPlayer(i,Textdraw116); TextDrawHideForPlayer(i,Textdraw117); TextDrawHideForPlayer(i,Textdraw118); TextDrawHideForPlayer(i,Textdraw119); TextDrawHideForPlayer(i,Textdraw120); TextDrawHideForPlayer(i,Textdraw121); TextDrawHideForPlayer(i,Textdraw122); TextDrawHideForPlayer(i, IntroTDPet);
TextDrawHideForPlayer(i,Textdraw123); TextDrawHideForPlayer(i,Textdraw124); TextDrawHideForPlayer(i,Textdraw126); TextDrawHideForPlayer(i,Textdraw127); TextDrawHideForPlayer(i,Textdraw115);
}
//intro 6.
for(new t=0;t<7;t++) { TextDrawShowForAll(Text:TDRMsgs); TextDrawHideForPlayer(i,crni); TextDrawShowForPlayer(i, IntroTDSest); }
        SetPVarInt(i, "introstate", 6);//INTRO 6.
        PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
}else if(GetPVarInt(i, "introstate") == 6) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i, IntroTDSest); }
          KillTimer(IntroReg);
      SetTimerEx("PostaviKameru1",1000,false,"d",i);
ClearChatbox(i, 30); } } }
return 1;
  }
Deleted User
Obrisan korisnik
4. Jun 2013.
Prosto receno ti si odradio registraciju i "ubio" timer... KillTimer(IntroReg); tebi taj timer treba stalno da se obrce tako da ide bez toga i onoga (playerid)
public IntroCheck() {
for(new i=0;i if(IsPlayerConnected(i) && GetPVarInt(i, "introstate") != 0) {
    if(GetPVarInt(i, "introstate") == 1) {
        for(new t=0;t<5;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTD); }
        for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDDva); }
        SetPVarInt(i, "introstate", 2); //INTRO 2.
        PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0); SetPlayerPos(i, 1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i, 1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(i,1314.5819,-1495.5293,82.3117);
}else if(GetPVarInt(i, "introstate") == 2) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTDDva); }
        for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDTri); }
        SetPVarInt(i, "introstate", 3);//INTRO 3.
        PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0); SetPlayerPos(i,  1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i,1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(i,1314.5819,-1495.5293,82.3117);
}else if(GetPVarInt(i, "introstate") == 3) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTDTri); }
    //----------------intro 4------------------------------------------//
    for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDCetiri); }
        SetPVarInt(i, "introstate", 4);//INTRO 4.
        PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); //SetPlayerPos(i,  1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i,-2572.4331,1405.6974,20.2946); SetPlayerCameraLookAt(i,-2603.3301,1516.0060,39.6734);
}else if(GetPVarInt(i, "introstate") == 4) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,crni); TextDrawHideForPlayer(i, IntroTDCetiri); }
    //intro 5.
for(new t=0;t<7;t++)
{
TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i,Textdraw124); TextDrawShowForPlayer(i,Textdraw126); TextDrawShowForPlayer(i,Textdraw127); TextDrawShowForPlayer(i,Textdraw116); TextDrawShowForPlayer(i,Textdraw117); TextDrawShowForPlayer(i,Textdraw118); TextDrawShowForPlayer(i,Textdraw119); TextDrawShowForPlayer(i,Textdraw120); TextDrawShowForPlayer(i,Textdraw121);TextDrawShowForPlayer(i,Textdraw122);TextDrawShowForPlayer(i, IntroTDPet);
TextDrawShowForPlayer(i,Textdraw123); TextDrawShowForPlayer(i,Textdraw115); TextDrawHideForPlayer(i,crni);
}
        SetPVarInt(i, "introstate", 5);//INTRO 5.
        PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); SetPlayerPos(i,  2076.1084,1309.1228,19.7385);
SetPlayerCameraPos(i,2092.1477,1306.3602,33.3597); SetPlayerCameraLookAt(i,2138.7808,1290.1499,43.7068);
}else if(GetPVarInt(i, "introstate") == 5) {
for(new t=0;t<7;t++)
{
TextDrawHideForPlayer(i,TDRMsgs); TextDrawHideForPlayer(i,crni); TextDrawHideForPlayer(i,Textdraw116); TextDrawHideForPlayer(i,Textdraw117); TextDrawHideForPlayer(i,Textdraw118); TextDrawHideForPlayer(i,Textdraw119); TextDrawHideForPlayer(i,Textdraw120); TextDrawHideForPlayer(i,Textdraw121); TextDrawHideForPlayer(i,Textdraw122); TextDrawHideForPlayer(i, IntroTDPet);
TextDrawHideForPlayer(i,Textdraw123); TextDrawHideForPlayer(i,Textdraw124); TextDrawHideForPlayer(i,Textdraw126); TextDrawHideForPlayer(i,Textdraw127); TextDrawHideForPlayer(i,Textdraw115);
}
//intro 6.
for(new t=0;t<7;t++) { TextDrawShowForAll(Text:TDRMsgs); TextDrawHideForPlayer(i,crni); TextDrawShowForPlayer(i, IntroTDSest); }
        SetPVarInt(i, "introstate", 6);//INTRO 6.
        PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
}else if(GetPVarInt(i, "introstate") == 6) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i, IntroTDSest); }
      SetTimerEx("PostaviKameru1",1000,false,"d",i);
ClearChatbox(i, 30); } } }
return 1;
  }

Ako je samo to bio problem videces vec...
ivica158
5
Crime Lord
4. Jun 2013.
nisam na pocetku ako me shvacas meni je sve super radilo i frend usao i gleda intro i odma mu na pocetku stalo sad nezz dal je nesta do timera ili?
Deleted User
Obrisan korisnik
4. Jun 2013.
Quote from June 4, 2013, 5:31 pm:
nisam na pocetku ako me shvacas meni je sve super radilo i frend usao i gleda intro i odma mu na pocetku stalo sad nezz dal je nesta do timera ili?

Pa timer je "mrtav" i kako da mu radi kada mu nista ne obrce...
ivica158
5
Crime Lord
4. Jun 2013.
Gagi znas zasto sam stavljao ono na kraju killtimer evo sad mi je opet to dakle dosao sam na kraj i prihvatio uslove koristenja i krenio registraciju i opet mi izbacilo za prihvacanje uvjeta, ako me shvacas ali tada je bio register dialog i kada sam ga prosao i krenio na reg opet mi pokazao reg dialog i kad sam stavio to killtimer tada nije izbacivalo, ako me shvacas kako da popravim to. Hvala

edit: jedino da mi ne izbacuje opet je da se napravi da ubije tajmer za tog jednog igraca a da ostalima ne dira tj da ostalima ne ubije tajmer
Deleted User
Obrisan korisnik
4. Jun 2013.
Quote from June 4, 2013, 5:49 pm:
Gagi znas zasto sam stavljao ono na kraju killtimer evo sad mi je opet to dakle dosao sam na kraj i prihvatio uslove koristenja i krenio registraciju i opet mi izbacilo za prihvacanje uvjeta, ako me shvacas ali tada je bio register dialog i kada sam ga prosao i krenio na reg opet mi pokazao reg dialog i kad sam stavio to killtimer tada nije izbacivalo, ako me shvacas kako da popravim to. Hvala

edit: jedino da mi ne izbacuje opet je da se napravi da ubije tajmer za tog jednog igraca a da ostalima ne dira tj da ostalima ne ubije tajmer

Fali ti na kraju 6 state-a ovo:
SetPVarInt(i, "introstate", 0);

Moras vratiti na 0 da bi izbegao to sto ti je sada...

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha