Guest User

Pomoc oko Registera?

a guest
Feb 23rd, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.35 KB | None | 0 0
  1. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  2. {
  3.     if( playertextid == RegisterTD[ playerid ][ 2 ] ) { // ovo
  4.         new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
  5.         format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n"ZELENA"Dobrodosao na School Project RPG\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);
  6.         ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
  7.     }
  8.     if( playertextid == RegisterTD[ playerid ][ 19 ] ) { // ovo
  9.         PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 2 ], "Musko" );
  10.         PlayerInfo[ playerid ][ pSkin ] = 240;
  11.         PlayerInfo[ playerid ][ pSex ] = 1;
  12.         RegSex[ playerid ] = 1;
  13.     }
  14.     if( playertextid == RegisterTD[ playerid ][ 20 ] ) { // ovo
  15.        PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 4 ], "Zensko" );
  16.        PlayerInfo[ playerid ][ pSkin ] = 93;
  17.        PlayerInfo[ playerid ][ pSex ] = 2;
  18.        RegSex[ playerid ] = 2;
  19.     }
  20.     if( playertextid == RegisterTD[ playerid ][ 4 ] ) { // ovo
  21.         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");
  22.     }
  23.     if( playertextid == RegisterTD[ playerid ][ 8 ] ) { // ovo
  24.         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");
  25.     }
  26.     if( playertextid == RegisterTD[ playerid ][ 10 ] ) {
  27.         if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi odabrao lozinku." );
  28.         if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi odabrao godine starosti." );
  29.         if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi uneo email." );
  30.         if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi odabrao drzavu." );
  31.         CancelSelectTextDraw( playerid );
  32.         for(new i = 0; i < 19; i ++) {
  33.         PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
  34.         }
Advertisement
Add Comment
Please, Sign In to add comment