Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( playertextid == RegisterTD[ playerid ][ 1 ] ) {
- SPD( playerid, dialog_REGISTER, DSI, "Registracija", "Password moze sadrzavati minimalno 6 a maximalno 24 znaka", "Registriraj", "Izadji" );
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 5 ] ) { // pol
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko");
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
- for( new i = 13; i < 20; i ++) {
- PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ i ] );
- }
- BiraPol[ playerid ] = 1;
- BiraSkin[ playerid ] = 0;
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 16 ] ) { // desno
- if( BiraPol[ playerid ] > 0 ) {
- if( BiraPol[ playerid ] == 1 ) {
- BiraPol[ playerid ] = 2;
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Zensko");
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ 0 ][ 0 ] );
- }
- else if( BiraPol[ playerid ] == 2 ) {
- BiraPol[ playerid ] = 1;
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko");
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
- }
- }
- if( BiraSkin[ playerid ] > 0 ) {
- if( RegSex[ playerid ] == 1 ) { // musko
- if( BiraSkin[ playerid ] == 4 ) BiraSkin[ playerid ] = 0;
- BiraSkin[ playerid ]++;
- PlayerInfo[ playerid ][ xSkin ] = MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], MaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
- }
- else if( RegSex[ playerid ] == 2 ) { // zensko
- if( BiraSkin[ playerid ] == 4 ) BiraSkin[ playerid ] = 0;
- BiraSkin[ playerid ]++;
- PlayerInfo[ playerid ][ xSkin ] = FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], FemaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
- }
- }
- PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 13 ] );
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 17 ] ) { // levo
- if( BiraPol[ playerid ] > 0 ) {
- if( BiraPol[ playerid ] == 1 ) {
- BiraPol[ playerid ] = 2;
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ 0 ][ 0 ] );
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Zensko");
- }
- else if( BiraPol[ playerid ] == 2 ) {
- BiraPol[ playerid ] = 1;
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], "Musko");
- }
- }
- if( BiraSkin[ playerid ] > 0 ) {
- if( RegSex[ playerid ] == 1 ) { // musko
- if( BiraSkin[ playerid ] == 1 ) BiraSkin[ playerid ] = 5;
- BiraSkin[ playerid ]--;
- PlayerInfo[ playerid ][ xSkin ] = MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], MaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
- }
- else if( RegSex[ playerid ] == 2 ) { // zensko
- if( BiraSkin[ playerid ] == 1 ) BiraSkin[ playerid ] = 5;
- BiraSkin[ playerid ]--;
- PlayerInfo[ playerid ][ xSkin ] = FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ];
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ BiraSkin[ playerid ]-1 ][ 0 ] );
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], FemaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
- }
- }
- PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 13 ] );
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 19 ] ) { // izaberi
- if( BiraPol[ playerid ] > 0 ) {
- if( BiraPol[ playerid ] == 1 ) {
- PlayerInfo[ playerid ][ xPol ] = 1;
- RegSex[ playerid ] = 1;
- BiraPol[ playerid ] = 0;
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 5 ], "Musko");
- PlayerInfo[ playerid ][ xSkin ] = MaleSkinIDs[ 0 ][ 0 ];
- }
- else if( BiraPol[ playerid ] == 2 ) {
- PlayerInfo[ playerid ][ xPol ] = 2;
- RegSex[ playerid ] = 2;
- BiraPol[ playerid ] = 0;
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 5 ], "Zensko");
- PlayerInfo[ playerid ][ xSkin ] = FemaleSkinIDs[ 0 ][ 0 ];
- }
- }
- if( BiraSkin[ playerid ] > 0 ) {
- if( RegSex[ playerid ] == 1 ) {
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 9 ], MaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
- }
- else if( RegSex[ playerid ] == 2 ) {
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 9 ], FemaleSkinNames[ BiraSkin[ playerid ]-1 ][ 0 ] );
- }
- PlayerTextDrawLetterSize( playerid, RegisterTD[ playerid ][ 9 ], 0.200000, 1.000000 );
- PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 9 ] );
- BiraSkin[ playerid ] = 0;
- }
- for( new i = 13; i < 20; i ++) {
- PlayerTextDrawHide( playerid, RegisterTD[ playerid ][ i ] );
- }
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 9 ] ) { // skin
- for( new i = 13; i < 20; i ++) {
- PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ i ] );
- }
- if( RegSex[ playerid ] == 1 ) {
- PlayerInfo[ playerid ][ xSkin ] = 29;
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], MaleSkinNames[ 0 ][ 0 ] );
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], MaleSkinIDs[ 0 ][ 0 ] );
- }
- else if( RegSex[ playerid ] == 2 ) {
- PlayerTextDrawSetString( playerid, RegisterTD[ playerid ][ 15 ], FemaleSkinNames[ 0 ][ 0 ] );
- PlayerTextDrawSetPreviewModel( playerid, RegisterTD[ playerid ][ 13 ], FemaleSkinIDs[ 0 ][ 0 ] );
- }
- PlayerTextDrawShow( playerid, RegisterTD[ playerid ][ 13 ] );
- BiraPol[ playerid ] = 0;
- BiraSkin[ playerid ] = 1;
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 3 ] ) {
- SPD( playerid, dialog_COUNTRY, DSL, "Poreklo", "Srbija\nHrvatska\nMakedonija\nCrna Gora\nBosna i Hercegovina\nOstalo", "Odabir", "Izadji" );
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 7 ] ) {
- SPD( playerid, dialog_AGE, DSI, "Godine", "U prazni prostor ispod unesite vase godine\nMinimalno 12 maximalno 70", "Unos", "Izadji" );
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 11 ] ) {
- SPD(playerid, dialog_MAIL, DSI, "Mail", "U prazni prostor ispod unesite vasu e-mail adresu.\nE-mail adresa ce nam posluziti u vracanju vasih passworda.(Bez maila nema vracanja passworda)", "Unos", "Izadji" );
- return true;
- }
- if( playertextid == RegisterTD[ playerid ][ 12 ] ) {
- if( InputPassword[ playerid ] == false ) return GRESKA( playerid, "Nisi odabrao lozinku." );
- if( ChoseCountry[ playerid ] == false ) return GRESKA( playerid, "Nisi odabrao poreklo." );
- if( InputAge[ playerid ] == false ) return GRESKA( playerid, "Nisi odabrao godine starosti." );
- if( InputMail[ playerid ] == false ) return GRESKA( playerid, "Nisi uneo email." );
- if( RegSex[ playerid ] == 0 ) return GRESKA( playerid, "Nisi odabrao drzavu." );
- CancelSelectTextDraw( playerid );
- IgracSeRegistruje[ playerid ] = false;
- RegisterTDControl( playerid, false );
- PlayerInfo[ playerid ][ xRegistrovan ] = 1;
- PlayerInfo[ playerid ][ xPocetniTut ] = 0;
- PlayerInfo[ playerid ][ xSpawn ] = SetRandomSpawn( playerid );
- PlayerInfo[ playerid ][ xLevel ] = ServerInfo[ PocetniLevel ];
- new datum[ 64 ]; new year, month,day;
- getdate( year, month, day );
- new tmphour, tmpminute, tmpsecond;
- gettimeEx( tmphour, tmpminute, tmpsecond );
- FixHour( tmphour );
- tmphour = shifthour;
- format( datum, sizeof( datum ), "%02d/%02d/%d - %d/%d/%d", day, month, year, tmphour, tmpminute, tmpsecond );
- strmid( PlayerInfo[ playerid ][ xLastLogin ], datum, 0, strlen( datum ), 64 );
- SetPlayerScore( playerid, PlayerInfo[ playerid ][ xLevel ] );
- DajIgracuNovac( playerid, ServerInfo[ PocetniNovaca ] );
- SavePlayer( playerid );
- SetPlayerSkin( playerid, PlayerInfo[ playerid ][ xSkin ] );
- SendInfoMessage( playerid, "Uspesno ste se registrirali na Santiago Roleplay te vam zelimo dobrodoslicu!");
- TogglePlayerSpectating( playerid, true );
- InterpolateCameraPos( playerid, 1677.1746, -1303.1085, 481.0584, 1452.0430, -1314.4868, 176.0983, 50000, CAMERA_MOVE);
- InterpolateCameraLookAt( playerid, 1676.1766, -1312.1057, 479.6893, 1451.0450, -1314.4979, 174.7492, 50000, CAMERA_MOVE);
- SetPlayerInterior( playerid, 0 );
- SetPlayerVirtualWorld( playerid, 1 );
- Simec_SetPlayerPos( playerid, 1463.7633,-1041.4501,26.8281);
- SendClientMessage( playerid, SIVA," ");
- SendClientMessage( playerid, SIVA," ");
- SendClientMessage( playerid, SIVA," ");
- SendClientMessage( playerid, SIVA," ");
- SendClientMessage( playerid, SIVA," ");
- SendClientMessage( playerid, SIVA," ");
- SendClientMessage( playerid, ZELENA, "~ DOBRO DOSLI NA Santiago ~");
- SendClientMessage( playerid, SIVA," ");
- SendClientMessage( playerid, BELA, "Pre svega zelimo vam pozeleti dobrodoslicu na nas server.");
- SendClientMessage( playerid, BELA, "Ovo je tutorijal u kojem cemo vam pokazati najvaznije lokacije na serveru.");
- SendClientMessage( playerid, BELA, "Objasnit cemo vam kako uspesno zapoceti igru i uciniti je zanimljivom.");
- SendClientMessage( playerid, BELA, "Verujem da znate da je ovo RP server i da je dosta tesko doci do novca.");
- SendClientMessage( playerid, BELA, "Na pocetku imate 5000$ kod sebe, koje ce vam pomoci.");
- TimerTutorial[ playerid ] = SetTimerEx( "PocetniTut", 25000, false, "ii", playerid, 1 );
- PocetniTutorialStartovan[ playerid ] = true;
- return true;
- }
- /*if( playertextid == RegisterTD[ playerid ][ 7 ] ) {
- Kickovanje( playerid, "Prekinuli ste registraciju i kickovani ste!" );
- return true;
- }*/
- //
Advertisement
Add Comment
Please, Sign In to add comment