Skripta koju koristim: UPRP
Detaljan opis problema: pa stavio sam OnPlayerClickTextDraw znaci onako stisnes na login i on ti izbaci dialog i onda se logiras.... ali mi izbaci warninge i nisam ni stiso na login on meni vec izbaci dialog login...
Dio skripte: evo di mi izbaci warninge... OcistiChat(playerid,16); TextDrawShowForPlayer(playerid, LoginTextdraw[0]);
KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);
Neke slike/video za lakse dobivanje pomoci(neobavezno): mislim da nije potrebno...
Koje warninze ti baca
warning 225: unreachable code -------> za oba dva...
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 16:12:52 POSLE PODNE
warning 225: unreachable code -------> za oba dva...
Nemoguce da ti to baca na ovim linijama.
forward Registracija2(playerid);
public Registracija2(playerid)
{
KillTimer(IntroTimer2[playerid]);
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG11);
TextDrawShowForPlayer(playerid, LOG12);
TextDrawShowForPlayer(playerid, LOG13);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG21);
TextDrawShowForPlayer(playerid, LOG22);
KillTimer(IntroTimer2[playerid]);
SelectTextDraw(playerid, 0xFF8000FF);
return 1;
KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);
TextDrawShowForPlayer(playerid,Intro[3]); TextDrawShowForPlayer(playerid,Intro[4]);
IntroTimer3[playerid] = SetTimerEx("Registracija3",5000, false, "i", playerid);
return 1;
}
forward LoginP(playerid);
public LoginP(playerid)
{
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG11);
TextDrawShowForPlayer(playerid, LOG12);
TextDrawShowForPlayer(playerid, LOG13);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG21);
TextDrawShowForPlayer(playerid, LOG22);
SelectTextDraw(playerid, 0xFF8000FF);
LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
return 1;
OcistiChat(playerid,16); TextDrawShowForPlayer(playerid, LoginTextdraw[0]);
TextDrawShowForPlayer(playerid, LoginTextdraw[1]); TextDrawShowForPlayer(playerid, LoginTextdraw[2]);
InterpolateCameraPos(playerid, 1164.730102, -1187.794677, 307.139495, 1565.853759, -1567.488525, 307.139495, 30000);
InterpolateCameraLookAt(playerid, 1169.372436, -1187.942382, 305.288421, 1565.404052, -1562.916870, 305.165283, 30000);
LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
return 1;
}
eto vam sve ... pa vidite jel dobro... a mozda moguce da je zbog ovog intro-a jer sam izbriso...
forward Registracija2(playerid);
public Registracija2(playerid)
{
KillTimer(IntroTimer2[playerid]);
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG11);
TextDrawShowForPlayer(playerid, LOG12);
TextDrawShowForPlayer(playerid, LOG13);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG21);
TextDrawShowForPlayer(playerid, LOG22);
KillTimer(IntroTimer2[playerid]);
SelectTextDraw(playerid, 0xFF8000FF);
KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);
TextDrawShowForPlayer(playerid,Intro[3]); TextDrawShowForPlayer(playerid,Intro[4]);
IntroTimer3[playerid] = SetTimerEx("Registracija3",5000, false, "i", playerid);
return 1;
}
forward LoginP(playerid);
public LoginP(playerid)
{
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG11);
TextDrawShowForPlayer(playerid, LOG12);
TextDrawShowForPlayer(playerid, LOG13);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG21);
TextDrawShowForPlayer(playerid, LOG22);
SelectTextDraw(playerid, 0xFF8000FF);
LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
OcistiChat(playerid,16); TextDrawShowForPlayer(playerid, LoginTextdraw[0]);
TextDrawShowForPlayer(playerid, LoginTextdraw[1]); TextDrawShowForPlayer(playerid, LoginTextdraw[2]);
InterpolateCameraPos(playerid, 1164.730102, -1187.794677, 307.139495, 1565.853759, -1567.488525, 307.139495, 30000);
InterpolateCameraLookAt(playerid, 1169.372436, -1187.942382, 305.288421, 1565.404052, -1562.916870, 305.165283, 30000);
LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
return 1;
}
Probaj...
ali sad kad se logujem ponovo mi izbaci dialog i ponovo se moram logirati i tako cijelo vrijemee mozete pomociii
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 18:53:08 POSLE PODNE
ali sad kad se logujem ponovo mi izbaci dialog i ponovo se moram logirati i tako cijelo vrijemee mozete pomociii
Jesam ti resio problem jesam?
Vidi malo u proveri za pw itd.
sve mi je oke ali ja ni nestisnem na login on meni vec izbaci login dialog.... mozete pomoci molim vas
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 21:19:39 POSLE PODNE
sve mi je oke ali ja ni nestisnem na login on meni vec izbaci login dialog.... mozete pomoci molim vas
Pa pogledaj OnDialogReasponse pokusaj malo sam sta skontat.
Nemam ja moci pa da vidim kod.
Oke, mozes mi samo reci jer ja nisam bas dobar u vezi td logina...
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, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG11);
CancelSelectTextDraw(playerid);
OcistiChat(playerid, 10);
new string[256],iskustvo;
iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
format(string,sizeof(string),""CRVENA"Dobrodosao "SIVA"%s "CRVENA"na Steal City RolePlay.",GetName(playerid));
SCM(playerid,-1,string);
format(string,sizeof(string),""CRVENA"[INFO]: "SIVA"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,""CRVENA"(SC) "SIVA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""SIVA"Dali ste musko ili zensko?", ""CRVENA"- "SIVA"Musko\n"CRVENA"- "SIVA"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 Steal City RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"3 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "CRVENA"3 "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,""CRVENA"(SC) "SIVA"Pogresna lozinka | Preostalo Pokusaja: %d/3!",LoginPokusaji[playerid]);
if(LoginPokusaji[playerid] == 3) { StatusKonekta(playerid, 3); }
}
return 1;
}
}
}
return 1;
}
Uzasan je kod ali to je nebitno nevidim ovde nista sto bi to radilo..
Sta tacno bude tebi samo otvara dialoge ali ti nedajes nikakav response?
Gledaj znaci, kad udjem u server izbaci mi login registracija izlaz taman idem kliknit login i on mi izbaci dialog login...znaci automatski mi izbaci dialog login a nisam nista ni kliknio...
Prvo skontaj sta pises
idem kliknit login i on mi izbaci dialog login...znaci automatski mi izbaci dialog login a nisam nista ni kliknio...
Ti kliknes ali nekliknes?
hahaha gledaj haha, udjem u server nekliknem nista i on mi izbaci dialog login sad skonto ?
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 21:42:41 POSLE PODNE
hahaha gledaj haha, udjem u server nekliknem nista i on mi izbaci dialog login sad skonto ?
Pa mozda zato sto imas racun.
Nerazumijem sta je problem u izbacivanju dialoga.
Kako nekontas...... znaci, napravio sam onplayerclicktextdraw znaci kad kliknes na login da ti tek onda izbaci login dialog...a ja nis ni nekliknem on meni vec izbaci jesi sad skonto vise haha :'(
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 21:58:32 POSLE PODNE
Kako nekontas...... znaci, napravio sam onplayerclicktextdraw znaci kad kliknes na login da ti tek onda izbaci login dialog...a ja nis ni nekliknem on meni vec izbaci jesi sad skonto vise haha :'(
Pa neznam ovako ti nemogu reci sta je...
Pokusaj to skontat nekako.
Idi redom pa gledaj da nemas kakav timer ili nesto sto odma izbacuje login.
problem je u tome sto neznam bas sa tajmerima... :$ evo ti svi kodovi vezani uz login pa ti vidi ... :)
forward LoginP(playerid);
public LoginP(playerid)
{
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG11);
SelectTextDraw(playerid, 0xFF8000FF);
LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
OcistiChat(playerid,16); TextDrawShowForPlayer(playerid, LoginTextdraw[0]);
TextDrawShowForPlayer(playerid, LoginTextdraw[1]); TextDrawShowForPlayer(playerid, LoginTextdraw[2]);
InterpolateCameraPos(playerid, 1164.730102, -1187.794677, 307.139495, 1565.853759, -1567.488525, 307.139495, 30000);
InterpolateCameraLookAt(playerid, 1169.372436, -1187.942382, 305.288421, 1565.404052, -1562.916870, 305.165283, 30000);
return 1;
}
forward LogReg(playerid);
public LogReg(playerid)
{
KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
/////////////////////////////////////////////////////////////////////////////////////
if(fexist(Korisnici(playerid)))
{
new loginstring[512];
new loginname[126];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Steal City RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"4 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "CRVENA"4 "BELA"puta pass bicete banovani!\n"BELA"________________________________________________",loginname);
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
}
else
{
TextDrawHideForPlayer(playerid,Intro[0]); TextDrawHideForPlayer(playerid,Intro[1]); TextDrawHideForPlayer(playerid,Intro[2]);
TextDrawHideForPlayer(playerid,Intro[3]); TextDrawHideForPlayer(playerid,Intro[4]); TextDrawHideForPlayer(playerid,Intro[5]);
TextDrawHideForPlayer(playerid,Intro[6]); TextDrawHideForPlayer(playerid,Intro[7]); TextDrawHideForPlayer(playerid,Intro[8]);
TextDrawHideForPlayer(playerid,Intro[9]); TextDrawHideForPlayer(playerid,Intro[10]);
if(ServerInfo[isRegistracija] == 1)
{
StatusKonekta(playerid, 5);
}
else if(ServerInfo[isRegistracija] != 1)
{
new info[2048];
strcat(info, ""ZUTA"Steal City RolePlay Osnovna Pravila Servera\n\n", sizeof(info));
strcat(info, ""CRVENA"- Osnovna Pravila\n\n", sizeof(info));
strcat(info, ""SIVA"- Vas Nick mora biti u formatu Ime_Prezime npr (Marko_Markovic).\n", sizeof(info));
strcat(info, "- Vas Nick nesme sadrzavati imena poznatih licnosti ili uvredljiv sadrzaj.\n", sizeof(info));
strcat(info, "- Morate postovati ostale igrace nesmete ih vredjati.\n", sizeof(info));
strcat(info, "- Ukoliko neznate RolePlay Pravila procitajte ih na serveru koamndom /pravila.\n", sizeof(info));
strcat(info, "- Ukoliko nebudete postovali ova pravila bicete kaznjeni.\n\n", sizeof(info));
strcat(info, ""CRVENA"- Info Vas Account\n\n", sizeof(info));
strcat(info, ""SIVA"SCRP Team nece nikome dati podatke od vaseg accounta.\n", sizeof(info));
strcat(info, "Mi ne odgovaramo za vas account zato pazite kome dajete password accounta.\n", sizeof(info));
strcat(info, "SCRP Team zadrzava pravo zatvaranja/banovanja/brisanja vaseg accounta.\n\n", sizeof(info));
strcat(info, ""CRVENA"- Zabranjeno je\n\n", sizeof(info));
strcat(info, ""SIVA"Zabranjeno je koristenje cheata/modova radi neke prednosti u igrici.\n", sizeof(info));
strcat(info, "Strogo je zabranjeno vredjanje igraca na nacionalnoj ili bilo kojoj drugoj osnovi.\n", sizeof(info));
strcat(info, "Zabranjeno je iskoristavanje gresaka/bugova na skripti.\n\n", sizeof(info));
strcat(info, ""CRVENA"Da prihvatite pravila kliknite na Prihvati, a da odbijete kliknite na Odbij.\n", sizeof(info));
ShowPlayerDialog(playerid, REGLOG_PRAVILA, DIALOG_STYLE_MSGBOX, ""BELA"Pravila", info, "Prihvati", "Izlaz");
}
}
return 1;
}
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, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG11);
CancelSelectTextDraw(playerid);
OcistiChat(playerid, 10);
new string[256],iskustvo;
iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
format(string,sizeof(string),""CRVENA"Dobrodosao "SIVA"%s "CRVENA"na Steal City RolePlay.",GetName(playerid));
SCM(playerid,-1,string);
format(string,sizeof(string),""CRVENA"[INFO]: "SIVA"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,""CRVENA"(SC) "SIVA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""SIVA"Dali ste musko ili zensko?", ""CRVENA"- "SIVA"Musko\n"CRVENA"- "SIVA"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 Steal City RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"3 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "CRVENA"3 "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,""CRVENA"(SC) "SIVA"Pogresna lozinka | Preostalo Pokusaja: %d/3!",LoginPokusaji[playerid]);
if(LoginPokusaji[playerid] == 3) { StatusKonekta(playerid, 3); }
}
return 1;
}
}
}
return 1;
}
i evo cijeli onplayerclicktextdraw...
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == LOG15)
{
KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
/////////////////////////////////////////////////////////////////////////////////////
if(fexist(Korisnici(playerid)))
{
new loginstring[512];
new loginname[126];
GetPlayerName(playerid,loginname,sizeof(loginname));
TextDrawHideForPlayer(playerid, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG11);
CancelSelectTextDraw(playerid);
format(loginstring,sizeof(loginstring),""SIVA"________________________________________________\n\n"CRVENA"Dobrodosao na Steal City RolePlay\n\n"SIVA"Vas Ime i Prezime: "CRVENA"%s\n"SIVA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"3 "SIVA"pokusaja...\n\n"SIVA"Ukoliko pogresite "CRVENA"3 "SIVA"puta pass bicete banovani!\n"SIVA"________________________________________________",loginname);
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
}
else
{
if(ServerInfo[isRegistracija] == 1)
{
StatusKonekta(playerid, 5);
}
else if(ServerInfo[isRegistracija] != 1)
{
SendClientMessage(playerid, -1, ""ZUTA"(SC) "BELA"Vas akaunt nije registrovan!");
}
}
}
if(clickedid == LOG17)
{
KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
if(fexist(Korisnici(playerid)))
{
new loginname[126];
GetPlayerName(playerid,loginname,sizeof(loginname));
SendClientMessage(playerid, -1, ""ZUTA"(SC) "BELA"Vec ste registrovani!");
}
else
{
if(ServerInfo[isRegistracija] == 1)
{
StatusKonekta(playerid, 5);
}
else if(ServerInfo[isRegistracija] != 1)
{
TextDrawHideForPlayer(playerid, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG11);
CancelSelectTextDraw(playerid);
new info[2048];
strcat(info, ""SIVA"Steal City RolePlay Osnovna Pravila Servera\n\n", sizeof(info));
strcat(info, ""CRVENA"- Osnovna Pravila\n\n", sizeof(info));
strcat(info, ""SIVA"- Vas Nick mora biti u formatu Ime_Prezime npr (Marko_Markovic).\n", sizeof(info));
strcat(info, "- Vas Nick nesme sadrzavati imena poznatih licnosti ili uvredljiv sadrzaj.\n", sizeof(info));
strcat(info, "- Morate postovati ostale igrace nesmete ih vredjati.\n", sizeof(info));
strcat(info, "- Ukoliko neznate RolePlay Pravila procitajte ih na serveru koamndom /pravila.\n", sizeof(info));
strcat(info, "- Ukoliko nebudete postovali ova pravila bicete kaznjeni.\n\n", sizeof(info));
strcat(info, ""CRVENA"- Info Vas Account\n\n", sizeof(info));
strcat(info, ""SIVA"SC:RP Team nece nikome dati podatke od vaseg accounta.\n", sizeof(info));
strcat(info, "Mi ne odgovaramo za vas account zato pazite kome dajete password accounta.\n", sizeof(info));
strcat(info, "C:RP Team zadrzava pravo zatvaranja/banovanja/brisanja vaseg accounta.\n\n", sizeof(info));
strcat(info, ""CRVENA"- Zabranjeno je\n\n", sizeof(info));
strcat(info, ""SIVA"Zabranjeno je koristenje cheata/modova radi neke prednosti u igrici.\n", sizeof(info));
strcat(info, "Strogo je zabranjeno vredjanje igraca na nacionalnoj ili bilo kojoj drugoj osnovi.\n", sizeof(info));
strcat(info, "Zabranjeno je iskoristavanje gresaka/bugova na skripti.\n\n", sizeof(info));
strcat(info, ""CRVENA"Da prihvatite pravila kliknite na Prihvati, a da odbijete kliknite na Odbij.\n", sizeof(info));
ShowPlayerDialog(playerid, REGLOG_PRAVILA, DIALOG_STYLE_MSGBOX, ""BELA"Pravila", info, "Prihvati", "Izlaz");
}
}
}
if(clickedid == LOG20)
{
TextDrawHideForPlayer(playerid, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG11);
CancelSelectTextDraw(playerid);
Kick(playerid);
}
}
Da da koliko vidim ti pokreces timer koji gleda da li posjedujes racun i nebitno oces kliknut ili ne on se izvrsi jer si tako naredio.
a kako da naredim da kad kliknem na login izbaci mi login a kad kliknem registracija da mi izbaci registraciju...
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 22:51:31 POSLE PODNE
a kako da naredim da kad kliknem na login izbaci mi login a kad kliknem registracija da mi izbaci registraciju...
Pa obrisi dialog koji gleda postojanost racuna mimo toga i onda normalno to odradi.
Citat: C++ poslato Avgust 08, 2014, 22:52:54 POSLE PODNE
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 22:51:31 POSLE PODNE
a kako da naredim da kad kliknem na login izbaci mi login a kad kliknem registracija da mi izbaci registraciju...
Pa obrisi dialog koji gleda postojanost racuna mimo toga i onda normalno to odradi.
kao sto rekoh prvi put ovo radim sa reg/log sistemom tako da ja to nemam pojma :$ jel mi mozes ti nekako molim te
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 22:55:41 POSLE PODNE
Citat: C++ poslato Avgust 08, 2014, 22:52:54 POSLE PODNE
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 22:51:31 POSLE PODNE
a kako da naredim da kad kliknem na login izbaci mi login a kad kliknem registracija da mi izbaci registraciju...
Pa obrisi dialog koji gleda postojanost racuna mimo toga i onda normalno to odradi.
kao sto rekoh prvi put ovo radim sa reg/log sistemom tako da ja to nemam pojma :$ jel mi mozes ti nekako molim te
Ne nemogu jer meni to netreba ja te uputim ali tebi je tesko malo da se namucis koliko sam ja znoja prolio za svaki svoj problem ali ponovo sam uspio resiti.
Citat: C++ poslato Avgust 08, 2014, 22:56:27 POSLE PODNE
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 22:55:41 POSLE PODNE
Citat: C++ poslato Avgust 08, 2014, 22:52:54 POSLE PODNE
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 22:51:31 POSLE PODNE
a kako da naredim da kad kliknem na login izbaci mi login a kad kliknem registracija da mi izbaci registraciju...
Pa obrisi dialog koji gleda postojanost racuna mimo toga i onda normalno to odradi.
kao sto rekoh prvi put ovo radim sa reg/log sistemom tako da ja to nemam pojma :$ jel mi mozes ti nekako molim te
Ne nemogu jer meni to netreba ja te uputim ali tebi je tesko malo da se namucis koliko sam ja znoja prolio za svaki svoj problem ali ponovo sam uspio resiti.
znam ja da ti meni samo pokusavas pomoci da ja to naucim ali kontas ja neznam sta pisem :$ neznam kako da to zadam da mi kad kliknem na login izbaci login dialog a registracija reg dialog...
Razumi momak proveri postojanost racuna kad klikne odabrani textdraw i daj response.Neznam vise kako da ti pojasnim.
Citat: C++ poslato Avgust 08, 2014, 23:01:17 POSLE PODNE
Razumi momak proveri postojanost racuna kad klikne odabrani textdraw i daj response.Neznam vise kako da ti pojasnim.
a sta je to response ... vidis da neam pojma .... :$
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 23:01:58 POSLE PODNE
Citat: C++ poslato Avgust 08, 2014, 23:01:17 POSLE PODNE
Razumi momak proveri postojanost racuna kad klikne odabrani textdraw i daj response.Neznam vise kako da ti pojasnim.
a sta je to response ... vidis da neam pojma .... :$
Response ili ti odgovor na zadani uvjet.
Citat: C++ poslato Avgust 08, 2014, 23:03:21 POSLE PODNE
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 23:01:58 POSLE PODNE
Citat: C++ poslato Avgust 08, 2014, 23:01:17 POSLE PODNE
Razumi momak proveri postojanost racuna kad klikne odabrani textdraw i daj response.Neznam vise kako da ti pojasnim.
a sta je to response ... vidis da neam pojma .... :$
Response ili ti odgovor na zadani uvjet.
opet neznam kako da mu to zadam... evo gledaj pratio sam ovaj tutorial sve i ubacio kao on i onda se dogodilo ovo sto se dogodilo....
Citat: [NOA]MreR poslato Jul 22, 2014, 16:47:35 POSLE PODNE
Pozz ljudi,u danasnjem tutorialu cu vam prikazati kako da napravite register/login system u textdrawovima sa funkcijom :
OnPlayerClickTextdraw.
1 Korak
-Prvo moramo kreirati TEXTDRAWOVE.
-Ja cu kreirati za REGISTRACIJU,PRIJAVU,i IZLAZ.
-Kada smo ih kreirali,moramo ih definirati u modu.
-CTRL+F i nadjete gdje su vam ostali "new Text:"
-Tamo dodate :
new Text:LOG0;
new Text:LOG1;
new Text:LOG2;
new Text:LOG3;
new Text:LOG4;
new Text:LOG5;
new Text:LOG6;
new Text:LOG7;
new Text:LOG8;
new Text:LOG9;
new Text:LOG10;
new Text:LOG11;
new Text:LOG12;
new Text:LOG13;
new Text:LOG14;
new Text:LOG15;
new Text:LOG16;
new Text:LOG17;
new Text:LOG18;
new Text:LOG19;
new Text:LOG20;
new Text:LOG21;
new Text:LOG22;
To su moji textdrawovi,vi ako napravite svoje dodajete svoje nazive TextDrawova.
-Moji TEXTDRAWOVI :
LOG0 = TextDrawCreate(679.000000, -2.980000, "usebox");
TextDrawLetterSize(LOG0, 0.000000, 12.374443);
TextDrawTextSize(LOG0, -32.000000, 0.000000);
TextDrawAlignment(LOG0, 1);
TextDrawColor(LOG0, 0);
TextDrawUseBox(LOG0, true);
TextDrawBoxColor(LOG0, 102);
TextDrawSetShadow(LOG0, 0);
TextDrawSetOutline(LOG0, 0);
TextDrawFont(LOG0, 0);
LOG1 = TextDrawCreate(127.000000, 6.159998, "LD_POOL:ball");
TextDrawLetterSize(LOG1, -0.025999, -0.229599);
TextDrawTextSize(LOG1, 59.500000, 69.999977);
TextDrawAlignment(LOG1, 1);
TextDrawColor(LOG1, -5963521);
TextDrawSetShadow(LOG1, 0);
TextDrawSetOutline(LOG1, 0);
TextDrawFont(LOG1, 4);
LOG2 = TextDrawCreate(129.500000, 8.399997, "LD_POOL:ball");
TextDrawLetterSize(LOG2, 0.000000, 0.000000);
TextDrawTextSize(LOG2, 54.500000, 64.959999);
TextDrawAlignment(LOG2, 1);
TextDrawColor(LOG2, -1);
TextDrawSetShadow(LOG2, 0);
TextDrawSetOutline(LOG2, 0);
TextDrawFont(LOG2, 4);
LOG3 = TextDrawCreate(135.000000, 13.999999, "LD_POOL:ball");
TextDrawLetterSize(LOG3, 0.018999, -0.139999);
TextDrawTextSize(LOG3, 43.500000, 53.199996);
TextDrawAlignment(LOG3, 1);
TextDrawColor(LOG3, -5963521);
TextDrawSetShadow(LOG3, 0);
TextDrawSetOutline(LOG3, 0);
TextDrawFont(LOG3, 4);
LOG4 = TextDrawCreate(144.000000, 22.399986, "S");
TextDrawLetterSize(LOG4, 0.530999, 3.403200);
TextDrawAlignment(LOG4, 1);
TextDrawColor(LOG4, -1);
TextDrawSetShadow(LOG4, 0);
TextDrawSetOutline(LOG4, 0);
TextDrawBackgroundColor(LOG4, 51);
TextDrawFont(LOG4, 2);
TextDrawSetProportional(LOG4, 1);
LOG5 = TextDrawCreate(146.000000, 49.840007, "Roleplay");
TextDrawLetterSize(LOG5, 0.117499, 0.580800);
TextDrawAlignment(LOG5, 1);
TextDrawColor(LOG5, -1);
TextDrawSetShadow(LOG5, 0);
TextDrawSetOutline(LOG5, 0);
TextDrawBackgroundColor(LOG5, 51);
TextDrawFont(LOG5, 2);
TextDrawSetProportional(LOG5, 1);
LOG6 = TextDrawCreate(151.500000, 16.799976, "]");
TextDrawLetterSize(LOG6, 0.359499, 1.555199);
TextDrawAlignment(LOG6, 1);
TextDrawColor(LOG6, -1);
TextDrawSetShadow(LOG6, 0);
TextDrawSetOutline(LOG6, 0);
TextDrawBackgroundColor(LOG6, 51);
TextDrawFont(LOG6, 2);
TextDrawSetProportional(LOG6, 1);
LOG7 = TextDrawCreate(201.500000, 11.199998, "S");
TextDrawLetterSize(LOG7, 0.986500, 3.856799);
TextDrawAlignment(LOG7, 1);
TextDrawColor(LOG7, -5963521);
TextDrawSetShadow(LOG7, 0);
TextDrawSetOutline(LOG7, 1);
TextDrawBackgroundColor(LOG7, 51);
TextDrawFont(LOG7, 0);
TextDrawSetProportional(LOG7, 1);
LOG8 = TextDrawCreate(223.500000, 24.080005, "erver");
TextDrawLetterSize(LOG8, 0.604499, 2.720000);
TextDrawAlignment(LOG8, 1);
TextDrawColor(LOG8, -1);
TextDrawSetShadow(LOG8, 0);
TextDrawSetOutline(LOG8, 1);
TextDrawBackgroundColor(LOG8, 51);
TextDrawFont(LOG8, 2);
TextDrawSetProportional(LOG8, 1);
LOG9 = TextDrawCreate(217.500000, 46.479999, "");
TextDrawLetterSize(LOG9, 0.750999, 3.632799);
TextDrawAlignment(LOG9, 1);
TextDrawColor(LOG9, -5963521);
TextDrawSetShadow(LOG9, 0);
TextDrawSetOutline(LOG9, 1);
TextDrawBackgroundColor(LOG9, 51);
TextDrawFont(LOG9, 0);
TextDrawSetProportional(LOG9, 1);
LOG10 = TextDrawCreate(239.000000, 57.680007, "");
TextDrawLetterSize(LOG10, 0.569000, 2.551999);
TextDrawAlignment(LOG10, 1);
TextDrawColor(LOG10, -1);
TextDrawSetShadow(LOG10, 0);
TextDrawSetOutline(LOG10, 1);
TextDrawBackgroundColor(LOG10, 51);
TextDrawFont(LOG10, 2);
TextDrawSetProportional(LOG10, 1);
LOG11 = TextDrawCreate(254.500000, 78.400009, "R");
TextDrawLetterSize(LOG11, 0.751499, 3.000000);
TextDrawAlignment(LOG11, 1);
TextDrawColor(LOG11, -5963521);
TextDrawSetShadow(LOG11, 0);
TextDrawSetOutline(LOG11, 1);
TextDrawBackgroundColor(LOG11, 51);
TextDrawFont(LOG11, 0);
TextDrawSetProportional(LOG11, 1);
LOG12 = TextDrawCreate(276.000000, 83.440032, "ole lay");
TextDrawLetterSize(LOG12, 0.465500, 2.473599);
TextDrawAlignment(LOG12, 1);
TextDrawColor(LOG12, -1);
TextDrawSetShadow(LOG12, 0);
TextDrawSetOutline(LOG12, 1);
TextDrawBackgroundColor(LOG12, 51);
TextDrawFont(LOG12, 2);
TextDrawSetProportional(LOG12, 1);
LOG13 = TextDrawCreate(315.000000, 75.599990, "P");
TextDrawLetterSize(LOG13, 0.677999, 3.207200);
TextDrawAlignment(LOG13, 1);
TextDrawColor(LOG13, -5963521);
TextDrawSetShadow(LOG13, 0);
TextDrawSetOutline(LOG13, 1);
TextDrawBackgroundColor(LOG13, 51);
TextDrawFont(LOG13, 0);
TextDrawSetProportional(LOG13, 1);
LOG14 = TextDrawCreate(127.000000, 78.959976, "Online Gaming community");
TextDrawLetterSize(LOG14, 0.122999, 0.765600);
TextDrawAlignment(LOG14, 1);
TextDrawColor(LOG14, -1);
TextDrawSetShadow(LOG14, 0);
TextDrawSetOutline(LOG14, 0);
TextDrawBackgroundColor(LOG14, 51);
TextDrawFont(LOG14, 2);
TextDrawSetProportional(LOG14, 1);
LOG15 = TextDrawCreate(74.000000, 168.560028, "PRIJAVA");
TextDrawLetterSize(LOG15, 0.299997, 1.314399);
TextDrawTextSize(LOG15, 136.000000, 26.319999);
TextDrawAlignment(LOG15, 1);
TextDrawColor(LOG15, -1);
TextDrawUseBox(LOG15, true);
TextDrawBoxColor(LOG15, 0);
TextDrawSetShadow(LOG15, 0);
TextDrawSetOutline(LOG15, 1);
TextDrawBackgroundColor(LOG15, 255);
TextDrawFont(LOG15, 2);
TextDrawSetProportional(LOG15, 1);
TextDrawSetSelectable(LOG15, true);
LOG16 = TextDrawCreate(150.000000, 185.179977, "usebox");
TextDrawLetterSize(LOG16, 0.000000, -0.074443);
TextDrawTextSize(LOG16, -45.500000, 0.000000);
TextDrawAlignment(LOG16, 1);
TextDrawColor(LOG16, 0);
TextDrawUseBox(LOG16, true);
TextDrawBoxColor(LOG16, 102);
TextDrawSetShadow(LOG16, 0);
TextDrawSetOutline(LOG16, 0);
TextDrawFont(LOG16, 0);
LOG17 = TextDrawCreate(63.500000, 230.719970, "REGISTRACIJA");
TextDrawLetterSize(LOG17, 0.259999, 1.375998);
TextDrawTextSize(LOG17, 152.000000, 6.159999);
TextDrawAlignment(LOG17, 1);
TextDrawColor(LOG17, -1);
TextDrawUseBox(LOG17, true);
TextDrawBoxColor(LOG17, 0);
TextDrawSetShadow(LOG17, 0);
TextDrawSetOutline(LOG17, 1);
TextDrawBackgroundColor(LOG17, 255);
TextDrawFont(LOG17, 2);
TextDrawSetProportional(LOG17, 1);
TextDrawSetSelectable(LOG17, true);
LOG18 = TextDrawCreate(148.500000, 247.339996, "usebox");
TextDrawLetterSize(LOG18, 0.000000, -0.067777);
TextDrawTextSize(LOG18, -44.000000, 0.000000);
TextDrawAlignment(LOG18, 1);
TextDrawColor(LOG18, 0);
TextDrawUseBox(LOG18, true);
TextDrawBoxColor(LOG18, 102);
TextDrawSetShadow(LOG18, 0);
TextDrawSetOutline(LOG18, 0);
TextDrawFont(LOG18, 0);
LOG19 = TextDrawCreate(150.000000, 312.300018, "usebox");
TextDrawLetterSize(LOG19, 0.000000, -0.005553);
TextDrawTextSize(LOG19, -54.500000, 0.000000);
TextDrawAlignment(LOG19, 1);
TextDrawColor(LOG19, 0);
TextDrawUseBox(LOG19, true);
TextDrawBoxColor(LOG19, 102);
TextDrawSetShadow(LOG19, 0);
TextDrawSetOutline(LOG19, 0);
TextDrawFont(LOG19, 0);
LOG20 = TextDrawCreate(81.000000, 293.999969, "Izlaz");
TextDrawLetterSize(LOG20, 0.283499, 1.336799);
TextDrawTextSize(LOG20, 139.000000, 11.200001);
TextDrawAlignment(LOG20, 1);
TextDrawColor(LOG20, -1);
TextDrawUseBox(LOG20, true);
TextDrawBoxColor(LOG20, 0);
TextDrawSetShadow(LOG20, 0);
TextDrawSetOutline(LOG20, 1);
TextDrawBackgroundColor(LOG20, 255);
TextDrawFont(LOG20, 2);
TextDrawSetProportional(LOG20, 1);
TextDrawSetSelectable(LOG20, true);
LOG21 = TextDrawCreate(542.000000, 92.960021, "S:RP v1.0.0");
TextDrawLetterSize(LOG21, 0.358999, 1.387200);
TextDrawAlignment(LOG21, 1);
TextDrawColor(LOG21, -5963521);
TextDrawSetShadow(LOG21, 0);
TextDrawSetOutline(LOG21, 1);
TextDrawBackgroundColor(LOG21, 255);
TextDrawFont(LOG21, 3);
TextDrawSetProportional(LOG21, 1);
LOG22 = TextDrawCreate(322.000000, 432.320068, "Scripted by: MreR");
TextDrawLetterSize(LOG22, 0.166499, 1.157600);
TextDrawAlignment(LOG22, 2);
TextDrawColor(LOG22, -1);
TextDrawSetShadow(LOG22, 0);
TextDrawSetOutline(LOG22, 1);
TextDrawBackgroundColor(LOG22, 255);
TextDrawFont(LOG22, 2);
TextDrawSetProportional(LOG22, 1);
2.Korak
-Sada moramo kreirati funkciju : "OnPlayerClickTextDraw"
-Preporucam vam da koristite UP Mod,jer sam ovo radio na UP modu(UnderPoint mod).
-Na kraj moda dodajte ovo :
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == LOG15)
{
KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
/////////////////////////////////////////////////////////////////////////////////////
if(fexist(Korisnici(playerid)))
{
new loginstring[512];
new loginname[126];
GetPlayerName(playerid,loginname,sizeof(loginname));
TextDrawHideForPlayer(playerid, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG11);
TextDrawHideForPlayer(playerid, LOG12);
TextDrawHideForPlayer(playerid, LOG13);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG21);
TextDrawHideForPlayer(playerid, LOG22);
CancelSelectTextDraw(playerid);
format(loginstring,sizeof(loginstring),""SIVA"________________________________________________\n\n"CRVENA"Dobrodosao na Los Angeles RolePlay\n\n"SIVA"Vas Ime i Prezime: "CRVENA"%s\n"SIVA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"3 "SIVA"pokusaja...\n\n"SIVA"Ukoliko pogresite "CRVENA"3 "SIVA"puta pass bicete banovani!\n"SIVA"________________________________________________",loginname);
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
}
else
{
if(ServerInfo[isRegistracija] == 1)
{
StatusKonekta(playerid, 5);
}
else if(ServerInfo[isRegistracija] != 1)
{
SendClientMessage(playerid, -1, ""ZUTA"[LA:RP] "BELA"Vas akaunt nije registrovan!");
}
}
}
if(clickedid == LOG17)
{
KillTimer(LogRegTimer[playerid]); g_SetPlayerHealth(playerid, 99.0); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
if(fexist(Korisnici(playerid)))
{
new loginname[126];
GetPlayerName(playerid,loginname,sizeof(loginname));
SendClientMessage(playerid, -1, ""ZUTA"[LA:RP] "BELA"Vec ste registrovani!");
}
else
{
if(ServerInfo[isRegistracija] == 1)
{
StatusKonekta(playerid, 5);
}
else if(ServerInfo[isRegistracija] != 1)
{
TextDrawHideForPlayer(playerid, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG11);
TextDrawHideForPlayer(playerid, LOG12);
TextDrawHideForPlayer(playerid, LOG13);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG21);
TextDrawHideForPlayer(playerid, LOG22);
CancelSelectTextDraw(playerid);
new info[2048];
strcat(info, ""ZUTA"California RolePlay Osnovna Pravila Servera\n\n", sizeof(info));
strcat(info, ""CRVENA"- Osnovna Pravila\n\n", sizeof(info));
strcat(info, ""SIVA"- Vas Nick mora biti u formatu Ime_Prezime npr (Marko_Markovic).\n", sizeof(info));
strcat(info, "- Vas Nick nesme sadrzavati imena poznatih licnosti ili uvredljiv sadrzaj.\n", sizeof(info));
strcat(info, "- Morate postovati ostale igrace nesmete ih vredjati.\n", sizeof(info));
strcat(info, "- Ukoliko neznate RolePlay Pravila procitajte ih na serveru koamndom /pravila.\n", sizeof(info));
strcat(info, "- Ukoliko nebudete postovali ova pravila bicete kaznjeni.\n\n", sizeof(info));
strcat(info, ""CRVENA"- Info Vas Account\n\n", sizeof(info));
strcat(info, ""SIVA"C:RP Team nece nikome dati podatke od vaseg accounta.\n", sizeof(info));
strcat(info, "Mi ne odgovaramo za vas account zato pazite kome dajete password accounta.\n", sizeof(info));
strcat(info, "C:RP Team zadrzava pravo zatvaranja/banovanja/brisanja vaseg accounta.\n\n", sizeof(info));
strcat(info, ""CRVENA"- Zabranjeno je\n\n", sizeof(info));
strcat(info, ""SIVA"Zabranjeno je koristenje cheata/modova radi neke prednosti u igrici.\n", sizeof(info));
strcat(info, "Strogo je zabranjeno vredjanje igraca na nacionalnoj ili bilo kojoj drugoj osnovi.\n", sizeof(info));
strcat(info, "Zabranjeno je iskoristavanje gresaka/bugova na skripti.\n\n", sizeof(info));
strcat(info, ""CRVENA"Da prihvatite pravila kliknite na Prihvati, a da odbijete kliknite na Odbij.\n", sizeof(info));
ShowPlayerDialog(playerid, REGLOG_PRAVILA, DIALOG_STYLE_MSGBOX, ""BELA"Pravila", info, "Prihvati", "Izlaz");
}
}
}
if(clickedid == LOG20)
{
TextDrawHideForPlayer(playerid, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG11);
TextDrawHideForPlayer(playerid, LOG12);
TextDrawHideForPlayer(playerid, LOG13);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG21);
TextDrawHideForPlayer(playerid, LOG22);
CancelSelectTextDraw(playerid);
Kick(playerid);
}
}
Objasnjenje - TextDrawHideForPlayer - skriva textdraw igracu.
3 Korak.
CTRL+F i ukucajte "forward LoginP"
Otvorit ce vam ovo :
forward LoginP(playerid);
public LoginP(playerid)
{
Ispod LoginP dodajte ovo :
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG11);
TextDrawShowForPlayer(playerid, LOG12);
TextDrawShowForPlayer(playerid, LOG13);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG21);
TextDrawShowForPlayer(playerid, LOG22);
SelectTextDraw(playerid, 0xFF8000FF);
/*LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);*/
return 1;
}
Objasnjenje - TextDrawShowForPlayer - Pokazuje igracu TEXTDRAW.
4.Korak
CTRL+F i upisite : forward Registracija2
Otvorit ce vam ovo
forward Registracija2(playerid);
public Registracija2(playerid)
{
Ispod toga dodajte :
KillTimer(IntroTimer2[playerid]);
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG11);
TextDrawShowForPlayer(playerid, LOG12);
TextDrawShowForPlayer(playerid, LOG13);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG21);
TextDrawShowForPlayer(playerid, LOG22);
KillTimer(IntroTimer2[playerid]);
SelectTextDraw(playerid, 0xFF8000FF);
return 1;
}
To bi trebalo izgledati ovako :
forward Registracija2(playerid);
public Registracija2(playerid)
{
KillTimer(IntroTimer2[playerid]);
TextDrawShowForPlayer(playerid, LOG0);
TextDrawShowForPlayer(playerid, LOG1);
TextDrawShowForPlayer(playerid, LOG2);
TextDrawShowForPlayer(playerid, LOG3);
TextDrawShowForPlayer(playerid, LOG4);
TextDrawShowForPlayer(playerid, LOG5);
TextDrawShowForPlayer(playerid, LOG6);
TextDrawShowForPlayer(playerid, LOG7);
TextDrawShowForPlayer(playerid, LOG8);
TextDrawShowForPlayer(playerid, LOG9);
TextDrawShowForPlayer(playerid, LOG10);
TextDrawShowForPlayer(playerid, LOG11);
TextDrawShowForPlayer(playerid, LOG12);
TextDrawShowForPlayer(playerid, LOG13);
TextDrawShowForPlayer(playerid, LOG14);
TextDrawShowForPlayer(playerid, LOG15);
TextDrawShowForPlayer(playerid, LOG16);
TextDrawShowForPlayer(playerid, LOG17);
TextDrawShowForPlayer(playerid, LOG18);
TextDrawShowForPlayer(playerid, LOG19);
TextDrawShowForPlayer(playerid, LOG20);
TextDrawShowForPlayer(playerid, LOG21);
TextDrawShowForPlayer(playerid, LOG22);
KillTimer(IntroTimer2[playerid]);
SelectTextDraw(playerid, 0xFF8000FF);
return 1;
}
5.Korak
-CTRL+F i ukucajte : case DIALOG_LOGIN:
Otvorit ce vam ovo :
case DIALOG_LOGIN:
{
if(!response) return Kick(playerid);
if(response)
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
Ispod toga dodajte ovo :
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, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG11);
TextDrawHideForPlayer(playerid, LOG12);
TextDrawHideForPlayer(playerid, LOG13);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG21);
TextDrawHideForPlayer(playerid, LOG22);
CancelSelectTextDraw(playerid);
OcistiChat(playerid, 10);
new string[256],iskustvo;
iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
format(string,sizeof(string),""CRVENA"Dobrodosao "SIVA"%s "CRVENA"na Los Angeles RolePlay.",GetName(playerid));
SCM(playerid,-1,string);
format(string,sizeof(string),""CRVENA"[INFO]: "SIVA"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,"[UP:RP]: "ZUTA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""SIVA"Dali ste musko ili zensko?", ""CRVENA"- "SIVA"Musko\n"CRVENA"- "SIVA"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 Los Angeles RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"3 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "CRVENA"3 "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,"[UP:RP] "CRVENA"Pogresna lozinka | Preostalo Pokusaja: %d/3!",LoginPokusaji[playerid]);
if(LoginPokusaji[playerid] == 3) { StatusKonekta(playerid, 3); }
}
return 1;
}
}
}
return 1;
}
To bi trebalo izgledati ovako
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, LOG0);
TextDrawHideForPlayer(playerid, LOG1);
TextDrawHideForPlayer(playerid, LOG2);
TextDrawHideForPlayer(playerid, LOG3);
TextDrawHideForPlayer(playerid, LOG4);
TextDrawHideForPlayer(playerid, LOG5);
TextDrawHideForPlayer(playerid, LOG6);
TextDrawHideForPlayer(playerid, LOG7);
TextDrawHideForPlayer(playerid, LOG8);
TextDrawHideForPlayer(playerid, LOG9);
TextDrawHideForPlayer(playerid, LOG10);
TextDrawHideForPlayer(playerid, LOG11);
TextDrawHideForPlayer(playerid, LOG12);
TextDrawHideForPlayer(playerid, LOG13);
TextDrawHideForPlayer(playerid, LOG14);
TextDrawHideForPlayer(playerid, LOG15);
TextDrawHideForPlayer(playerid, LOG16);
TextDrawHideForPlayer(playerid, LOG17);
TextDrawHideForPlayer(playerid, LOG18);
TextDrawHideForPlayer(playerid, LOG19);
TextDrawHideForPlayer(playerid, LOG20);
TextDrawHideForPlayer(playerid, LOG21);
TextDrawHideForPlayer(playerid, LOG22);
CancelSelectTextDraw(playerid);
OcistiChat(playerid, 10);
new string[256],iskustvo;
iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
format(string,sizeof(string),""CRVENA"Dobrodosao "SIVA"%s "CRVENA"na Los Angeles RolePlay.",GetName(playerid));
SCM(playerid,-1,string);
format(string,sizeof(string),""CRVENA"[INFO]: "SIVA"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,"[UP:RP]: "ZUTA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""SIVA"Dali ste musko ili zensko?", ""CRVENA"- "SIVA"Musko\n"CRVENA"- "SIVA"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 Los Angeles RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"3 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "CRVENA"3 "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,"[UP:RP] "CRVENA"Pogresna lozinka | Preostalo Pokusaja: %d/3!",LoginPokusaji[playerid]);
if(LoginPokusaji[playerid] == 3) { StatusKonekta(playerid, 3); }
}
return 1;
}
}
}
return 1;
}
To bi bilo to,nadam se da vam se svidja.Register/Login system je prilagodjen UNDERPOINT modu.
Tutorial izradio:MreR
Komentirajte
Jesam ti rekao sta je problem?
Sta oces ti vise?
Problem je u tome sto pokreces timer koji proverava postojanost racuna ukloni ga i radi onda po tom tutu.
LogRegTimer[playerid] = SetTimerEx("LoginP",465, false, "i", playerid); gjde mjenjam timer ovo 465 mozes li mi malo pojasnit ja sam inace tezak slucaj..
Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 23:17:02 POSLE PODNE
LogRegTimer[playerid] = SetTimerEx("LoginP",465, false, "i", playerid); gjde mjenjam timer ovo 465 mozes li mi malo pojasnit ja sam inace tezak slucaj..
465 su ti ms pokretanja timera izgleda da nema tebi pomoci nadji nekog da ti to sredi.
ma dobro iako nece niko pomoc jer se nikom neda glupom covjeku pomagat al nea veze mozes lock hvala sto si bar pokuso :$