Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==================================[ Igraci ]==================================
- #undef MAX_PLAYERS //
- #define MAX_PLAYERS 100
- #define MAX_POKUSAJ_LOGINA 3
- #define I_FILE "Korisnici/%s.ini"
- #define FILE_BAN "Banovani/%s.ini"
- #define A_FILE "Admini/%s.ini"
- #define LOZINKA_STRING 50
- #define POCETNI_M_SKIN 119
- #define POCETNI_Z_SKIN 93
- #define POCETNI_NOVAC 500
- #define OBICAN_ZATVOR 1
- #define ALKATRAZ 2
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- public OnPlayerConnect( playerid ) {
- SetPlayerColor( playerid, 0xFFFFFF00 );
- /*if(!RolePlayImeProvera( ImeIgraca( playerid ) ) ) {
- SCM( playerid, CRVENA, "Dobili ste kick zbog krivo formatiranog imena!" );
- SCM( playerid, CRVENA, "Vase ime mora biti u formatu Ime_Prezime!" );
- Kick( playerid );
- return true; }*/
- if(!ProveraRPImena(playerid)) //NOVO
- {
- SCM( playerid, CRVENA, "Dobili ste kick zbog krivo formatiranog imena!" );
- SCM( playerid, CRVENA, "Vase ime mora biti u formatu Ime_Prezime!" );
- Kick( playerid );
- return 1;
- }
- ResetujVarijable( playerid );
- CreatePlayerTextDraws( playerid );
- OnOffZmigavci[playerid] = 0; //sistem zmigavaca
- //--------------------------------------------------------------------------
- PP_Info[playerid][LastBackGround] = 3; //poker system
- Start[playerid] = PlayerText:INVALID_TEXT_DRAW;
- //--------------------------------------------------------------------------
- new banfile[ 100 ]; format( banfile, sizeof( banfile ), FILE_BAN, ImeIgraca( playerid ) );
- if( fexist( banfile ) )
- {
- new string1[ 256 ];
- format( string1, sizeof( string1 ), "{FF0000}Banovani ste...\n\n{5D9FCE}%s {FFFFFF}vi ste banovani sa ovog servera.\nAko ne znate razlog bana pogledajte ga na forumu.\nUkoliko zelite unban zatrazite ga na nasem forumu.\nAdresa naseg foruma je:\n\n{5D9FCE}www.unique-samp.com", ImeIgraca( playerid ) );
- SPD( playerid, dialog_BANSTATUS, DSMSG, D_NASLOV, string1, D_ODABERI, D_ODUSTANI );
- Kickovanje( playerid, " ");
- return 1;
- }
- if( fexist( Korisnici ( playerid ) ) ) {
- INI_ParseFile( Korisnici( playerid ), "OcitajKorisnika", .bExtra = true, .extra = playerid);
- if( PlayerInfo[ playerid ][ xBDays ] > 0) {
- new year, month, day;
- getdate( year, month, day );
- if( PlayerInfo[ playerid ][ xBDays ] > day && PlayerInfo[ playerid ][ xBMonths ] >= month && PlayerInfo[ playerid ][ xBYears ] >= year ) {
- SCM( playerid, CRVENA, "__________________BAN________________");
- va_SendClientMessage( playerid, BELA, "{FFFFFF}Banovan si sa ovog servera do {5D9FCE}%d/%d/%d{FFFFFF}.", PlayerInfo[ playerid ][ xBDays ], PlayerInfo[ playerid ][ xBMonths ], PlayerInfo[ playerid ][ xBYears ] );
- SCM( playerid, BELA, "{FFFFFF}Ukoliko mislis da je ovo greska.");
- SCM( playerid, BELA, "{FFFFFF}Zahtev za unban mozes traziti na {5D9FCE}forumu.{FFFFFF}");
- SCM( playerid, BELA, "{FFFFFF}Forum: {5D9FCE}www.unique-samp.com");
- SCM( playerid, CRVENA, "_____________________________________");
- Kickovanje( playerid, " ");
- return 1;
- }
- }
- if( PlayerInfo[ playerid ][ xBDays ] > 0) {
- new year, month, day;
- getdate( year, month, day );
- if( PlayerInfo[ playerid ][ xBDays ] < day ){
- PlayerInfo[ playerid ][ xBDays ] = 0;
- }
- }
- if( PlayerInfo[ playerid ][ xRegistrovan ] == 1 ) {
- SetTimerEx( "RegLog", 100, false, "d", playerid );
- format( sDStrg, sizeof( sDStrg ),DialogTekstovi[ 0 ], MAX_POKUSAJ_LOGINA );
- PrviSpawn[ playerid ] = 1;
- SPD( playerid, dialog_LOGIN, DSP, D_NASLOV, sDStrg, D_ODABERI, D_ODUSTANI );
- }
- else {
- SetTimerEx( "RegLog", 100, false, "d", playerid );
- SPD( playerid, dialog_REGISTRACIJA_KORAK_1, DSMSG, D_NASLOV, DialogTekstovi[ 1 ], D_ODABERI, D_ODUSTANI );
- }
- }
- else {
- SetTimerEx( "RegLog", 100, false, "d", playerid );
- SPD( playerid, dialog_REGISTRACIJA_KORAK_1, DSMSG, D_NASLOV, DialogTekstovi[ 1 ], D_ODABERI, D_ODUSTANI );
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //------------------------------------------------------------------------------
- }
- ////////////////////////////////////////////////////////////////////////////
- if( dialogid == dialog_LOGIN ) {
- if( !response ) return Kick( playerid );
- if( response )
- {
- if( !strcmp( inputtext, PlayerInfo[ playerid ][ xLozinka ], false ) && !isnull( inputtext ) ) {
- INI_ParseFile( Korisnici( playerid ), "OcitajKorisnika", .bExtra = true, .extra = playerid );
- if( PlayerInfo[ playerid ][ xAdmin ] > 0 ) INI_ParseFile( Admini( playerid ), "OcitajAdmina", .bExtra = true, .extra = playerid );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 0 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 1 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 2 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 3 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 4 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 5 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 6 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 7 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 8 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 9 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 10 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 11 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 12 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 13 ] );
- /*PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 14 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 15 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 16 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 17 ] );
- PlayerTextDrawHide( playerid, GFREGLOG[ playerid ][ 18 ] );*/
- //AdminLogin( playerid ); //markirano77
- if(duplirespect == 1) TextDrawShowForPlayer(playerid, HapyHours);//
- NewsTextDrawsShowForPlayer( playerid );
- PlayerInfo[ playerid ][ xMute ] = 0;
- if( PlayerInfo[ playerid ][ xPocetniTut ] == 0 ) {
- TogglePlayerSpectating( playerid, 1 );
- InterpolateCameraPos(playerid, -2317.101318, 2010.638549, 72.219375, -2537.027832, 2375.906982, 27.088499, 50000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, -2318.851562, 2015.165405, 71.017623, -2533.084228, 2372.862060, 26.668331, 50000, CAMERA_MOVE);
- SetPlayerInterior( playerid, 0 );
- SetPlayerVirtualWorld( playerid, 1 );
- SetPlayerPos( playerid, -89.6918,1315.8743,78.2802);
- SCM( playerid, SIVA," ");
- SCM( playerid, SIVA," ");
- SCM( playerid, SIVA," ");
- SCM( playerid, SIVA," ");
- SCM( playerid, SIVA," ");
- SCM( playerid, SIVA," ");
- SCM( playerid, GEFORCE, "~ DOBRO DOSLI NA UNIQUE ~");
- SCM( playerid, SIVA," ");
- SCM( playerid, BELA, "Pre svega zelimo vam pozeleti dobrodoslicu na nas server.");
- SCM( playerid, BELA, "Ovo je tutorijal u kojem cemo vam pokazati najvaznije lokacije na serveru.");
- SCM( playerid, BELA, "Objasnit cemo vam kako uspesno zapoceti igru i uciniti je zanimljivom.");
- SCM( playerid, BELA, "Verujem da znate da je ovo RP server i da je dosta tesko doci do novca.");
- SCM( playerid, BELA, "Na pocetku imate 500$ kod sebe, koje ce vam pomoci.");
- SetTimerEx( "PocetniTut", 25000, false, "ii", playerid, 1 );
- }
- else {
- SetSpawnInfo( playerid, 0, PlayerInfo[ playerid ][ xSkin ], -2481.2727,2255.3000,4.5532,103.2964, 0, 0, 0, 0, 0, 0 );
- SpawnPlayer( playerid ); PlayerLogged[ playerid ] = 1;
- }
- }
- else {
- if ( PokusajLogina[ playerid ] == MAX_POKUSAJ_LOGINA - 1 ) {
- format( globalstring, sizeof( globalstring ), "Uneli ste krivu lozinku %d puta i dobili kick!", MAX_POKUSAJ_LOGINA );
- SCM( playerid, CRVENA, globalstring);
- Kick( playerid );
- return true;
- }
- PokusajLogina[ playerid ]++;
- SCM( playerid, CRVENA, "Kriva lozinka!" );
- format( sDStrg, sizeof( sDStrg ),DialogTekstovi[ 0 ], MAX_POKUSAJ_LOGINA );
- SPD( playerid, dialog_LOGIN, DSP, D_NASLOV, sDStrg, D_ODABERI, D_ODUSTANI );
- }
- }
- return true;
- }
- else if( dialogid == dialog_REGISTRACIJA_KORAK_1 ) {
- if( response ) {
- ZapoceoRegistraciju[ playerid ] = 1;
- SPD( playerid, dialog_REGISTRACIJA_KORAK_2, DSP, D_NASLOV, DialogTekstovi[ 2 ], D_ODABERI, D_ODUSTANI ); }
- else {
- SCM( playerid, CRVENA, "Doslo je do greske, pokusajte ponovo!");
- Kick( playerid ); }
- return true;
- }
- else if( dialogid == dialog_REGISTRACIJA_KORAK_2 ) {
- if( response && strlen( inputtext ) ) {
- new password[ LOZINKA_STRING ];
- if( strlen( inputtext ) >= sizeof( password )) return SendErrorMessage( playerid, "Password je predugacak!" ),
- SPD( playerid, dialog_REGISTRACIJA_KORAK_2, DSP, D_NASLOV, DialogTekstovi[ 2 ], D_ODABERI, D_ODUSTANI );
- format( password, sizeof( password ), "%s", inputtext );
- strmid( PlayerInfo[ playerid ][ xLozinka ], inputtext, 0, strlen( inputtext ), 255);
- new INI:File = INI_Open( Korisnici( playerid ) ); //kreiranje statsa
- INI_SetTag( File, "Informacije");
- INI_WriteString( File, "Lozinka", password );
- INI_WriteInt( File, "Pol", 0 );
- INI_WriteInt( File, "Godine", 0 );
- INI_WriteInt( File, "Novac", 0 );
- INI_WriteInt( File, "Level", 0 );
- INI_WriteInt( File, "Respekt", 0 );
- INI_WriteInt( File, "Poboljsanja", 0 );
- INI_WriteInt( File, "PayDay", 0 );
- INI_WriteInt( File, "Admin", 0 );
- INI_WriteInt( File, "AdminID", 0 );
- INI_WriteInt( File, "Skin", 0 );
- INI_WriteInt( File, "Spawn", 0 );
- INI_WriteInt( File, "Lider", 0 );
- INI_WriteInt( File, "Clan", 0 );
- INI_WriteInt( File, "Rank", 0 );
- INI_WriteInt( File, "VoziloID1", -1 );
- INI_WriteInt( File, "VoziloID2", -1 );
- INI_WriteInt( File, "VoziloID3", -1 );
- INI_WriteInt( File, "VoziloID4", -1 );
- INI_WriteInt( File, "VoziloID5", -1 );
- INI_WriteInt( File, "Droga", 0 );
- INI_WriteInt( File, "Materijali", 0 );
- INI_WriteInt( File, "FirmaID", -1 );
- INI_WriteInt( File, "Posao", 0 );
- INI_WriteInt( File, "Ugovor", 0 );
- INI_WriteInt( File, "MehSkill", 0 );
- INI_WriteInt( File, "MDelovi", 0 );
- INI_WriteInt( File, "Head", 0 );
- INI_WriteFloat( File, "HeadPos1", PlayerInfo[ playerid ][ xHeadPos ][ 0 ] );
- INI_WriteFloat( File, "HeadPos2", PlayerInfo[ playerid ][ xHeadPos ][ 1 ] );
- INI_WriteFloat( File, "HeadPos3", PlayerInfo[ playerid ][ xHeadPos ][ 2 ] );
- INI_WriteFloat( File, "HeadPos4", PlayerInfo[ playerid ][ xHeadPos ][ 3 ] );
- INI_WriteFloat( File, "HeadPos5", PlayerInfo[ playerid ][ xHeadPos ][ 4 ] );
- INI_WriteFloat( File, "HeadPos6", PlayerInfo[ playerid ][ xHeadPos ][ 5 ] );
- INI_WriteFloat( File, "HeadPos7", PlayerInfo[ playerid ][ xHeadPos ][ 6 ] );
- INI_WriteFloat( File, "HeadPos8", PlayerInfo[ playerid ][ xHeadPos ][ 7 ] );
- INI_WriteFloat( File, "HeadPos9", PlayerInfo[ playerid ][ xHeadPos ][ 8 ] );
- INI_WriteInt( File, "Face", 0 );
- INI_WriteFloat( File, "FacePos1", PlayerInfo[ playerid ][ xFacePos ][ 0 ] );
- INI_WriteFloat( File, "FacePos2", PlayerInfo[ playerid ][ xFacePos ][ 1 ] );
- INI_WriteFloat( File, "FacePos3", PlayerInfo[ playerid ][ xFacePos ][ 2 ] );
- INI_WriteFloat( File, "FacePos4", PlayerInfo[ playerid ][ xFacePos ][ 3 ] );
- INI_WriteFloat( File, "FacePos5", PlayerInfo[ playerid ][ xFacePos ][ 4 ] );
- INI_WriteFloat( File, "FacePos6", PlayerInfo[ playerid ][ xFacePos ][ 5 ] );
- INI_WriteFloat( File, "FacePos7", PlayerInfo[ playerid ][ xFacePos ][ 6 ] );
- INI_WriteFloat( File, "FacePos8", PlayerInfo[ playerid ][ xFacePos ][ 7 ] );
- INI_WriteFloat( File, "FacePos9", PlayerInfo[ playerid ][ xFacePos ][ 8 ] );
- INI_WriteInt( File, "SungMask", 0 );
- INI_WriteFloat( File, "SungMaskPos1", PlayerInfo[ playerid ][ xSungMaskPos ][ 0 ] );
- INI_WriteFloat( File, "SungMaskPos2", PlayerInfo[ playerid ][ xSungMaskPos ][ 1 ] );
- INI_WriteFloat( File, "SungMaskPos3", PlayerInfo[ playerid ][ xSungMaskPos ][ 2 ] );
- INI_WriteFloat( File, "SungMaskPos4", PlayerInfo[ playerid ][ xSungMaskPos ][ 3 ] );
- INI_WriteFloat( File, "SungMaskPos5", PlayerInfo[ playerid ][ xSungMaskPos ][ 4 ] );
- INI_WriteFloat( File, "SungMaskPos6", PlayerInfo[ playerid ][ xSungMaskPos ][ 5 ] );
- INI_WriteFloat( File, "SungMaskPos7", PlayerInfo[ playerid ][ xSungMaskPos ][ 6 ] );
- INI_WriteFloat( File, "SungMaskPos8", PlayerInfo[ playerid ][ xSungMaskPos ][ 7 ] );
- INI_WriteFloat( File, "SungMaskPos9", PlayerInfo[ playerid ][ xSungMaskPos ][ 8 ] );
- INI_WriteInt( File, "Cigare", 0 );
- INI_WriteInt( File, "Upaljac", 0 );
- INI_WriteInt( File, "BStil", 0 );
- INI_WriteInt( File, "Registrovan", 0 );
- INI_WriteFloat( File, "SHealth", 0 );
- INI_WriteInt( File, "BrojTelefona", 0 );
- INI_WriteInt( File, "Vozacka", 0 );
- INI_WriteInt( File, "Motorska", 0 );
- INI_WriteInt( File, "KamionskaC1", 0 );
- INI_WriteInt( File, "KamionskaC2", 0 );
- INI_WriteInt( File, "KamionskaC3", 0 );
- INI_WriteInt( File, "Brodska", 0 );
- INI_WriteInt( File, "Letelica", 0 );
- INI_WriteInt( File, "Osnovna", 0 );
- INI_WriteInt( File, "Srednja", 0 );
- INI_WriteInt( File, "Fakultet", 0 );
- INI_WriteInt( File, "SkolaLimit", 0 );
- INI_WriteInt( File, "Ubijen", 0 );
- INI_WriteFloat( File, "Death1", 0 );
- INI_WriteFloat( File, "Death2", 0 );
- INI_WriteFloat( File, "Death3", 0 );
- INI_WriteInt( File, "Drug1", 0 );
- INI_WriteInt( File, "Drug2", 0 );
- INI_WriteInt( File, "Drug3", 0 );
- INI_WriteInt( File, "Drug4", 0 );
- INI_WriteInt( File, "Drug5", 0 );
- INI_WriteInt( File, "DrugCode1", 0 );
- INI_WriteInt( File, "DrugCode2", 0 );
- INI_WriteInt( File, "DrugCode3", 0 );
- INI_WriteInt( File, "DrugCode4", 0 );
- INI_WriteInt( File, "DrugCode5", 0 );
- INI_WriteInt( File, "Solna", 0 );
- INI_WriteInt( File, "Pseudo", 0 );
- INI_WriteInt( File, "SodaB", 0 );
- INI_WriteInt( File, "CrveniF", 0 );
- INI_WriteInt( File, "LysAcid", 0 );
- INI_WriteInt( File, "DesVoda", 0 );
- INI_WriteInt( File, "Marihuana", 0 );
- INI_WriteInt( File, "Opium", 0 );
- INI_WriteInt( File, "Kalcijum", 0 );
- INI_WriteInt( File, "AmonijumHlorid", 0 );
- INI_WriteInt( File, "Kokain", 0 );
- INI_WriteInt( File, "Kokain2", 0 );
- INI_WriteInt( File, "MetilAmin", 0 );
- INI_WriteFloat( File, "Hunger", 5.0 );
- INI_WriteBool( File, "HeroinAddict", false );
- INI_WriteInt( File, "HeroinUsed", 0 );
- INI_WriteInt( File, "HeroinIndicator", 0 );
- INI_WriteBool( File, "CokeCrackAddict", false );
- INI_WriteInt( File, "CokeCrackUsed", 0 );
- INI_WriteInt( File, "CokeCrackIndicator", 0 );
- INI_WriteBool( File, "MethAddict", false );
- INI_WriteInt( File, "MethIndicator", 0 );
- INI_WriteInt( File, "MethUsed", 0 );
- INI_WriteBool( File, "Inekcija", false );
- INI_WriteBool( File, "Toolkit", false );
- INI_WriteInt( File, "IDelovi", 0 );
- INI_WriteInt( File, "Property1", -1 );
- INI_WriteInt( File, "Property2", -1 );
- INI_WriteInt( File, "Property3", -1 );
- INI_WriteBool( File, "GunLicense", false );
- INI_WriteInt( File, "TelefonBon", 0 );
- INI_WriteInt( File, "ModelTelefona", 0 );
- INI_WriteInt( File, "Snaga", 0 );
- INI_WriteInt( File, "Zatvor", 0 );
- INI_WriteInt( File, "ZatvorVreme", 0 );
- INI_WriteInt( File, "Wanted", 0 );
- INI_WriteInt( File, "Uhapsen", 0 );
- INI_WriteInt( File, "PDUhapsio", 0 );
- INI_WriteInt( File, "PDStatsTicket", 0 );
- INI_WriteInt( File, "PDStatsTicketMoney", 0 );
- INI_WriteInt( File, "TakenWeps", 0 );
- INI_WriteInt( File, "TakenDrugs", 0 );
- INI_WriteInt( File, "PocetniTut", 0 );
- INI_WriteInt( File, "AKod", 0 );
- INI_WriteInt( File, "GMKod", 0 );
- INI_WriteInt( File, "Sat", 0 );
- INI_WriteBool( File, "Mask", false );
- INI_WriteInt( File, "MaskID", 0 );
- INI_WriteInt( File, "BRacun", 0 );
- INI_WriteInt( File, "PreostaloZaOtplatu", 0 );
- INI_WriteInt( File, "IznosRate", 0 );
- INI_WriteInt( File, "IznosKredita", 0 );
- INI_WriteInt( File, "OnlineSati", 0 );
- INI_WriteInt( File, "GM", 0 );
- INI_WriteInt( File, "HelperID", 0 );
- INI_WriteInt( File, "RPLearn", 0 );
- INI_WriteInt( File, "Warn", 0 );
- INI_WriteInt( File, "Mute", 0 );
- INI_WriteFloat( File, "Marker1", 0.0000 );
- INI_WriteFloat( File, "Marker2", 0.0000 );
- INI_WriteFloat( File, "Marker3", 0.0000 );
- INI_WriteInt( File, "BrojNews", 0 );
- INI_WriteInt( File, "OrgUgovor", 0 );
- INI_WriteInt( File, "PaketID", -1 );
- INI_WriteInt( File, "Srafciger", false );
- INI_WriteInt( File, "Pajser", false );
- INI_WriteInt( File, "Cekic", false );
- INI_WriteInt( File, "GpsLevel", 0 );
- INI_WriteInt( File, "Helmet", 0 );
- INI_WriteInt( File, "BanDays", 0 );
- INI_WriteInt( File, "BanMonths", 0 );
- INI_WriteInt( File, "BanYear", 0 );
- INI_WriteInt( File, "GradRank", 0 );
- INI_WriteInt( File, "Ozo", 0 );
- INI_WriteInt( File, "UlazBL", 0 );
- INI_WriteInt( File,"LottoNr", 0 );
- INI_WriteInt( File,"LottoNr2", 0 );
- INI_WriteInt( File,"LottoNr3", 0 );
- INI_WriteInt( File,"LottoNr4", 0 );
- INI_WriteInt( File,"LottoNr5", 0 );
- INI_WriteInt( File,"LottoNr6", 0 );
- INI_WriteInt( File,"LottoNr7", 0 );
- INI_WriteInt( File,"LottoNovac", 0 );
- INI_WriteBool( File, "Boombox", false );
- INI_WriteFloat( File, "HelmetPos1", PlayerInfo[ playerid ][ xHelmetPos ][ 0 ] );
- INI_WriteFloat( File, "HelmetPos2", PlayerInfo[ playerid ][ xHelmetPos ][ 1 ] );
- INI_WriteFloat( File, "HelmetPos3", PlayerInfo[ playerid ][ xHelmetPos ][ 2 ] );
- INI_WriteFloat( File, "HelmetPos4", PlayerInfo[ playerid ][ xHelmetPos ][ 3 ] );
- INI_WriteFloat( File, "HelmetPos5", PlayerInfo[ playerid ][ xHelmetPos ][ 4 ] );
- INI_WriteFloat( File, "HelmetPos6", PlayerInfo[ playerid ][ xHelmetPos ][ 5 ] );
- INI_WriteFloat( File, "HelmetPos7", PlayerInfo[ playerid ][ xHelmetPos ][ 6 ] );
- INI_WriteFloat( File, "HelmetPos8", PlayerInfo[ playerid ][ xHelmetPos ][ 7 ] );
- INI_WriteFloat( File, "HelmetPos9", PlayerInfo[ playerid ][ xHelmetPos ][ 8 ] );
- INI_WriteInt( File, "LicnaKarta",0);
- INI_WriteInt( File, "Pasos",0);
- INI_WriteInt( File, "MP3",0);
- INI_WriteInt( File, "Skate",0);
- INI_WriteInt( File, "Laptop",0);
- INI_WriteInt( File, "ImaImanje",0);
- INI_WriteInt( File, "SjemeSljiva",0);
- INI_WriteInt( File, "SjemeKruska",0);
- INI_WriteInt( File, "SjemeJabuka",0);
- INI_WriteInt( File, "DrvaMax",0);
- INI_WriteInt( File, "Sljiva",0);
- INI_WriteInt( File, "Krusaka",0);
- INI_WriteInt( File, "Jabuka",0);
- INI_WriteInt( File, "Voce",0);
- INI_WriteInt( File, "LovKomb",0);
- INI_WriteInt( File, "DozvolaLov",0);
- INI_WriteInt( File, "LovMeso",0);
- INI_WriteInt( File, "Spawned",0);
- INI_Close( File );
- SPD( playerid, dialog_REGISTRACIJA_KORAK_3, DSI, D_NASLOV, DialogTekstovi[ 3 ], D_ODABERI, D_ODUSTANI ); }
- else {
- SCM( playerid, CRVENA, "Doslo je do greske, pokusajte ponovo!");
- Kick( playerid ); }
- return true;
- }
- else if( dialogid == dialog_REGISTRACIJA_KORAK_3 ) {
- if( response && strlen( inputtext ) ) {
- if( strval( inputtext ) < 15 || strval( inputtext ) > 80 ) return SendErrorMessage( playerid, "Krivi unos!" ), SPD( playerid, dialog_REGISTRACIJA_KORAK_3, DSI, D_NASLOV, DialogTekstovi[ 3 ], D_ODABERI, D_ODUSTANI );
- PlayerInfo[ playerid ][ xGodine ] = strval( inputtext );
- SPD( playerid, dialog_REGISTRACIJA_KORAK_4, DSI, D_NASLOV, DialogTekstovi[ 4 ], D_ODABERI, D_ODUSTANI ); }
- else {
- SCM( playerid, CRVENA, "Doslo je do greske, pokusajte ponovo!" );
- SPD( playerid, dialog_REGISTRACIJA_KORAK_3, DSI, D_NASLOV, DialogTekstovi[ 3 ], D_ODABERI, D_ODUSTANI ); }
- return true;
- }
- else if( dialogid == dialog_REGISTRACIJA_KORAK_4 ) {
- if( response && strlen( inputtext ) ) {
- if( strfind( inputtext, "musko", true ) != -1 ) {
- PlayerInfo[ playerid ][ xPol ] = 1;
- PlayerInfo[ playerid ][ xPocetniTut ] = 0;
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN;
- DajIgracuNovac( playerid, POCETNI_NOVAC );
- PlayerInfo[ playerid ][ xLevel ] = 1;
- SetPlayerScore( playerid, PlayerInfo[ playerid ][ xLevel ] );
- SetPlayerSkin( playerid, POCETNI_M_SKIN );
- PlayerInfo[ playerid ][ xSkin ] = POCETNI_M_SKIN;
- PlayerInfo[ playerid ][ xRegistrovan ] = 1;
- SavePlayer( playerid );
- ZapoceoRegistraciju[ playerid ] = 0;
- format( sDStrg, sizeof( sDStrg ),DialogTekstovi[ 0 ], MAX_POKUSAJ_LOGINA );
- SPD( playerid, dialog_LOGIN, DSP, D_NASLOV, sDStrg, D_ODABERI, D_ODUSTANI );
- return true; }
- else if( strfind( inputtext, "zensko", true ) != -1 ) {
- PlayerInfo[ playerid ][ xPol ] = 2;
- PlayerInfo[ playerid ][ xPocetniTut ] = 0;
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN;
- DajIgracuNovac( playerid, POCETNI_NOVAC );
- PlayerInfo[ playerid ][ xLevel ] = 1;
- SetPlayerScore( playerid, PlayerInfo[ playerid ][ xLevel ] );
- SetPlayerSkin( playerid, POCETNI_Z_SKIN );
- PlayerInfo[ playerid ][ xSkin ] = POCETNI_Z_SKIN;
- PlayerInfo[ playerid ][ xRegistrovan ] = 1;
- SavePlayer( playerid );
- ZapoceoRegistraciju[ playerid ] = 0;
- format( sDStrg, sizeof( sDStrg ),DialogTekstovi[ 0 ], MAX_POKUSAJ_LOGINA );
- SPD( playerid, dialog_LOGIN, DSP, D_NASLOV, sDStrg, D_ODABERI, D_ODUSTANI );
- return true; }
- else {
- SCM( playerid, CRVENA, "Doslo je do greske, pokusajte ponovo!" );
- SPD( playerid, dialog_REGISTRACIJA_KORAK_4, DSI, D_NASLOV, DialogTekstovi[ 4 ], D_ODABERI, D_ODUSTANI );
- return true; } }
- else {
- SCM( playerid, CRVENA, "Doslo je do greske, pokusajte ponovo!" );
- SPD( playerid, dialog_REGISTRACIJA_KORAK_4, DSI, D_NASLOV, DialogTekstovi[ 4 ], D_ODABERI, D_ODUSTANI ); }
- //////////////////////////////////////////////////////////////////////////////////////////
- }
- public RegLog( playerid )
- {
- for( new chat = 0; chat <= 30; chat++ )
- SCM( playerid, BELA, " " );
- PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/1pahxl3aes/GUNS-AND-ROSES-WELCOME-TO-THE-JUNGLE.mp3");
- //InterpolateCameraPos(playerid, 158.636703, 1199.878784, 22.574916, 176.294143, 1205.160156, 22.574916, 10000); //uvod camera
- //InterpolateCameraLookAt(playerid, 161.102996, 1204.206054, 23.013414, 174.276763, 1209.726196, 22.860698, 10000);
- // SetPlayerPos(playerid, 158.6774,1192.7378,15.1227);
- // SetPlayerCameraPos(playerid, 173.8670, 1193.0315, 25.3380);
- //SetPlayerCameraLookAt(playerid, 173.6935, 1194.0223, 25.2229);
- //InterpolateCameraPos(playerid, 1806.392456, -2006.840209, 65.831573, 1979.851684, -1851.406005, 65.831573, 10000);
- //InterpolateCameraLookAt(playerid, 1804.158203, -2002.398681, 65.301322, 1975.568481, -1848.893554, 65.246978, 10000);
- InterpolateCameraPos(playerid, -2550.198974, 2160.588867, 27.575992, -2337.907470, 2290.606689, 20.683963, 10000);
- InterpolateCameraLookAt(playerid, -2549.379882, 2165.511962, 27.271495, -2342.870849, 2290.589843, 20.079975, 10000);
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 0 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 1 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 2 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 3 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 4 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 5 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 6 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 7 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 8 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 9 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 10 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 11 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 12 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 13 ] );
- /*PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 14 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 15 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 16 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 17 ] );
- PlayerTextDrawShow( playerid, GFREGLOG[ playerid ][ 18 ] );*/
- return true;
Advertisement
Add Comment
Please, Sign In to add comment