Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if( playertextid == RegisterTD[ playerid ][ 6 ] ) { // ovo
- new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
- format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"ZELENA"Dobrodosao na Fast Life RolePlay\n\nVase Ime i Prezime: "CRVENA"%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: "CRVENA"Min 6/Max 12 znakova\n\n"BELA"________________________________________________",regname);
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
- }
- if( playertextid == RegisterTD[ playerid ][ 17 ] ) { // ovo
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko" );
- PlayerInfo[ playerid ][ pSkin ] = 240;
- PlayerInfo[ playerid ][ pSex ] = 1;
- RegSex[ playerid ] = 1;
- }
- if( playertextid == RegisterTD[ playerid ][ 18 ] ) { // ovo
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Zensko" );
- PlayerInfo[ playerid ][ pSkin ] = 93;
- PlayerInfo[ playerid ][ pSex ] = 2;
- RegSex[ playerid ] = 2;
- }
- if( playertextid == RegisterTD[ playerid ][ 11 ] ) { // ovo
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, ""BELA"Odakle ste ?", ""SRWBOJA"- "BELA"Srbija\n"SRWBOJA"- "BELA"Bosna i Hercegovina\n"SRWBOJA"- "BELA"Kosovo\n"SRWBOJA"- "BELA"Crna Gora\n"SRWBOJA"- "BELA"Hrvatska\n"SRWBOJA"- "BELA"Makedonija\n"SRWBOJA"- "BELA"Slovenija\n"SRWBOJA"- "BELA"Ostalo", "Dalje", "Odustani");
- }
- if( playertextid == RegisterTD[ playerid ][ 10 ] ) { // ovo
- ShowPlayerDialog(playerid, 4, 1, ""BELA"Koliko imate godina?", ""ZUTA"U prazno polje ispod upisi koliko imas godina\n\n"BELA"Godine upisi brojem\n"CRVENA"Nemojte ici ispod 7 i vise od 60!", "Dalje", "Odustani");
- }
- if( playertextid == RegisterTD[ playerid ][ 7 ] ) { // ovo
- ShowPlayerDialog(playerid, 12, 1, ""BELA"Email", ""BELA"Unos email-a\n"ZUTA"U prazno polje ispod unesite vasu email adresu\n\n"BELA"Zamolili bih vas da unesete tacan email", "Dalje", "Odustani");
- }
- if( playertextid == RegisterTD[ playerid ][ 13 ] ) {
- if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao lozinku." );
- if( ChoseCountry[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao poreklo." );
- if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao godine starosti." );
- if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi uneo email." );
- if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[FL]"CRVENA"Nisi odabrao drzavu." );
- CancelSelectTextDraw( playerid );
- for(new i = 0; i < 19; i ++) {
- PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
- }
- //for(new i = 0; i < 30; i ++) {
- //PlayerTextDrawHide( playerid, LoginTD[ playerid ][ i ] );
- //}
- //PlayerTextDrawHide( playerid, LoginTD[ playerid ][ 18 ] );
- //PlayerTextDrawHide( playerid, LoginTD[ playerid ][ 19 ] );
- new INI:File = INI_Open(Korisnici(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password", udb_hash( PlayerInfo[ playerid ][ pPass ] ) );
- INI_WriteInt(File,"NovacDzep",0);
- INI_WriteInt(File,"Admin",0);
- INI_WriteInt(File,"Ubistava",0);
- INI_WriteInt(File,"Smrti",0);
- INI_WriteInt(File,"Level",1);
- INI_WriteInt(File,"GameMaster",0);
- INI_WriteInt(File,"Skin", PlayerInfo[ playerid ][ pSkin ]);
- INI_WriteInt(File,"Godine", PlayerInfo[ playerid ][ pGodine ]);
- INI_WriteInt(File,"Drzava", PlayerInfo[ playerid ][ pDrzava ]);
- INI_WriteInt(File,"Pol", PlayerInfo[ playerid ][ pSex ]);
- INI_WriteInt(File,"Tutorial",0);
- INI_WriteInt(File,"Email",0);
- INI_WriteInt(File,"Lider",0);
- INI_WriteInt(File,"Clan",0);
- INI_WriteInt(File,"Rank",0);
- INI_WriteInt(File,"Mutiran",0);
- INI_WriteInt(File,"NovacBanka",0);
- INI_WriteInt(File,"Warn",0);
- INI_WriteInt(File,"BankovniRacun",0);
- INI_WriteInt(File,"Zatvor",0);
- INI_WriteInt(File,"ZatvorenVreme",0);
- INI_WriteInt(File,"Respekti",0);
- INI_WriteInt(File,"UhapsenPuta",0);
- INI_WriteInt(File,"Droga",0);
- INI_WriteInt(File,"Mats",0);
- INI_WriteInt(File,"PayDayPoeni",0);
- INI_WriteInt(File,"SatiIgre",0);
- INI_WriteInt(File,"IznosRate",0);
- INI_WriteInt(File,"IznosKredita",0);
- INI_WriteInt(File,"PreostaloZaOtplatu",0);
- INI_WriteInt(File,"ADozvola",0);
- INI_WriteInt(File,"KamionDozvola",0);
- INI_WriteInt(File,"AvionDozvola",0);
- INI_WriteInt(File,"MotorDozvola",0);
- INI_WriteInt(File,"BrodDozvola",0);
- INI_WriteInt(File,"GunDozvola",0);
- INI_WriteInt(File,"PosedovanjeFirme",-1);
- INI_WriteInt(File,"Mobilni",0);
- INI_WriteInt(File,"Imenik",0);
- INI_WriteInt(File,"MobKredit",0);
- INI_WriteInt(File,"Cigare",0);
- INI_WriteInt(File,"Upaljac",0);
- INI_WriteInt(File,"Kanap",0);
- INI_WriteInt(File,"Naocare",0);
- INI_WriteInt(File,"Sat",0);
- INI_WriteInt(File,"BorbeniStil",4);
- INI_WriteInt(File,"Posao",0);
- INI_WriteInt(File,"Hrana",0);
- INI_WriteInt(File,"PosedovanjeKuce",-1);
- INI_WriteInt(File,"ProveraSpawna",0);
- INI_WriteInt(File,"Rent",-1);
- INI_WriteInt(File,"PosedovanjeStana",-1);
- INI_WriteInt(File,"PosedovanjeVikendice",-1);
- INI_WriteInt(File,"OrgUgovor",0);
- INI_WriteInt(File,"PosaoUgovor",0);
- INI_WriteInt(File,"PosedovanjeAuta",-1);
- INI_WriteInt(File,"DzeparosVreme",0);
- INI_WriteInt(File,"PosedovanjeMotora",-1);
- INI_WriteInt(File,"Kaciga",-1);
- INI_WriteInt(File,"PosedovanjeBicikla",-1);
- INI_WriteInt(File,"PosedovanjeAviona",-1);
- INI_WriteInt(File,"PosedovanjePlovila",-1);
- INI_WriteInt(File,"DonatorBodovi", 0);
- INI_WriteInt(File,"Banovan",PlayerInfo[playerid][pBanovan]);
- INI_Close(File);
- PlayerInfo[ playerid ][ pNovacBanka ] = 0;
- PlayerInfo[ playerid ][ pLevel ] = 15;
- PlayerInfo[ playerid ][ pVip ] = 4;
- SetPlayerScore( playerid, PlayerInfo[ playerid ][ pLevel ] );
- PlayerInfo[ playerid ][ pTutorial ] = 0;
- PlayerInfo[ playerid ][ pAdmin ] = 0;
- PlayerInfo[ playerid ][ pNovacDzep ] = 5000000;
- PlayerInfo[ playerid ][ pProveraSpawna ] = SPAWN_NORMAL;
- JBC_GivePlayerMoney( playerid, PlayerInfo[ playerid ][ pNovacDzep ] );
- SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ] );
- TutorialTimer[playerid] = SetTimerEx("Tutorijal",465, false, "ii", playerid, 1 );
- }
- //if( playertextid == RegisterTD[ playerid ][ 18 ] ) {
- //SCM(playerid,-1,"[FL]"CRVENA"Prekinuli ste registraciju i kickovani ste");
- //freeze[playerid] = SetTimerEx("KonektKick", 500, 0, "d", playerid);
- //}
- if(playertextid == mdct[3])
- {
- SPD(playerid,54,DSI,""BELA"Dosije",""PPLAVA"Unesite ID igraca kome zelite da ocistite wanted\n"BELA"NAPOMENA: "PPLAVA"Ciscenje wanteda vide svi clanovi!","Unesi","Izlaz");
- return 1;
- }
- if(playertextid == mdct[4])
- {
- SPD(playerid,56,DSI,""BELA"Wanted Igraca",""PPLAVA"Unesite ID igraca kome zelis da das wanted level!","Unesi","Izlaz");
- return 1;
- }
- if(playertextid == mdct[5])
- {
- SPD(playerid,58,DSI,""BELA"Dosije",""PPLAVA"Unesite ID igraca ciji zelis da proveris dosije...","Unesi","Izlaz");
- return 1;
- }
- if(playertextid == mdct[6])
- {
- SPD(playerid,60,DSI,""BELA"Lociranje Igraca",""PPLAVA"Unesite ID igraca kojeg zelis da lociras ukoliko ima wanted level!","Unesi","Izlaz");
- return 1;
- }
- if(playertextid == mdct[7])
- {
- WantedLista(playerid);
- return 1;
- }
- if(playertextid == mdct[9])
- {
- CancelSelectTextDraw(playerid); MDC[playerid] = 0;
- for(new i = 0; i < 10; i++) { PlayerTextDrawHide(playerid,mdct[i]); }
- return 1;
- }
- if(playertextid == Bankomat[2][playerid])
- {
- if(PlayerInfo[playerid][pBankovniRacun] == 0) return SCM(playerid,-1,"[FL]"CRVENA"Nemate bankovni racun!");
- SPD(playerid, 318, DSI,""SRWBOJA"Podizanje novca",""BELA"Unesi koliko zelis novca da podignes sa vaseg racuna...","Podigni","Izlaz");
- return 1;
- }
- if(playertextid == Bankomat[3][playerid])
- {
- new string[100];
- if(PlayerInfo[playerid][pBankovniRacun] == 0) return SCM(playerid,-1,"[FL]"CRVENA"Nemate bankovni racun!");
- format(string, sizeof(string), ""BELA"Imate "ZELENA"%d$ "BELA"novca na vasem racunu...", PlayerInfo[playerid][pNovacBanka]);
- SPD(playerid, 320, DIALOG_STYLE_MSGBOX, ""ZELENA"Stanje Racuna", string, "Ok", "Izlaz");
- return 1;
- }
- if(playertextid == Bankomat[7][playerid])
- {
- AtmTD(playerid, 2); CancelSelectTextDraw(playerid); BankomatMeni[playerid] = -1;
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment