Problem s spawnom

Započeo Kamberovic, Decembar 31, 2017, 15:56:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Detaljan opis problema:Editovo sam underpoint i sada kada se konektujem i ukucam sifru sve radi ali nece da se spawn
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Amazing Gaming ~Bayside~
Owner & Developer

amazinggamingrp.e-gear.net:7737

Daj ondialogresponse od login dialoga

Facebook - Klik



Citat: 𝕊𝕙𝕠𝕞𝕪 𝕊ð•"𝕣𝕚𝕡𝕥 poslato Decembar 31, 2017, 23:43:37 POSLE PODNE
Daj ondialogresponse od login dialoga
[pawn]case DIALOG_LOGIN:
       {
          if(!response) return Kick(playerid);
          if(response)
          {
            if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
             {
                INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    new rand = random(sizeof(RandomSpawn2));
               SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
               SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
               SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pBorbeniStil]);
               SetCameraBehindPlayer(playerid);
                UlogovanProvera[playerid] = 1;
                TextDrawHideForPlayer(playerid, LoginTD0);
               TextDrawHideForPlayer(playerid, LoginTD1); TextDrawHideForPlayer(playerid, LoginTD2);
               TextDrawHideForPlayer(playerid, LoginTD3);TextDrawHideForPlayer(playerid, LoginTD3);
               TextDrawHideForPlayer(playerid, LoginTD4);TextDrawHideForPlayer(playerid, LoginTD5);
               TextDrawHideForPlayer(playerid, LoginTD6);TextDrawHideForPlayer(playerid, LoginTD7);
               TextDrawHideForPlayer(playerid, LoginTD8);TextDrawHideForPlayer(playerid, LoginTD9);
               TextDrawHideForPlayer(playerid, LoginTD10);TextDrawHideForPlayer(playerid, LoginTD11);
               TextDrawHideForPlayer(playerid, LoginTD12);TextDrawHideForPlayer(playerid, LoginTD13);
               TextDrawHideForPlayer(playerid, LoginTD14);TextDrawHideForPlayer(playerid, LoginTD15);
                OcistiChat(playerid, 10);
               new string[256],iskustvo;
               iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
               format(string,sizeof(string),""SPLAVA"Dobrodosao "BELA"%s "SPLAVA"na Ludo Selo RolePlay.",GetName(playerid));
               SCM(playerid,-1,string);
               format(string,sizeof(string),""SPLAVA"[INFO]: "BELA"Trenutni Level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
               SCM(playerid,-1,string);
               if(PlayerInfo[playerid][pTutorial] == 0)
               {
                   SCM(playerid,-1,""SPLAVA"Lu"BELA"do "SPLAVA"Se"BELA"lo:: "ZUTA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
                  ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""SPLAVA"- "BELA"Musko\n"SPLAVA"- "BELA"Zensko", "Dalje", "Odustani");
                   SetPlayerCameraPos(playerid, 1657.39, -1856.75, 45.71); SetPlayerCameraLookAt(playerid, 1661.96, -1857.56, 43.85);
                   SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0); SetPlayerPos(playerid, 1693.3690,-1867.5784,13.5412);
                   SetPlayerFacingAngle(playerid, 139.7829); SetPlayerVirtualWorld(playerid, 5446);
               }
             }
             else
             {
                new loginstring[512],loginname[64];
               GetPlayerName(playerid,loginname,sizeof(loginname));
               format(loginstring,sizeof(loginstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Ludo Selo RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "SPLAVA"4 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "SPLAVA"4 "BELA"puta pass bicete banovani!\n"BELA"________________________________________________",loginname);
               ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
                LoginPokusaji[playerid] += 1;
                SCMF(playerid,-1,""SPLAVA"Lu"BELA"do "SPLAVA"Se"BELA"lo: "SPLAVA"Pogresna lozinka | Preostalo Pokusaja: %d/4!",LoginPokusaji[playerid]);
                if(LoginPokusaji[playerid] == 4) { StatusKonekta(playerid, 4); }
            }
            return 1;
          }
       }
    }
    return 1;
}[/pawn]
Amazing Gaming ~Bayside~
Owner & Developer

amazinggamingrp.e-gear.net:7737

Citat: Kamberovic poslato Januar 01, 2018, 00:43:26 PRE PODNE
[pawn]case DIALOG_LOGIN:
       {
          if(!response) return Kick(playerid);
          if(response)
          {
            if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
             {
                INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    new rand = random(sizeof(RandomSpawn2));
               SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
               SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
               SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pBorbeniStil]);
               SetCameraBehindPlayer(playerid);
                UlogovanProvera[playerid] = 1;
                TextDrawHideForPlayer(playerid, LoginTD0);
               TextDrawHideForPlayer(playerid, LoginTD1); TextDrawHideForPlayer(playerid, LoginTD2);
               TextDrawHideForPlayer(playerid, LoginTD3);TextDrawHideForPlayer(playerid, LoginTD3);
               TextDrawHideForPlayer(playerid, LoginTD4);TextDrawHideForPlayer(playerid, LoginTD5);
               TextDrawHideForPlayer(playerid, LoginTD6);TextDrawHideForPlayer(playerid, LoginTD7);
               TextDrawHideForPlayer(playerid, LoginTD8);TextDrawHideForPlayer(playerid, LoginTD9);
               TextDrawHideForPlayer(playerid, LoginTD10);TextDrawHideForPlayer(playerid, LoginTD11);
               TextDrawHideForPlayer(playerid, LoginTD12);TextDrawHideForPlayer(playerid, LoginTD13);
               TextDrawHideForPlayer(playerid, LoginTD14);TextDrawHideForPlayer(playerid, LoginTD15);
                OcistiChat(playerid, 10);
               new string[256],iskustvo;
               iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
               format(string,sizeof(string),""SPLAVA"Dobrodosao "BELA"%s "SPLAVA"na Ludo Selo RolePlay.",GetName(playerid));
               SCM(playerid,-1,string);
               format(string,sizeof(string),""SPLAVA"[INFO]: "BELA"Trenutni Level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
               SCM(playerid,-1,string);
               if(PlayerInfo[playerid][pTutorial] == 0)
               {
                   SCM(playerid,-1,""SPLAVA"Lu"BELA"do "SPLAVA"Se"BELA"lo:: "ZUTA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
                  ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""SPLAVA"- "BELA"Musko\n"SPLAVA"- "BELA"Zensko", "Dalje", "Odustani");
                   SetPlayerCameraPos(playerid, 1657.39, -1856.75, 45.71); SetPlayerCameraLookAt(playerid, 1661.96, -1857.56, 43.85);
                   SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0); SetPlayerPos(playerid, 1693.3690,-1867.5784,13.5412);
                   SetPlayerFacingAngle(playerid, 139.7829); SetPlayerVirtualWorld(playerid, 5446);
               }
             }
             else
             {
                new loginstring[512],loginname[64];
               GetPlayerName(playerid,loginname,sizeof(loginname));
               format(loginstring,sizeof(loginstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Ludo Selo RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "SPLAVA"4 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "SPLAVA"4 "BELA"puta pass bicete banovani!\n"BELA"________________________________________________",loginname);
               ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
                LoginPokusaji[playerid] += 1;
                SCMF(playerid,-1,""SPLAVA"Lu"BELA"do "SPLAVA"Se"BELA"lo: "SPLAVA"Pogresna lozinka | Preostalo Pokusaja: %d/4!",LoginPokusaji[playerid]);
                if(LoginPokusaji[playerid] == 4) { StatusKonekta(playerid, 4); }
            }
            return 1;
          }
       }
    }
    return 1;
}[/pawn]
Daj taj random spawna

Facebook - Klik



Citat: 𝕊𝕙𝕠𝕞𝕪 𝕊ð•"𝕣𝕚𝕡𝕥 poslato Januar 01, 2018, 00:46:00 PRE PODNE
Daj taj random spawna
[pawn]new Float:RandomSpawn[4][3] =
{
   {385.2939,-2063.3613,7.8890},
   {385.2939,-2063.3613,7.8890},
   {385.2939,-2063.3613,7.8890},
   {385.2939,-2063.3613,7.8890}
};
/////////////////////////////////////////////////////////////////////////
new Float:RandomSpawn2[3][4]=
{
   {385.2939,-2063.3613,7.8890},
   {385.2939,-2063.3613,7.8890},
   {385.2939,-2063.3613,7.8890}
};[/pawn]
Amazing Gaming ~Bayside~
Owner & Developer

amazinggamingrp.e-gear.net:7737