Pri loginu

Započeo Nidza
11. Dec. 2018.
721
pregleda
14
postova
Nidza
4
Shot Caller
11. Dec. 2018.
Problem(error/warning): ovako kad udjem na srw ukucam sifru i kad se spawnam ne spawnam se direktno vec treba da kliknes dole dugme spawn to nije bilo na modu i iz cista mira se pojavilo nzm zbog cega je ako neko moze da mi pomogne kako da to sklonim i da vratim normalno spawn.
Dio skripte: [ pawn ] nzm sta je potrebno dacu samo kazite[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]/[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem):  https://imgur.com/a/FehRrt8
ivan221
5
Made Man
🔥8
11. Dec. 2018.
Dodaj SpawnPlayer(playerid);
Nidza
4
Shot Caller
11. Dec. 2018.
gde tacno treba to da stavim ?
pokusao sam kod onplayerspawn ali nece
ivan221
5
Made Man
🔥8
11. Dec. 2018.
Stavis kad se igrac loginuje da ga spawna odnosno SpawnPlayer
Nidza
4
Shot Caller
11. Dec. 2018.
ja sam stavio pod login spawnplayer(playerid) ali opet isto reaguje skripta
Purda121
5
OG Legend
11. Dec. 2018.
Daj mi kod od DIALOG_LOGIN i public od Register/Logina
Yoppa
3
Wheel Man
12. Dec. 2018.
Nidza wrote on December 11, 2018, 6:03 pm:
Problem(error/warning): ovako kad udjem na srw ukucam sifru i kad se spawnam ne spawnam se direktno vec treba da kliknes dole dugme spawn to nije bilo na modu i iz cista mira se pojavilo nzm zbog cega je ako neko moze da mi pomogne kako da to sklonim i da vratim normalno spawn.
Dio skripte: [ pawn ] nzm sta je potrebno dacu samo kazite[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]/[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem):  https://imgur.com/a/FehRrt8


Hashtag.Purda wrote on December 11, 2018, 8:12 pm:
Daj mi kod od DIALOG_LOGIN i public od Register/Logina


Kao sto je vec covjek rekao, daj nam citavi login/reg dialog, greska moze biti bilo gjde al prvo vidi da li si stavio SpawnPlayerInfo i SpawnPlayer na kraju dialoga.
Nidza
4
Shot Caller
12. Dec. 2018.
evo ovi kodovi za dijalog pri loginu:
forward LoginP2(playerid);
public LoginP2(playerid)
{
    print("timer-49");
new info;
ResetPlayerWeapons(playerid);
TextDrawShowForPlayer(playerid, textdraw26);
TextDrawShowForPlayer(playerid, textdraw27);
TextDrawShowForPlayer(playerid, textdraw28);
TextDrawShowForPlayer(playerid, textdraw29);
TextDrawShowForPlayer(playerid, textdraw30);
TextDrawShowForPlayer(playerid, textdraw31);
TextDrawShowForPlayer(playerid, textdraw32);
TextDrawShowForPlayer(playerid, textdraw33);
TextDrawShowForPlayer(playerid, textdraw34);
TextDrawShowForPlayer(playerid, textdraw35);
TextDrawShowForPlayer(playerid, textdraw270);
TextDrawShowForPlayer(playerid, textdraw271);
TextDrawShowForPlayer(playerid, textdraw272);
TextDrawShowForPlayer(playerid, textdraw273);
TextDrawShowForPlayer(playerid, textdraw274);
TextDrawShowForPlayer(playerid, textdraw275);
TextDrawShowForPlayer(playerid, textdraw276);
TextDrawShowForPlayer(playerid, textdraw277);
TextDrawShowForPlayer(playerid, textdraw278);
TextDrawShowForPlayer(playerid, textdraw279);
TextDrawShowForPlayer(playerid, textdraw280);
TextDrawShowForPlayer(playerid, textdraw281);
TextDrawShowForPlayer(playerid, textdraw282);
TextDrawShowForPlayer(playerid, textdraw283);
TextDrawShowForPlayer(playerid, textdraw284);
TextDrawShowForPlayer(playerid, textdraw285);
format(info,sizeof(info),"{0090ff}______________________________________\n\n{0090ff}Dobrodosli na "BELA"Balkan School RolePlay {0090ff}Server\n\n{0090ff}Vase ime: "BELA"%s\n\n{0090ff}Vas "BELA"Account {0090ff}je pronadjen\n\n{0090ff}Sajt: "BELA"www.uskoro.com\n{0090ff}Molimo upisite svoju sifru!\n\n{0090ff}______________________________________",GetName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,""SVETLOZUTA"Balkan School RolePlay - Login",info,"Login","Izadji");
new name;
GetPlayerName(playerid, name,sizeof(name));
if (strcmp(name, "Miljan",true) == 1)
{
new ipstring;
new formatic;
GetPlayerIp(playerid,ipstring,sizeof(ipstring));
format(formatic,256,""CRVENA"! "ORANGE"Connect: %s [ID:%d] | IP: %s",GetName(playerid),playerid,ipstring);
SendAdminMessage(-1, formatic);
}
KillTimer(LogRegTimer2);
return 1;
}
Nidza
4
Shot Caller
12. Dec. 2018.
zatim ima i ovo :
			case DIALOG_LOGIN:
    {
    if(!response) return Kick(playerid),print("kick-10");
    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, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
    }
    SpawnPlayer(playerid); SpawnIgraca(playerid);
                    TextDrawHideForPlayer(playerid, textdraw26);
TextDrawHideForPlayer(playerid, textdraw27);
TextDrawHideForPlayer(playerid, textdraw28);
TextDrawHideForPlayer(playerid, textdraw29);
TextDrawHideForPlayer(playerid, textdraw30);
TextDrawHideForPlayer(playerid, textdraw31);
TextDrawHideForPlayer(playerid, textdraw32);
TextDrawHideForPlayer(playerid, textdraw33);
TextDrawHideForPlayer(playerid, textdraw34);
TextDrawHideForPlayer(playerid, textdraw35);
TextDrawHideForPlayer(playerid, textdraw270);
TextDrawHideForPlayer(playerid, textdraw271);
TextDrawHideForPlayer(playerid, textdraw272);
TextDrawHideForPlayer(playerid, textdraw273);
TextDrawHideForPlayer(playerid, textdraw274);
TextDrawHideForPlayer(playerid, textdraw275);
TextDrawHideForPlayer(playerid, textdraw276);
TextDrawHideForPlayer(playerid, textdraw277);
TextDrawHideForPlayer(playerid, textdraw278);
TextDrawHideForPlayer(playerid, textdraw279);
TextDrawHideForPlayer(playerid, textdraw280);
TextDrawHideForPlayer(playerid, textdraw281);
TextDrawHideForPlayer(playerid, textdraw282);
TextDrawHideForPlayer(playerid, textdraw283);
TextDrawHideForPlayer(playerid, textdraw284);
TextDrawHideForPlayer(playerid, textdraw285);
GivePlayerMoney(playerid, PlayerInfo);
SetPlayerFightingStyle(playerid, PlayerInfo);
SetCameraBehindPlayer(playerid);
UlogovanProvera = 1;
SetPlayerSkin(playerid, PlayerInfo);
TextDrawHideForPlayer(playerid, LoginTextdraw);
TextDrawHideForPlayer(playerid, LoginTextdraw); TextDrawHideForPlayer(playerid, LoginTextdraw); TextDrawHideForPlayer(playerid, LoginTextdraw);
    OcistiChat(playerid, 10);
new string2;
SendClientMessage(playerid,-1, ""ZELENA"------------------------------------------------------");
format(string2, sizeof(string2), ""OKER"Dobrodosli na Balkan School Roleplay");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Vlasnik: Boske");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Direktor: Alex i Walle");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Skripter: Miljan");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Maper: Miljan i KaLu i Boss");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Sajt: balkanschool-samp.com");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Admin Level: %d",PlayerInfo);
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "VIP Level: %d",PlayerInfo);
SendClientMessage(playerid,-1,string2);
if (PlayerInfo > 0)
{
SendClientMessage(playerid,-1,"Hvala vam sto donirate! <33");
}
SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
SendClientMessage(playerid,-1, ""ZELENA"------------------------------------------------------");
if(PlayerInfo >= 4)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Admin na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
if(PlayerInfo > 1 && PlayerInfo < 4)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Helper na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
if(PlayerInfo > 0)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Lider na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
if(PlayerInfo > 0)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Clan Velikog Brata na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
JBC_TogglePlayerSpectating(playerid, 0);
if (PlayerInfo >= 100000000)
{
new stringar;
format(stringar,sizeof(stringar),""CRVENA"!BS-AC "ORANGE"Igrac %s [%d] Dzep: %d$ | Banka: %d$!",GetName(playerid),playerid,PlayerInfo,PlayerInfo);
SendAdminMessage(-1, stringar);
}
if (PlayerInfo >= 1000000)
{
new stringar;
format(stringar,sizeof(stringar),""CRVENA"!BS-AC "ORANGE"Igrac %s [%d] Dzep: %d$ | Banka: %d$!",GetName(playerid),playerid,PlayerInfo,PlayerInfo);
SendAdminMessage(-1, stringar);
}
if(PlayerInfo == 0)
{
    SCM(playerid,-1,""CRVENA" "SIVA"Niste zavrsili registraciju!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""CRVENA"Vi ste", ""BELA"Musko\n"BELA"Zensko", "Select", "Exit");
    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 loginname;
GetPlayerName(playerid,loginname,sizeof(loginname));
new info;
                format(info,sizeof(info),"{0090ff}______________________________________\n\n{0090ff}Dobrodosli na "BELA"Balkan School RolePlay {0090ff}Server\n\n{0090ff}Vase ime: "BELA"%s\n\n{0090ff}Vas "BELA"Account {0090ff}je pronadjen\n\n{0090ff}Sajt: "BELA"www.uskoro.com\n{0090ff}Molimo upisite svoju sifru!\n\n{0090ff}______________________________________",GetName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,""CRVENA"BS|{FFFFFF}Login",info,"Login","Exit");
LoginPokusaji ++;
new textjbni; format(textjbni, sizeof(textjbni)," "CRVENA"Pogresna lozinka! Preostalo Pokusaja: %d/4!",LoginPokusaji);SCM(playerid, -1, textjbni);
if(LoginPokusaji == 4) { StatusKonekta(playerid, 4); }
}
return 1;
    }
    }
    return 1;
}
Nidza
4
Shot Caller
12. Dec. 2018.
neko 😕
Nidza
4
Shot Caller
13. Dec. 2018.
bas niko 😕
mus4
4
Made Man
13. Dec. 2018.
case DIALOG_LOGIN:
    {
    if(!response) return Kick(playerid),print("kick-10");
    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, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
    }
    SpawnPlayer(playerid); SpawnIgraca(playerid);
                    TextDrawHideForPlayer(playerid, textdraw26);
TextDrawHideForPlayer(playerid, textdraw27);
TextDrawHideForPlayer(playerid, textdraw28);
TextDrawHideForPlayer(playerid, textdraw29);
TextDrawHideForPlayer(playerid, textdraw30);
TextDrawHideForPlayer(playerid, textdraw31);
TextDrawHideForPlayer(playerid, textdraw32);
TextDrawHideForPlayer(playerid, textdraw33);
TextDrawHideForPlayer(playerid, textdraw34);
TextDrawHideForPlayer(playerid, textdraw35);
TextDrawHideForPlayer(playerid, textdraw270);
TextDrawHideForPlayer(playerid, textdraw271);
TextDrawHideForPlayer(playerid, textdraw272);
TextDrawHideForPlayer(playerid, textdraw273);
TextDrawHideForPlayer(playerid, textdraw274);
TextDrawHideForPlayer(playerid, textdraw275);
TextDrawHideForPlayer(playerid, textdraw276);
TextDrawHideForPlayer(playerid, textdraw277);
TextDrawHideForPlayer(playerid, textdraw278);
TextDrawHideForPlayer(playerid, textdraw279);
TextDrawHideForPlayer(playerid, textdraw280);
TextDrawHideForPlayer(playerid, textdraw281);
TextDrawHideForPlayer(playerid, textdraw282);
TextDrawHideForPlayer(playerid, textdraw283);
TextDrawHideForPlayer(playerid, textdraw284);
TextDrawHideForPlayer(playerid, textdraw285);
GivePlayerMoney(playerid, PlayerInfo);
SetPlayerFightingStyle(playerid, PlayerInfo);
SetCameraBehindPlayer(playerid);
UlogovanProvera = 1;
SetPlayerSkin(playerid, PlayerInfo);
TextDrawHideForPlayer(playerid, LoginTextdraw);
TextDrawHideForPlayer(playerid, LoginTextdraw); TextDrawHideForPlayer(playerid, LoginTextdraw); TextDrawHideForPlayer(playerid, LoginTextdraw);
    OcistiChat(playerid, 10);
new string2;
SendClientMessage(playerid,-1, ""ZELENA"------------------------------------------------------");
format(string2, sizeof(string2), ""OKER"Dobrodosli na Balkan School Roleplay");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Vlasnik: Boske");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Direktor: Alex i Walle");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Skripter: Miljan");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Maper: Miljan i KaLu i Boss");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Sajt: balkanschool-samp.com");
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "Admin Level: %d",PlayerInfo);
SendClientMessage(playerid,-1,string2);
format(string2, sizeof(string2), "VIP Level: %d",PlayerInfo);
SendClientMessage(playerid,-1,string2);
if (PlayerInfo > 0)
{
SendClientMessage(playerid,-1,"Hvala vam sto donirate! <33");
}
SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
SendClientMessage(playerid,-1, ""ZELENA"------------------------------------------------------");
if(PlayerInfo >= 4)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Admin na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
if(PlayerInfo > 1 && PlayerInfo < 4)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Helper na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
if(PlayerInfo > 0)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Lider na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
if(PlayerInfo > 0)
{
    new string;
    format(string, sizeof(string), ""SIVA"Dobrodosli %s, Vi ste Clan Velikog Brata na slotu %d !", GetName(playerid), PlayerInfo);
    SCM(playerid, -1, string);
}
JBC_TogglePlayerSpectating(playerid, 0);
if (PlayerInfo >= 100000000)
{
new stringar;
format(stringar,sizeof(stringar),""CRVENA"!BS-AC "ORANGE"Igrac %s [%d] Dzep: %d$ | Banka: %d$!",GetName(playerid),playerid,PlayerInfo,PlayerInfo);
SendAdminMessage(-1, stringar);
}
if (PlayerInfo >= 1000000)
{
new stringar;
format(stringar,sizeof(stringar),""CRVENA"!BS-AC "ORANGE"Igrac %s [%d] Dzep: %d$ | Banka: %d$!",GetName(playerid),playerid,PlayerInfo,PlayerInfo);
SendAdminMessage(-1, stringar);
}
if(PlayerInfo == 0)
{
    SCM(playerid,-1,""CRVENA" "SIVA"Niste zavrsili registraciju!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""CRVENA"Vi ste", ""BELA"Musko\n"BELA"Zensko", "Select", "Exit");
    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);
                                            TogglePlayerSpectating(playerid, false);
}
    }
    else
    {
    new loginname;
GetPlayerName(playerid,loginname,sizeof(loginname));
new info;
                format(info,sizeof(info),"{0090ff}______________________________________\n\n{0090ff}Dobrodosli na "BELA"Balkan School RolePlay {0090ff}Server\n\n{0090ff}Vase ime: "BELA"%s\n\n{0090ff}Vas "BELA"Account {0090ff}je pronadjen\n\n{0090ff}Sajt: "BELA"www.uskoro.com\n{0090ff}Molimo upisite svoju sifru!\n\n{0090ff}______________________________________",GetName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,""CRVENA"BS|{FFFFFF}Login",info,"Login","Exit");
LoginPokusaji ++;
new textjbni; format(textjbni, sizeof(textjbni)," "CRVENA"Pogresna lozinka! Preostalo Pokusaja: %d/4!",LoginPokusaji);SCM(playerid, -1, textjbni);
if(LoginPokusaji == 4) { StatusKonekta(playerid, 4); }
}
return 1;
    }
    }
    return 1;
}


A ovo dodaj pod
OnPlayerConnect(playerid);
TogglePlayerSpectating(playerid, true);
Nidza
4
Shot Caller
13. Dec. 2018.
opet isto moras da kliknes SPAWN
Nidza
4
Shot Caller
13. Dec. 2018.
RESIO SAM PROBLEM HVALA SVIMA !

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha