Problem s spawnom

Započeo Kamberovic
31. Dec. 2017. Zaključano
500
pregleda
5
postova
AmexScript
4
Enforcer
31. Dec. 2017.
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):
Shomy Script
6
Godfather
31. Dec. 2017.
Daj ondialogresponse od login dialoga
AmexScript
4
Enforcer
31. Dec. 2017.
𝕊𝕙𝕠𝕞𝕪 𝕊𝕔𝕣𝕚𝕡𝕥 wrote on December 31, 2017, 10:43 pm:
Daj ondialogresponse od login dialoga
case DIALOG_LOGIN:
    {
    if(!response) return Kick(playerid);
    if(response)
    {
if(udb_hash(inputtext) == PlayerInfo)
    {
    INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    new rand = random(sizeof(RandomSpawn2));
SetSpawnInfo(playerid, 0, PlayerInfo, RandomSpawn2, RandomSpawn2, RandomSpawn2, RandomSpawn2, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo);
SetPlayerFightingStyle(playerid, PlayerInfo);
SetCameraBehindPlayer(playerid);
    UlogovanProvera = 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,iskustvo;
iskustvo = (PlayerInfo * 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": "BELA"Trenutni Level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo,PlayerInfo,iskustvo,PlayerInfo);
SCM(playerid,-1,string);
if(PlayerInfo == 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,loginname;
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 += 1;
    SCMF(playerid,-1,""SPLAVA"Lu"BELA"do "SPLAVA"Se"BELA"lo: "SPLAVA"Pogresna lozinka | Preostalo Pokusaja: %d/4!",LoginPokusaji);
    if(LoginPokusaji == 4) { StatusKonekta(playerid, 4); }
}
return 1;
    }
    }
    }
    return 1;
}
Shomy Script
6
Godfather
31. Dec. 2017.
Kamberovic wrote on December 31, 2017, 11:43 pm:
case DIALOG_LOGIN:
    {
    if(!response) return Kick(playerid);
    if(response)
    {
if(udb_hash(inputtext) == PlayerInfo)
    {
    INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    new rand = random(sizeof(RandomSpawn2));
SetSpawnInfo(playerid, 0, PlayerInfo, RandomSpawn2, RandomSpawn2, RandomSpawn2, RandomSpawn2, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo);
SetPlayerFightingStyle(playerid, PlayerInfo);
SetCameraBehindPlayer(playerid);
    UlogovanProvera = 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,iskustvo;
iskustvo = (PlayerInfo * 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": "BELA"Trenutni Level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo,PlayerInfo,iskustvo,PlayerInfo);
SCM(playerid,-1,string);
if(PlayerInfo == 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,loginname;
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 += 1;
    SCMF(playerid,-1,""SPLAVA"Lu"BELA"do "SPLAVA"Se"BELA"lo: "SPLAVA"Pogresna lozinka | Preostalo Pokusaja: %d/4!",LoginPokusaji);
    if(LoginPokusaji == 4) { StatusKonekta(playerid, 4); }
}
return 1;
    }
    }
    }
    return 1;
}
Daj taj random spawna
AmexScript
4
Enforcer
1. Jan. 2018.
𝕊𝕙𝕠𝕞𝕪 𝕊𝕔𝕣𝕚𝕡𝕥 wrote on December 31, 2017, 11:46 pm:
Daj taj random spawna
new Float:RandomSpawn =
{
{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=
{
{385.2939,-2063.3613,7.8890},
{385.2939,-2063.3613,7.8890},
{385.2939,-2063.3613,7.8890}
};

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha