//=-=-=-=-=-Auto Login=-=-=-=-=-=-=- #define AUTO_LOGIN_ENABLED true |
#if AUTO_LOGIN_ENABLED new tmp[50],tmp2[256]; GetPlayerIp(playerid,tmp,50); tmp2 = dini_Get(connect,"IP"); if(!strcmp(tmp,tmp2,false)) { format(string, sizeof(string), "Bienvenido %s ! Usted ha sido logeado automaticamente. ", playrname); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); gPlayerLogged[playerid] = 0; new string2[64]; new playername2[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); format(string2, sizeof(string2), "V-Admin/Users/%s.ini", playername2); new File: UserFile = fopen(string2, io_read); if ( UserFile ) { |
//=-=-=-=-=-Auto Login=-=-=-=-=-=-=- #define// AUTO_LOGIN_ENABLED true |
Originally Posted by AguzZD
esto?
Quote:
|
//#define AUTO_LOGIN_ENABLED true
//cambia esto
#define AUTO_LOGIN_ENABLED true
//por esto
#define AUTO_LOGIN_ENABLED false
//#define AUTO_LOGIN_ENABLED
#if defined AUTO_LOGIN_ENABLED
new tmp[50],tmp2[256]; GetPlayerIp(playerid,tmp,50); tmp2 = dini_Get(connect,"IP");
if(!strcmp(tmp,tmp2,false))
{
format(string, sizeof(string), "Bienvenido %s ! Usted ha sido logeado automaticamente. ", playrname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
gPlayerLogged[playerid] = 0;
new string2[64];
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
format(string2, sizeof(string2), "V-Admin/Users/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{