[POMOC] SaveKorisnik

Započeo Frank Smith, April 26, 2017, 00:10:37 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Od 0
Detaljan opis problema: Ovako, napravio sam SacuvajKorisnika, i sad sta se desava, stavio sam da cuva korisnika kada se on disconnecta, ali ako server pukne, ili se izgasi, igrac se ne sacuva to jeste : "Pare, Zlato , ID Posao, ORG, Lider itd itd ... Koristim INI . Ako moze neko da pomogne .
Dio skripte: Nije potrebno ja mislim, ako bude trebalo napisite
Neke slike/video za lakse dobivanje pomoci(neobavezno): Nije potrebno

Ne razumijem sta tacno zelis?

-Delic Enadin
-15
-11/7




- HTML
- PAWNO Scripring
- JAVA SCRIPT

Citat: Delicâ,,¢ poslato April 26, 2017, 17:28:31 POSLE PODNE
Ne razumijem sta tacno zelis?
@Delicâ,,¢
Slusaj ovako, kada se server stopira ili igrac izadje sa servera. Igracu se ne sacuvaju podaci: "Novac", "Zlato", itd itd ... I ako sam napravio da se sacuva evo i kod ...
[pawn]SacuvajKorisnika( playerid )
{
      new INI:File = INI_Open( Korisnici( playerid ) );
      INI_SetTag( File, "Informacije" );
      INI_WriteString( File, "Lozinka", PlayerInfo[ playerid ][ pLozinka ] );
      INI_WriteInt( File, "Pol", PlayerInfo[ playerid ][ pPol ] );
      INI_WriteInt( File, "Godine", PlayerInfo[ playerid ][ pGodine ] );
       INI_WriteInt( File, "Novac", PlayerInfo[ playerid ][ pNovac ] );
      INI_WriteInt( File, "Level", PlayerInfo[ playerid ][ pLevel ] );
      INI_WriteInt( File, "Respekt", PlayerInfo[ playerid ][ pRespekt ] );
      INI_WriteInt( File, "Poboljsanja", PlayerInfo[ playerid ][ pPoboljsanja ] );
      INI_WriteInt( File, "PayDay", PlayerInfo[ playerid ][ pPayDay ] );
      INI_WriteInt( File, "Admin", PlayerInfo[ playerid ][ pAdmin ] );
      INI_WriteInt( File, "Skin", PlayerInfo[ playerid ][ pSkin ] );
      INI_WriteInt( File, "Spawn", PlayerInfo[ playerid ][ pSpawn ] );
       INI_WriteInt( File, "PocetniTut", PlayerInfo[ playerid ][ pPocetniTut ] );
       INI_WriteInt( File, "AdminVrsta", PlayerInfo[ playerid ][ pAdminVrsta ] );
       INI_WriteInt( File, "GMVrsta", PlayerInfo[ playerid ][ pGMVrsta ] );
       INI_WriteInt( File, "StaffSlot", PlayerInfo[ playerid ][ pStaffSlot ] );
       INI_WriteInt( File, "BRacun", PlayerInfo[ playerid ][ pBRacun ] );
       INI_WriteInt( File, "PreostaloZaOtplatu", PlayerInfo[ playerid ][ pPreostaloZaOtplatu ] );
       INI_WriteInt( File, "IznosRate", PlayerInfo[ playerid ][ pIznosRate ] );
       INI_WriteInt( File, "IznosKredita", PlayerInfo[ playerid ][ pIznosKredita ] );
       INI_WriteInt( File, "OnlineSati", PlayerInfo[ playerid ][ pOnlineSati ] );
       INI_WriteInt( File, "GameMaster", PlayerInfo[ playerid ][ pGM ] );
      INI_WriteInt( File, "Drzava", PlayerInfo[ playerid ][ pDrzava ] );
      INI_WriteString( File, "Email", PlayerInfo[ playerid ][ pEmail ] );
       INI_WriteString( File, "LastLogin", PlayerInfo[ playerid ][ pLastLogin ] );
      INI_WriteInt( File, "Promoter", PlayerInfo[ playerid ][ xPromoter ] );
      INI_WriteBool( File, "ImaBRacun", PlayerInfo[ playerid ][ xImaBRacun ] );
      INI_WriteInt( File, "PlatniRacun", PlayerInfo[ playerid ][ xPlatniRacun ] );
      INI_WriteInt( File, "Zlato", PlayerInfo[ playerid ][ pZlato ] );
      INI_WriteInt( File, "BanDays", PlayerInfo[ playerid ][ pBDays ] );
      INI_WriteInt( File, "BanMonths", PlayerInfo[ playerid ][ pBMonths ] );
      INI_WriteInt( File, "BanYear", PlayerInfo[ playerid ][ pBYears ] );
      INI_WriteInt( File, "Registrovan", PlayerInfo[ playerid ][ pRegistrovan ] );
      INI_WriteInt( File, "VoziloID1", PlayerInfo[ playerid ][ pVoziloID ][ 0 ] );
      INI_WriteInt( File, "VoziloID2", PlayerInfo[ playerid ][ pVoziloID ][ 1 ] );
      INI_WriteInt( File, "VoziloID3", PlayerInfo[ playerid ][ pVoziloID ][ 2 ] );
      INI_WriteInt( File, "VoziloID4", PlayerInfo[ playerid ][ pVoziloID ][ 3 ] );
      INI_WriteInt( File, "Mutiran", PlayerInfo[ playerid ][ pMutiran ] );
      INI_WriteInt( File, "Promoter", PlayerInfo[ playerid ][ pPromoter ] );
      INI_WriteInt( File, "NovacBanka", PlayerInfo[ playerid ] [pNovacBanka] );
      INI_WriteInt( File, "Posao", PlayerInfo[ playerid ][ pPosao ] );
      INI_Close( File );
      return 1;
}[/pawn]
A evo i da se na player disconnect sacuva:
[pawn]public OnPlayerDisconnect( playerid, reason )
{
    DestroyPlayerTextDraws( playerid );

   if( CitaTutorialStartovan[ playerid ] == true ) b_KillTimer( TimerTutorial[ playerid ] );

    if( IgracSeRegistruje[ playerid ] == true ) RegisterTDControl( playerid, false );
   
      if( UlogovanProvera[ playerid ] == 1 )
   {
      SacuvajKorisnika( playerid );
   }
   for(new i=0;i<20;i++)
   {
       if(playerid == PitanjeID)
       {
           PitanjeID = -1;
            strmid(Pitanje, "Nema", 0, strlen("Nema"), 255);
       }
   }
   return 1;
}[/pawn]

Ne vidim problem

[pawn]stock SacuvajKorisnika( playerid )
{
   new INI:File = INI_Open( Korisnici( playerid ) );
   INI_SetTag( File, "Informacije" );
   INI_WriteString( File, "Lozinka", PlayerInfo[ playerid ][ pLozinka ] );
   INI_WriteInt( File, "Pol", PlayerInfo[ playerid ][ pPol ] );
   INI_WriteInt( File, "Godine", PlayerInfo[ playerid ][ pGodine ] );
    INI_WriteInt( File, "Novac", PlayerInfo[ playerid ][ pNovac ] );
   INI_WriteInt( File, "Level", PlayerInfo[ playerid ][ pLevel ] );
   INI_WriteInt( File, "Respekt", PlayerInfo[ playerid ][ pRespekt ] );
   INI_WriteInt( File, "Poboljsanja", PlayerInfo[ playerid ][ pPoboljsanja ] );
   INI_WriteInt( File, "PayDay", PlayerInfo[ playerid ][ pPayDay ] );
   INI_WriteInt( File, "Admin", PlayerInfo[ playerid ][ pAdmin ] );
   INI_WriteInt( File, "Skin", PlayerInfo[ playerid ][ pSkin ] );
   INI_WriteInt( File, "Spawn", PlayerInfo[ playerid ][ pSpawn ] );
    INI_WriteInt( File, "PocetniTut", PlayerInfo[ playerid ][ pPocetniTut ] );
    INI_WriteInt( File, "AdminVrsta", PlayerInfo[ playerid ][ pAdminVrsta ] );
    INI_WriteInt( File, "GMVrsta", PlayerInfo[ playerid ][ pGMVrsta ] );
    INI_WriteInt( File, "StaffSlot", PlayerInfo[ playerid ][ pStaffSlot ] );
    INI_WriteInt( File, "BRacun", PlayerInfo[ playerid ][ pBRacun ] );
    INI_WriteInt( File, "PreostaloZaOtplatu", PlayerInfo[ playerid ][ pPreostaloZaOtplatu ] );
    INI_WriteInt( File, "IznosRate", PlayerInfo[ playerid ][ pIznosRate ] );
    INI_WriteInt( File, "IznosKredita", PlayerInfo[ playerid ][ pIznosKredita ] );
    INI_WriteInt( File, "OnlineSati", PlayerInfo[ playerid ][ pOnlineSati ] );
    INI_WriteInt( File, "GameMaster", PlayerInfo[ playerid ][ pGM ] );
   INI_WriteInt( File, "Drzava", PlayerInfo[ playerid ][ pDrzava ] );
   INI_WriteString( File, "Email", PlayerInfo[ playerid ][ pEmail ] );
    INI_WriteString( File, "LastLogin", PlayerInfo[ playerid ][ pLastLogin ] );
   INI_WriteInt( File, "Promoter", PlayerInfo[ playerid ][ xPromoter ] );
   INI_WriteBool( File, "ImaBRacun", PlayerInfo[ playerid ][ xImaBRacun ] );
   INI_WriteInt( File, "PlatniRacun", PlayerInfo[ playerid ][ xPlatniRacun ] );
   INI_WriteInt( File, "Zlato", PlayerInfo[ playerid ][ pZlato ] );
   INI_WriteInt( File, "BanDays", PlayerInfo[ playerid ][ pBDays ] );
   INI_WriteInt( File, "BanMonths", PlayerInfo[ playerid ][ pBMonths ] );
   INI_WriteInt( File, "BanYear", PlayerInfo[ playerid ][ pBYears ] );
   INI_WriteInt( File, "Registrovan", PlayerInfo[ playerid ][ pRegistrovan ] );
   INI_WriteInt( File, "VoziloID1", PlayerInfo[ playerid ][ pVoziloID ][ 0 ] );
   INI_WriteInt( File, "VoziloID2", PlayerInfo[ playerid ][ pVoziloID ][ 1 ] );
   INI_WriteInt( File, "VoziloID3", PlayerInfo[ playerid ][ pVoziloID ][ 2 ] );
   INI_WriteInt( File, "VoziloID4", PlayerInfo[ playerid ][ pVoziloID ][ 3 ] );
   INI_WriteInt( File, "Mutiran", PlayerInfo[ playerid ][ pMutiran ] );
   INI_WriteInt( File, "Promoter", PlayerInfo[ playerid ][ pPromoter ] );
   INI_WriteInt( File, "NovacBanka", PlayerInfo[ playerid ] [pNovacBanka] );
   INI_WriteInt( File, "Posao", PlayerInfo[ playerid ][ pPosao ] );
   INI_Close( File );
   return 1;
}[/pawn]

Ukoliko restart servera radis putem komande kao /gmx trebas da postavis [pawn] SacuvajKorisnika(playerid); isto tako i kod RCON[/pawn]
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |

@Bolex_
Bolex, ne ne, nego u opste kada igrac izadje sa servera ne sacuva mu se nista ... Jedno vrijeme mi je radilo ali prestalo ...
Ili kada iskljucim server na GamePanel pa ga upalim, ili ga restartujem, opet se nista ne sacuva ...

Da bi moglo spremati moras se i ucitati odnekle
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |

@Bolex_
Pa Bolex ono ga ucitava sa sa funkcijom SacuvajKorisnika ... Pojasni malo ..

Postavi nam jos kodova u vezi Saving/Loading
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |

@Bolex_
Evo

SACUVAJ KORISNIKA
[pawn]SacuvajKorisnika( playerid )
{
      new INI:File = INI_Open( Korisnici( playerid ) );
      INI_SetTag( File, "Informacije" );
      INI_WriteString( File, "Lozinka", PlayerInfo[ playerid ][ pLozinka ] );
      INI_WriteInt( File, "Pol", PlayerInfo[ playerid ][ pPol ] );
      INI_WriteInt( File, "Godine", PlayerInfo[ playerid ][ pGodine ] );
       INI_WriteInt( File, "Novac", PlayerInfo[ playerid ][ pNovac ] );
      INI_WriteInt( File, "Level", PlayerInfo[ playerid ][ pLevel ] );
      INI_WriteInt( File, "Respekt", PlayerInfo[ playerid ][ pRespekt ] );
      INI_WriteInt( File, "Poboljsanja", PlayerInfo[ playerid ][ pPoboljsanja ] );
      INI_WriteInt( File, "PayDay", PlayerInfo[ playerid ][ pPayDay ] );
      INI_WriteInt( File, "Admin", PlayerInfo[ playerid ][ pAdmin ] );
      INI_WriteInt( File, "Skin", PlayerInfo[ playerid ][ pSkin ] );
      INI_WriteInt( File, "Spawn", PlayerInfo[ playerid ][ pSpawn ] );
       INI_WriteInt( File, "PocetniTut", PlayerInfo[ playerid ][ pPocetniTut ] );
       INI_WriteInt( File, "AdminVrsta", PlayerInfo[ playerid ][ pAdminVrsta ] );
       INI_WriteInt( File, "GMVrsta", PlayerInfo[ playerid ][ pGMVrsta ] );
       INI_WriteInt( File, "StaffSlot", PlayerInfo[ playerid ][ pStaffSlot ] );
       INI_WriteInt( File, "BRacun", PlayerInfo[ playerid ][ pBRacun ] );
       INI_WriteInt( File, "PreostaloZaOtplatu", PlayerInfo[ playerid ][ pPreostaloZaOtplatu ] );
       INI_WriteInt( File, "IznosRate", PlayerInfo[ playerid ][ pIznosRate ] );
       INI_WriteInt( File, "IznosKredita", PlayerInfo[ playerid ][ pIznosKredita ] );
       INI_WriteInt( File, "OnlineSati", PlayerInfo[ playerid ][ pOnlineSati ] );
       INI_WriteInt( File, "GameMaster", PlayerInfo[ playerid ][ pGM ] );
      INI_WriteInt( File, "Drzava", PlayerInfo[ playerid ][ pDrzava ] );
      INI_WriteString( File, "Email", PlayerInfo[ playerid ][ pEmail ] );
       INI_WriteString( File, "LastLogin", PlayerInfo[ playerid ][ pLastLogin ] );
      INI_WriteInt( File, "Promoter", PlayerInfo[ playerid ][ xPromoter ] );
      INI_WriteBool( File, "ImaBRacun", PlayerInfo[ playerid ][ xImaBRacun ] );
      INI_WriteInt( File, "PlatniRacun", PlayerInfo[ playerid ][ xPlatniRacun ] );
      INI_WriteInt( File, "Zlato", PlayerInfo[ playerid ][ pZlato ] );
      INI_WriteInt( File, "BanDays", PlayerInfo[ playerid ][ pBDays ] );
      INI_WriteInt( File, "BanMonths", PlayerInfo[ playerid ][ pBMonths ] );
      INI_WriteInt( File, "BanYear", PlayerInfo[ playerid ][ pBYears ] );
      INI_WriteInt( File, "Registrovan", PlayerInfo[ playerid ][ pRegistrovan ] );
      INI_WriteInt( File, "VoziloID1", PlayerInfo[ playerid ][ pVoziloID ][ 0 ] );
      INI_WriteInt( File, "VoziloID2", PlayerInfo[ playerid ][ pVoziloID ][ 1 ] );
      INI_WriteInt( File, "VoziloID3", PlayerInfo[ playerid ][ pVoziloID ][ 2 ] );
      INI_WriteInt( File, "VoziloID4", PlayerInfo[ playerid ][ pVoziloID ][ 3 ] );
      INI_WriteInt( File, "Mutiran", PlayerInfo[ playerid ][ pMutiran ] );
      INI_WriteInt( File, "Promoter", PlayerInfo[ playerid ][ pPromoter ] );
      INI_WriteInt( File, "NovacBanka", PlayerInfo[ playerid ] [pNovacBanka] );
      INI_WriteInt( File, "Posao", PlayerInfo[ playerid ][ pPosao ] );
      INI_Close( File );
      return 1;
}[/pawn]

ENUM pInfo

[pawn]enum xPlayerInfo
{
   pLozinka[ LOZINKA_STRING ],
   pPol,
   pGodine,
   pNovac,
   pLevel,
   pRespekt,
   pPoboljsanja,
   pPayDay,
   pAdmin,
   pSkin,
   pSpawn,
    pPocetniTut,
      pAdminVrsta,
   pGMVrsta,
   pStaffSlot,
    pBRacun,
    pPreostaloZaOtplatu,
    pIznosRate,
    pIznosKredita,
    pOnlineSati,
    pGM,
   pDrzava,
   pEmail[ 34 ],
   pLastLogin[ 64 ],
   xPromoter,
   bool:xImaBRacun,
   xPlatniRacun,
   pZlato,
   pSpawned,
   pBDays,
   pBMonths,
   pBYears,
   pRegistrovan,
   pVoziloID[ 4 ],
   pMutiran,
   pPromoter,
   pPojas,
   pNovacBanka,
   pPosao
}[/pawn]

public UcitajKorisnika
[pawn]public UcitajKorisnika( playerid, name[], value[] )
{
    INI_String( "Lozinka", PlayerInfo[ playerid ][ pLozinka ], LOZINKA_STRING );
   INI_Int( "Pol", PlayerInfo[ playerid ][ pPol ] );
   INI_Int( "Godine", PlayerInfo[ playerid ][ pGodine ] );
    INI_Int( "Novac", PlayerInfo[ playerid ][ pNovac ] );
   INI_Int( "Level", PlayerInfo[ playerid ][ pLevel ] );
   INI_Int( "Respekt", PlayerInfo[ playerid ][ pRespekt ] );
   INI_Int( "Poboljsanja", PlayerInfo[ playerid ][ pPoboljsanja ] );
   INI_Int( "PayDay", PlayerInfo[ playerid ][ pPayDay ] );
   INI_Int( "Admin", PlayerInfo[ playerid ][ pAdmin ] );
   INI_Int( "Skin", PlayerInfo[ playerid ][ pSkin ] );
   INI_Int( "Spawn", PlayerInfo[ playerid ][ pSpawn ] );
      INI_Int( "PocetniTut", PlayerInfo[ playerid ][ pPocetniTut ] );
      INI_Int( "AdminVrsta", PlayerInfo[ playerid ][ pAdminVrsta ] );
      INI_Int( "GMVrsta", PlayerInfo[ playerid ][ pGMVrsta ] );
      INI_Int( "StaffSlot", PlayerInfo[ playerid ][ pStaffSlot ] );
      INI_Int( "BRacun", PlayerInfo[ playerid ][ pBRacun ] );
      INI_Int( "PreostaloZaOtplatu", PlayerInfo[ playerid ][ pPreostaloZaOtplatu ] );
      INI_Int( "IznosRate", PlayerInfo[ playerid ][ pIznosRate ] );
      INI_Int( "IznosKredita", PlayerInfo[ playerid ][ pIznosKredita ] );
      INI_Int( "OnlineSati", PlayerInfo[ playerid ][ pOnlineSati ] );
      INI_Int( "GameMaster", PlayerInfo[ playerid ][ pGM ] );
   INI_Int( "Drzava", PlayerInfo[ playerid ][ pDrzava ] );
   INI_String( "Email", PlayerInfo[ playerid ][ pEmail ], 34 );
    INI_String( "LastLogin", PlayerInfo[ playerid ][ pLastLogin ], 64 );
   INI_Int( "Zlato", PlayerInfo[ playerid ][ pZlato ] );
   INI_Int( "BanDays", PlayerInfo[ playerid ][ pBDays ] );
   INI_Int( "BanMonths", PlayerInfo[ playerid ][ pBMonths ] );
   INI_Int( "BanYear", PlayerInfo[ playerid ][ pBYears ] );
   INI_Int( "Registrovan", PlayerInfo[ playerid ][ pRegistrovan ] );
   INI_Int( "VoziloID1", PlayerInfo[ playerid ][ pVoziloID ][ 0 ] );
   INI_Int( "VoziloID2", PlayerInfo[ playerid ][ pVoziloID ][ 1 ] );
   INI_Int( "VoziloID3", PlayerInfo[ playerid ][ pVoziloID ][ 2 ] );
   INI_Int( "VoziloID4", PlayerInfo[ playerid ][ pVoziloID ][ 3 ] );
   INI_Int( "Mutiran", PlayerInfo[ playerid ][ pMutiran ] );
   INI_Int( "Promoter", PlayerInfo[ playerid ][ pPromoter ] );
   INI_Int( "NovacBanka", PlayerInfo[ playerid ][pNovacBanka] );
   INI_Int( "Posao", PlayerInfo[ playerid ][ pPosao] );
   return 1;
}[/pawn]

I to je to ;)

Jel imas kod logina - INI_ParseFile(Korisnici(playerid), "UcitajKorisnika", .bExtra = true, .extra = playerid);


Citat: Frank Smith poslato April 26, 2017, 19:27:01 POSLE PODNE
@RESPOSNE
Da imam ...

Posalji mi pod OnPlayerConnect(playerid) ucitavanje sa login ili register..

@RESPOSNE
Evo ti cijeli OnPlayerConnect

[pawn]public OnPlayerConnect( playerid )
{

   BelaBojaIgraca( playerid );
   SetPlayerVirtualWorld( playerid, ( playerid + 2000 ) );

   b_SetPlayerHealth( playerid, 99.0 );

   ServerInfo[ BrojPosetaServeru ]++;

   SCM( playerid, -1, ""col_narandzasta"Ucitavanje..." );

   ResetujIgraca( playerid );
   CreatePlayerTextDraws( playerid );
   
   if( fexist( Korisnici( playerid ) ) )
   {
       INI_ParseFile( Korisnici( playerid ), "UcitajKorisnika", .bExtra = true, .extra = playerid);

      if( PlayerInfo[ playerid ][ pBDays ] > 0)
      {
          new year,day,month;
         getdate( year, month, day );

         if( PlayerInfo[ playerid ][ pBDays ] > day && PlayerInfo[ playerid ][ pBMonths ] >= month && PlayerInfo[ playerid ][ pBYears ] >= year )
         {
            SCM( playerid, CRVENA, "__________________BAN________________");
            SendClientMessageEx( playerid, BELA, ""col_bela"Banovan si sa ovog servera do "col_server"%d/%d/%d"col_bela".", PlayerInfo[ playerid ][ pBDays ], PlayerInfo[ playerid ][ pBMonths ], PlayerInfo[ playerid ][ pBYears ] );
            SCM( playerid, BELA, ""col_bela"Ukoliko mislis da je ovo greska ili da nisi kriv.");
            SCM( playerid, BELA, ""col_bela"Zahtev za unban mozes traziti na "col_server"forumu."col_bela"");
            SCM( playerid, BELA, ""col_bela"Forum: "col_server"www.uskoro.com");
            SCM( playerid, CRVENA, "_____________________________________");
            Kickovanje( playerid, " ");
            return 1;
         }
      }

        if( PlayerInfo[ playerid ][ pBDays ] > 0)
      {
            new year,day,month;
         getdate( year, month, day );
            if( PlayerInfo[ playerid ][ pBDays ] < day )
         {
            PlayerInfo[ playerid ][ pBDays ] = 0;
         }
      }
      
      if( PlayerInfo[ playerid ][ pRegistrovan ] == 1 )
      {
          SetTimerEx( "Login", 100, false, "d", playerid );
      }
      else
       {
          if( ServerInfo[ Registracija ] == false )
         {
              SendClientMessage( playerid, CRVENA, "REGISTRACIJA JE TRENUTNO ONEMOGUCENA." );
              SendClientMessage( playerid, CRVENA, "BS ADMIN TEAM." );
              SetTimerEx( "KickIgraca", 150, false, "d", playerid );
              return 1;
          }

         SetTimerEx( "Register", 100, false, "d", playerid );
      }
   }
   else
   {
       if( !IsValidRoleplayName( GetName( playerid ) ) )
      {
         SendClientMessage( playerid, CRVENA, "Dobili ste kick zbog krivo formatiranog imena!" );
         SendClientMessage( playerid, CRVENA, "Vase ime mora biti u formatu Ime_Prezime!" );
         SetTimerEx( "KickIgraca", 150, false, "d", playerid );
         return 1;
      }

       if( ServerInfo[ Registracija ] == false )
      {
         SendClientMessage( playerid, CRVENA, "REGISTRACIJA JE TRENUTNO ONEMOGUCENA." );
         SendClientMessage( playerid, CRVENA, "BS ADMIN TEAM." );
         SetTimerEx( "KickIgraca", 150, false, "d", playerid );
            return 1;
       }

       SetTimerEx( "Register", 100, false, "d", playerid );
   }
   return 1;
}[/pawn]
Poslednja Izmena: April 26, 2017, 19:33:00 POSLE PODNE od Frank Smith

Citat: Frank Smith poslato April 26, 2017, 19:31:01 POSLE PODNE
@RESPOSNE
Evo ti cijeli OnPlayerConnect

[pawn]public OnPlayerConnect( playerid )
{

   BelaBojaIgraca( playerid );
   SetPlayerVirtualWorld( playerid, ( playerid + 2000 ) );

   b_SetPlayerHealth( playerid, 99.0 );

   ServerInfo[ BrojPosetaServeru ]++;

   SCM( playerid, -1, ""col_narandzasta"Ucitavanje..." );

   ResetujIgraca( playerid );
   CreatePlayerTextDraws( playerid );
   
   if( fexist( Korisnici( playerid ) ) )
   {
       INI_ParseFile( Korisnici( playerid ), "UcitajKorisnika", .bExtra = true, .extra = playerid);

      if( PlayerInfo[ playerid ][ pBDays ] > 0)
      {
          new year,day,month;
         getdate( year, month, day );

         if( PlayerInfo[ playerid ][ pBDays ] > day && PlayerInfo[ playerid ][ pBMonths ] >= month && PlayerInfo[ playerid ][ pBYears ] >= year )
         {
            SCM( playerid, CRVENA, "__________________BAN________________");
            SendClientMessageEx( playerid, BELA, ""col_bela"Banovan si sa ovog servera do "col_server"%d/%d/%d"col_bela".", PlayerInfo[ playerid ][ pBDays ], PlayerInfo[ playerid ][ pBMonths ], PlayerInfo[ playerid ][ pBYears ] );
            SCM( playerid, BELA, ""col_bela"Ukoliko mislis da je ovo greska ili da nisi kriv.");
            SCM( playerid, BELA, ""col_bela"Zahtev za unban mozes traziti na "col_server"forumu."col_bela"");
            SCM( playerid, BELA, ""col_bela"Forum: "col_server"www.uskoro.com");
            SCM( playerid, CRVENA, "_____________________________________");
            Kickovanje( playerid, " ");
            return 1;
         }
      }

        if( PlayerInfo[ playerid ][ pBDays ] > 0)
      {
            new year,day,month;
         getdate( year, month, day );
            if( PlayerInfo[ playerid ][ pBDays ] < day )
         {
            PlayerInfo[ playerid ][ pBDays ] = 0;
         }
      }
      
      if( PlayerInfo[ playerid ][ pRegistrovan ] == 1 )
      {
          SetTimerEx( "Login", 100, false, "d", playerid );
      }
      else
       {
          if( ServerInfo[ Registracija ] == false )
         {
              SendClientMessage( playerid, CRVENA, "REGISTRACIJA JE TRENUTNO ONEMOGUCENA." );
              SendClientMessage( playerid, CRVENA, "BS ADMIN TEAM." );
              SetTimerEx( "KickIgraca", 150, false, "d", playerid );
              return 1;
          }

         SetTimerEx( "Register", 100, false, "d", playerid );
      }
   }
   else
   {
       if( !IsValidRoleplayName( GetName( playerid ) ) )
      {
         SendClientMessage( playerid, CRVENA, "Dobili ste kick zbog krivo formatiranog imena!" );
         SendClientMessage( playerid, CRVENA, "Vase ime mora biti u formatu Ime_Prezime!" );
         SetTimerEx( "KickIgraca", 150, false, "d", playerid );
         return 1;
      }

       if( ServerInfo[ Registracija ] == false )
      {
         SendClientMessage( playerid, CRVENA, "REGISTRACIJA JE TRENUTNO ONEMOGUCENA." );
         SendClientMessage( playerid, CRVENA, "BS ADMIN TEAM." );
         SetTimerEx( "KickIgraca", 150, false, "d", playerid );
            return 1;
       }

       SetTimerEx( "Register", 100, false, "d", playerid );
   }
   return 1;
}[/pawn]

Ovo si skinuo moj mod sto sam radio za pocetnike Ime Servera RolePlay..

Dokaz: http://balkan-samp.com/forum/index.php?topic=109458.0

@RESPOSNE
Slusaj ovako, ako zelis da pomognes pomozi, ako ne zelis brate nemoj ni da odgovaras na temu, Moderatori molim Vas rijesite ovo ... I da je tvoj mod, a koliko vidim tvoj mod je cista kopija SM, samo neke pocetnicke stvari dok ja na ovom modu imam:
Organizacije
Posao Rudar
System Zlatare + Mapa
System Banke + Mapa
Sistem Hangara
Sistem pojasa
Admin System
Reg/Log System
Pitaj System
System paljenja/gasenja motora vozila
House System itd itd ... Istina je kopirao sam pocetni tut i reg/log system sa San Marino moda, samo da bih lakse testirao mod, ali cu u buducnosti napraviti i svoj .... Ako hoces pomozi ako ne, onda nemoj ni komentarisati