Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if( playertextid == Reg[53][playerid] ) { // ovo
- new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
- format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Perfect Gaming 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 26 znakova\n\n"BELA"________________________________________________",regname);
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
- }
- /* if( playertextid == RegisterTD[ playerid ][ 10] ) { // ovo
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 12 ], "Musko" );
- PlayerInfo[ playerid ][ pSkin ] = 240;
- PlayerInfo[ playerid ][ pSex ] = 1;
- RegSex[ playerid ] = 1;
- }
- if( playertextid == RegisterTD[ playerid ][ 11 ] ) { // ovo
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 12 ], "Zensko" );
- PlayerInfo[ playerid ][ pSkin ] = 93;
- PlayerInfo[ playerid ][ pSex ] = 2;
- RegSex[ playerid ] = 2;
- }*/
- if( playertextid == Reg[52][playerid] ) { // ovo
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, ""BELA"Odakle ste ?", ""SPLAVA"- "BELA"Srbija\n"SPLAVA"- "BELA"Bosna i Hercegovina\n"SPLAVA"- "BELA"Kosovo\n"SPLAVA"- "BELA"Crna Gora\n"SPLAVA"- "BELA"Hrvatska\n"SPLAVA"- "BELA"Makedonija\n"SPLAVA"- "BELA"Slovenija\n"SPLAVA"- "BELA"Ostalo", "Dalje", "Odustani");
- }
- if( playertextid == Reg[51][playerid] ) { // 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 == Reg[50][playerid] ) { // 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 == Reg[54][playerid] ) {
- if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao lozinku." );
- if( ChoseCountry[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao poreklo." );
- if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao godine starosti." );
- if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi uneo email." );
- if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[PG:RP] "CRVENA"Nisi odabrao drzavu." );
- CancelSelectTextDraw( playerid );
- for(new i = 0; i < 76; i ++) {
- PlayerTextDrawHide( playerid, Reg[54][playerid] );
- }
- for(new i = 0; i < 35; 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,"Helper",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_Close(File);
- PlayerInfo[ playerid ][ pNovacBanka ] = 0;
- PlayerInfo[ playerid ][ pLevel ] = 10;
- SetPlayerScore( playerid, PlayerInfo[ playerid ][ pLevel ] );
- PlayerInfo[ playerid ][ pTutorial ] = 0;
- PlayerInfo[ playerid ][ pVip ] = 4;
- PlayerInfo[ playerid ][ pAdmin ] = 0;
- PlayerInfo[ playerid ][ pNovacDzep ] = 1000000;
- PlayerInfo[ playerid ][ pProveraSpawna ] = SPAWN_NORMAL;
- JBC_GivePlayerMoney( playerid, PlayerInfo[ playerid ][ pNovacDzep ] );
- Update_Skin( playerid, PlayerInfo[ playerid ][ pSkin ] );
- TextDrawShowForPlayer(playerid,TutorialSledi[0]); TextDrawShowForPlayer(playerid,TutorialSledi[1]);
- TextDrawShowForPlayer(playerid,TutorialSledi[2]); TextDrawShowForPlayer(playerid,TutorialSledi[3]);
- TextDrawShowForPlayer(playerid,TutorialSledi[4]); TextDrawShowForPlayer(playerid,TutorialSledi[5]);
- TextDrawShowForPlayer(playerid,TutorialSledi[6]); TutorialTimer[playerid] = SetTimerEx("Tutorial1",465, false, "i", playerid);
- }
Advertisement
Add Comment
Please, Sign In to add comment