Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if( playertextid == RegisterTD[ playerid ][ 2 ] ) { // ovo
- new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
- 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);
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
- }
- if( playertextid == RegisterTD[ playerid ][ 19 ] ) { // ovo
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 2 ], "Musko" );
- PlayerInfo[ playerid ][ pSkin ] = 240;
- PlayerInfo[ playerid ][ pSex ] = 1;
- RegSex[ playerid ] = 1;
- }
- if( playertextid == RegisterTD[ playerid ][ 20 ] ) { // ovo
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 4 ], "Zensko" );
- PlayerInfo[ playerid ][ pSkin ] = 93;
- PlayerInfo[ playerid ][ pSex ] = 2;
- RegSex[ playerid ] = 2;
- }
- if( playertextid == RegisterTD[ playerid ][ 4 ] ) { // 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 ][ 8 ] ) { // 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 ][ 10 ] ) {
- if( InputPassword[ playerid ] == false ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi odabrao lozinku." );
- if( InputAge[ playerid ] == false ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi odabrao godine starosti." );
- if( InputMail[ playerid ] == false ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi uneo email." );
- if( RegSex[ playerid ] == 0 ) return SCM(playerid,-1,"[SP]"CRVENA"Nisi odabrao drzavu." );
- CancelSelectTextDraw( playerid );
- for(new i = 0; i < 19; i ++) {
- PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
- }
Advertisement
Add Comment
Please, Sign In to add comment