• Страница 1 из 2
  • 1
  • 2
  • »
Модератор форума: dr40  
Регистрация/логин окно
JIN7921Дата: Пятница, 04.03.2011, 22:21 | Сообщение # 1
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
как зделать чтоб при неправельном вводе пароля окно непропадало?


[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
valychДата: Суббота, 05.03.2011, 09:50 | Сообщение # 2
.::Offline::.
Гангстер
Сообщений: 171
[ 205 ]
Награды: 15

Статус отсутствует
JIN7921, кинь public OnPlayerLogin


Мои друзья на ST: [Tre9, UDAV, ZioHik,Seva008]
-=Чтоб добавится ко мне в друзья дайте мне + с сообщение "Хочу в друзья"=-

-=Те кто будут у меня в друзьях, тем будет делаться скидка на платные работы=-

Мои разработки:
[FS]Transmission 70%
[INC]Anti-Fly 50%
[INC]Anti-Cheat 95%

[FAQ]Ответы на часто задаваемые вопросы
 
JIN7921Дата: Суббота, 05.03.2011, 13:47 | Сообщение # 3
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
Code
public OnPlayerLogin(playerid,const string[])
{
  if (gdebug >= 1){printf("DEBUG OnPlayerLogin(%d) (%s)", playerid,string);}
  new string2[64];
  new playername2[MAX_PLAYER_NAME];
  //new password[64];
  new tmp2[256];
  /*
  if (gPlayerSpawned[playerid] == 1)
  {
   SetPlayerHealth(playerid,0.0);
  }
  */
  GetPlayerName(playerid, playername2, sizeof(playername2));
  format(string2, sizeof(string2), "%s.cer", playername2);
  new File: file = fopen(string2, io_read);
  if (file)
  {
   new valtmp[128];
   fread(file, valtmp);strmid(PlayerInfo[playerid][pPassword], valtmp, 0, strlen(valtmp)-1, 255);
   if (gdebug){printf("DEBUG password from file= (%s) pass enterd =  (%s)",PlayerInfo[playerid][pPassword] ,string );}
   //fread(file, valtmp);strmid(password, valtmp, 0, strlen(string), 255);
   if ((strcmp(PlayerInfo[playerid][pPassword], string, true, strlen(valtmp)-1) == 0))// && (strlen(string) == strlen(password)))
   {
    fread(file, valtmp);PlayerInfo[playerid][pCash] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAccount] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAdmin] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pLevel] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pExp] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][gPupgrade] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pKills] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pCB] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pHW] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pSR] = strval(valtmp);DelPrint(valtmp);
    if(PlayerInfo[playerid][pKills] < 0){PlayerInfo[playerid][pKills] = 0;}//patch
    if(PlayerInfo[playerid][pCB] < 0){PlayerInfo[playerid][pCB] = 0;}//patch
    if(PlayerInfo[playerid][pHW] < 0){PlayerInfo[playerid][pHW] = 0;}//patch
    if(PlayerInfo[playerid][pSR] < 0){PlayerInfo[playerid][pSR] = 0;}//patch
    fread(file, valtmp);PlayerInfo[playerid][pWA] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pPEN] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pGun1] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pGun2] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pGun3] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pGun4] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pGun5] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pGun6] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAmmo1] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAmmo2] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAmmo3] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAmmo4] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAmmo5] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pAmmo6] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pSHealth] = floatstr(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pHealth] = floatstr(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pPos_x] = floatstr(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pPos_y] = floatstr(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pPos_z] = floatstr(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pInt] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pLocal] = strval(valtmp);DelPrint(valtmp);
    if(PlayerInfo[playerid][pModel] == 264){fread(file, valtmp);PlayerInfo[playerid][pTeam] = strval(valtmp);DelPrint(valtmp);}else{fread(file, valtmp);}
    if(PlayerInfo[playerid][pModel] == 264){fread(file, valtmp);PlayerInfo[playerid][pModel] = strval(valtmp);DelPrint(valtmp);}else{fread(file, valtmp);}
    fread(file, valtmp);PlayerInfo[playerid][pPnumber] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pPhousekey] = strval(valtmp);DelPrint(valtmp);
    fread(file, valtmp);PlayerInfo[playerid][pPbiskey] = strval(valtmp);DelPrint(valtmp);
    fclose(file);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);

    //if (gdebug){printf("DEBUG phonenumber = %d",pnumber);}
    if(PlayerInfo[playerid][pLevel] == -999) //autoban
    {
     Ban(playerid);
    }
    format(string2, sizeof(string2), "СЕРВЕР: Добро пожаловать, %s",playername2);
    SendClientMessageRus(playerid, COLOR_WHITE,string2);
    SetPlayerWeapons(playerid);
    printf("%s has logged in",playername2);
    if (PlayerInfo[playerid][pAdmin] > 0)
    {
     format(string2, sizeof(string2), "СЕРВЕР: Вы авторизовались как админ %d уровня",PlayerInfo[playerid][pAdmin]);
     SendClientMessageRus(playerid, COLOR_WHITE,string2);
    }
    SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
    if(gTeam[playerid] == 0)
    {
     gTeam[playerid] = 3;
    }
    else
    {
     gTeam[playerid] = PlayerInfo[playerid][pTeam];
    }
    gPlayerLogged[playerid] = 1;
    if(accountplay)
    {
     gPlayerSpawned[playerid] = 0;
    }
    SpawnPlayer(playerid);
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~   %s", playername2);
    DateProp(playerid);
    GameTextForPlayerRus(playerid, tmp2, 5000, 1);
    SendClientMessageRus(playerid, COLOR_YELLOW, motd);
    return 1;
   }
   else
   {
    SendClientMessageRus(playerid, COLOR_WHITE, "СЕРВЕР: Неверный пароль");
    printf("%s is hacking a password",playername2);
    fclose(file);
    return 1;
   }
//  return 1;
  }
  else
  {
   SendClientMessageRus(playerid, COLOR_WHITE, "СЕРВЕР: Вы еще не зарегистрированы, введите /regnick <password>");
  }
  return 1;
}


[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
A1exДата: Суббота, 05.03.2011, 14:08 | Сообщение # 4
.::Offline::.
Новичок
Сообщений: 73
[ 67 ]
Награды: 8

Статус отсутствует
Чтобы окно не пропадало, поставь после строк
Code

...
  else
    {
     SendClientMessageRus(playerid, COLOR_WHITE, "СЕРВЕР: Неверный пароль");
     printf("%s is hacking a password",playername2);
     fclose(file);
...

функцию, которая отвечает за появление окна.
(Скорее всего это ShowPlayerDialog)
 
valychДата: Суббота, 05.03.2011, 14:34 | Сообщение # 5
.::Offline::.
Гангстер
Сообщений: 171
[ 205 ]
Награды: 15

Статус отсутствует
Вот попробуй:
Code
public OnPlayerLogin(playerid,const string[])
{
   if (gdebug >= 1){printf("DEBUG OnPlayerLogin(%d) (%s)", playerid,string);}
   new string2[64];
   new playername2[MAX_PLAYER_NAME];
   //new password[64];
   new tmp2[256];
   /*
   if (gPlayerSpawned[playerid] == 1)
   {
    SetPlayerHealth(playerid,0.0);
   }
   */
   GetPlayerName(playerid, playername2, sizeof(playername2));
   format(string2, sizeof(string2), "%s.cer", playername2);
   new File: file = fopen(string2, io_read);
   if (file)
   {
    new valtmp[128];
    fread(file, valtmp);strmid(PlayerInfo[playerid][pPassword], valtmp, 0, strlen(valtmp)-1, 255);
    if (gdebug){printf("DEBUG password from file= (%s) pass enterd =  (%s)",PlayerInfo[playerid][pPassword] ,string );}
    //fread(file, valtmp);strmid(password, valtmp, 0, strlen(string), 255);
    if ((strcmp(PlayerInfo[playerid][pPassword], string, true, strlen(valtmp)-1) == 0))// && (strlen(string) == strlen(password)))
    {
     fread(file, valtmp);PlayerInfo[playerid][pCash] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAccount] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAdmin] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pLevel] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pExp] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][gPupgrade] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pKills] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pCB] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pHW] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pSR] = strval(valtmp);DelPrint(valtmp);
     if(PlayerInfo[playerid][pKills] < 0){PlayerInfo[playerid][pKills] = 0;}//patch
     if(PlayerInfo[playerid][pCB] < 0){PlayerInfo[playerid][pCB] = 0;}//patch
     if(PlayerInfo[playerid][pHW] < 0){PlayerInfo[playerid][pHW] = 0;}//patch
     if(PlayerInfo[playerid][pSR] < 0){PlayerInfo[playerid][pSR] = 0;}//patch
     fread(file, valtmp);PlayerInfo[playerid][pWA] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pPEN] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pGun1] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pGun2] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pGun3] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pGun4] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pGun5] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pGun6] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAmmo1] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAmmo2] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAmmo3] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAmmo4] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAmmo5] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pAmmo6] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pSHealth] = floatstr(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pHealth] = floatstr(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pPos_x] = floatstr(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pPos_y] = floatstr(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pPos_z] = floatstr(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pInt] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pLocal] = strval(valtmp);DelPrint(valtmp);
     if(PlayerInfo[playerid][pModel] == 264){fread(file, valtmp);PlayerInfo[playerid][pTeam] = strval(valtmp);DelPrint(valtmp);}else{fread(file, valtmp);}
     if(PlayerInfo[playerid][pModel] == 264){fread(file, valtmp);PlayerInfo[playerid][pModel] = strval(valtmp);DelPrint(valtmp);}else{fread(file, valtmp);}
     fread(file, valtmp);PlayerInfo[playerid][pPnumber] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pPhousekey] = strval(valtmp);DelPrint(valtmp);
     fread(file, valtmp);PlayerInfo[playerid][pPbiskey] = strval(valtmp);DelPrint(valtmp);
     fclose(file);
     ResetPlayerMoney(playerid);
     GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);

     //if (gdebug){printf("DEBUG phonenumber = %d",pnumber);}
     if(PlayerInfo[playerid][pLevel] == -999) //autoban
     {
      Ban(playerid);
     }
     format(string2, sizeof(string2), "СЕРВЕР: Добро пожаловать, %s",playername2);
     SendClientMessageRus(playerid, COLOR_WHITE,string2);
     SetPlayerWeapons(playerid);
     printf("%s has logged in",playername2);
     if (PlayerInfo[playerid][pAdmin] > 0)
     {
      format(string2, sizeof(string2), "СЕРВЕР: Вы авторизовались как админ %d уровня",PlayerInfo[playerid][pAdmin]);
      SendClientMessageRus(playerid, COLOR_WHITE,string2);
     }
     SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
     if(gTeam[playerid] == 0)
     {
      gTeam[playerid] = 3;
     }
     else
     {
      gTeam[playerid] = PlayerInfo[playerid][pTeam];
     }
     gPlayerLogged[playerid] = 1;
     if(accountplay)
     {
      gPlayerSpawned[playerid] = 0;
     }
     SpawnPlayer(playerid);
     GetPlayerName(playerid, playername2, sizeof(playername2));
     format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~   %s", playername2);
     DateProp(playerid);
     GameTextForPlayerRus(playerid, tmp2, 5000, 1);
     SendClientMessageRus(playerid, COLOR_YELLOW, motd);
     return 1;
    }
    else
    {
     SendClientMessageRus(playerid, COLOR_WHITE, "СЕРВЕР: Неверный пароль");
     printf("%s is hacking a password",playername2);
     fclose(file);
     new loginmsg[256+1];
  format(loginmsg,256,"Этот ник зарегистрирован.\n\n\nПожалуйста авторизируйтесь.");
  ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Авторизация",loginmsg,"Вход","Выход");// тут всё на своё поминяй
     return 1;
    }
//  return 1;
   }
   else
   {
    SendClientMessageRus(playerid, COLOR_WHITE, "СЕРВЕР: Вы еще не зарегистрированы, введите /regnick <password>");
   }
   return 1;
}


Мои друзья на ST: [Tre9, UDAV, ZioHik,Seva008]
-=Чтоб добавится ко мне в друзья дайте мне + с сообщение "Хочу в друзья"=-

-=Те кто будут у меня в друзьях, тем будет делаться скидка на платные работы=-

Мои разработки:
[FS]Transmission 70%
[INC]Anti-Fly 50%
[INC]Anti-Cheat 95%

[FAQ]Ответы на часто задаваемые вопросы
 
JIN7921Дата: Суббота, 05.03.2011, 17:55 | Сообщение # 6
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
valych, невышло , окно хоть и неисчезло , но потом окно исчезает после второго раза и нелогинет


[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
A1exДата: Суббота, 05.03.2011, 21:15 | Сообщение # 7
.::Offline::.
Новичок
Сообщений: 73
[ 67 ]
Награды: 8

Статус отсутствует
Quote (JIN7921)
невышло , окно хоть и неисчезло , но потом окно исчезает после второго раза и нелогинет

А ты изменял строки,где написано:
Code
...,"Авторизация",loginmsg,"Вход","Выход");// тут всё на своё поминяй

?
 
JIN7921Дата: Суббота, 05.03.2011, 21:20 | Сообщение # 8
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
и смысл менять ? изменится просто надписи и всё


[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
A1exДата: Суббота, 05.03.2011, 21:24 | Сообщение # 9
.::Offline::.
Новичок
Сообщений: 73
[ 67 ]
Награды: 8

Статус отсутствует
Вот по-этому и не логинит, найди в пабликах OnPlayerSpawn и OnPlayerConnect строки начинающиеся с ShowPlayerDialog и кинь их сюда
 
JIN7921Дата: Воскресенье, 06.03.2011, 11:59 | Сообщение # 10
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
OnPlayerConnect
я выше кидал
а OnPlayerSpawn
Code
public OnPlayerSpawn(playerid)
{
  for(new h = 0; h < sizeof(HouseInfo); h++)
  {
  if(HouseInfo[h][hOwned] == 0)
  {
  SetPlayerMapIcon( playerid, h, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, 0 );
  }
  if(HouseInfo[h][hOwned] == 1)
  {
  SetPlayerMapIcon( playerid, h, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 32, 0 );
  }
  }
  for(new h = 0; h < sizeof(BizzInfo); h++)
  {
  SetPlayerMapIcon( playerid, h, BizzInfo[h][bEntrancex], BizzInfo[h][bEntrancey], BizzInfo[h][bEntrancez], 52, 0 );
  }
  if (gdebug >=1){printf("OnPlayerSpawn Playerid:%d", playerid);}
  if (teamcarlock)
  {
   TeamLockDoors(playerid);
  }
  InitLockDoors(playerid);
     if (gdebug >=1){printf("doors locked", playerid);}
  if(accountplay)
  {
   if (gdebug >=1){printf("accountplay");}
  }
  if (gPlayerSpawned[playerid] == 0)
  {
   gTeam[playerid] = PlayerInfo[playerid][pTeam];
   if (gTeam[playerid] == 2 && forceteam && CopCheck(playerid))
   {
    gTeam[playerid] = 3;
    PlayerInfo[playerid][pTeam] = 3;
    SetPlayerRandomSpawn(playerid);
    SendClientMessageRus(playerid, COLOR_YELLOW, "СЕРВЕР: Вы не можете быть копом.");
   }
   /*
   if(gTeam[playerid] == 2 && PlayerInfo[playerid][pLevel] < 3)
   {
    gTeam[playerid] = 3;
    PlayerInfo[playerid][pTeam] = 3;
    SetPlayerRandomSpawn(playerid);
    SendClientMessageRus(playerid, COLOR_YELLOW, "SERVER: You must be level 3 to join the cops.");
   }
   */
   else if (gTeam[playerid] == 1 && forceteam && MedCheck(playerid))
   {
    gTeam[playerid] = 3;
    PlayerInfo[playerid][pTeam] = 3;
    SetPlayerRandomSpawn(playerid);
    SendClientMessageRus(playerid, COLOR_YELLOW, "СЕРВЕР: Вы не можете быть врачем.");
   }
   else if (gTeam[playerid] == 4) //medic / criminal reset team
   {
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
   }
   /*
   if (FirstSpawn[playerid] == 0)
   {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
    printf("PlayerInfo[playerid][pInt]= %d",PlayerInfo[playerid][pInt]);
    SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
    gPlayerSpawned[playerid] = 1;
    FirstSpawn[playerid] = 1;
    print("insidespawn or firstsawpn");
    return 1;
   }
   */
   else { SetPlayerRandomSpawn(playerid); }
   if (gdebug){printf("DEBUG id = %d gTeam = %d",playerid,gTeam[playerid]);}
   //SetPlayerPos(playerid, 1360.0217,2565.6328,10.8265);///badspawn
   //SetPlayerWorldBounds(playerid,3500.00,66.67,-653.33,-2806.67);
   /*
   switch (MissionActive)
   {
    case 1://Cashbox not picked up
    {
     if ((gTeam[playerid]) == 1)
     {
      SendClientMessageRus(playerid, COLOR_YELLOW, objstore);
      gPlayerCheckpointStatus[playerid] = CHECKPOINT_PICKUP;
     }
     else if (gTeam[playerid] == 2)
     {
      SendClientMessageRus(playerid, TEAM_BLUE_COLOR, cbjstore);
     }
     SetPlayerCheckpoint(playerid,cwx, cwy, cwz, 1.0);
    }
    case 2://Cashbox picked up firsttime
    {
     if ((gTeam[playerid]) == 1)
     {
      SendClientMessageRus(playerid, COLOR_YELLOW, objstore);
      gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
     }
     else if (gTeam[playerid] == 2)
     {
      SendClientMessageRus(playerid, TEAM_BLUE_COLOR, cbjstore);
     }
     SetPlayerCheckpoint(playerid,cwx, cwy, cwz, 1.0);
    }
    case 3://Cashbox was dropped
    {

     SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 1.0);
     gPlayerCheckpointStatus[playerid] = CHECKPOINT_PICKUP;
     return 1;
    }
    case 5://racewait
    {
     if (gdebug){print("DEBUG Checkp5");}
     if ((gTeam[playerid]) == 1)
     {
      gPlayerCheckpointStatus[playerid] = CHECKPOINT_SR1START;
     }
      SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 8.0);
     return 1;
    }
    case 6://racewait
    {
     if (gdebug){print("DEBUG Checkp5");}
     if ((gTeam[playerid]) == 1 || (gTeam[playerid]) == 3)
     {
      gPlayerCheckpointStatus[playerid] = CHECKPOINT_SRA;
     }
      SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 8.0);
     return 1;
    }
    case 7://progress
    {
     if (gdebug){print("DEBUG Checkp5");}
     if ((gTeam[playerid]) == 1)
     {
      gPlayerCheckpointStatus[playerid] = CHECKPOINT_SRA;
      SetPlayerCheckpoint(playerid,cwx,cwy,cwz, 8.0);
     }
     if ((gTeam[playerid]) == 2 )
     {
      gPlayerCheckpointStatus[playerid] = CHECKPOINT_SR1START;
      SetPlayerCheckpoint(playerid,scx,scy,scz, 8.0);
     }
     return 1;
    }
    case 9://Car is waiting first occupent
    {
     if (gTeam[playerid] == 1)
     {
      SendClientMessageRus(playerid, COLOR_YELLOW, objstore);
      SetVehicleParamsForPlayerEx(stealcar,playerid,1,0);
     }
     else if (gTeam[playerid] == 2)
     {
     SendClientMessageRus(playerid, TEAM_BLUE_COLOR, cbjstore);
     SetVehicleParamsForPlayerEx(stealcar,playerid,1,1);
     }
    }
    case 10://Car has been takin by Criminal
    {
     if (gTeam[playerid] == 1)
     {
      SendClientMessageRus(playerid, COLOR_YELLOW, objstore);
     }
     else if (gTeam[playerid] == 2)
     {
      SendClientMessageRus(playerid, TEAM_BLUE_COLOR, cbjstore);
     }
     SetPlayerCheckpoint(playerid, cwx, cwy, cwz, 16.0);
     SetVehicleParamsForPlayerEx(stealcar,playerid,1,0);
    }
    case 101://Car is empty but was takin
    {
     SetVehicleParamsForPlayerEx(stealcar,playerid,1,0);
    }
    default:
    {

    }
   }
   */

  }
  new Float: lwx, Float:lwy, Float:lwz;
  GetPlayerPos(playerid, lwx, lwy, lwz);
  if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || IsPlayerInRangeOfPoint(playerid, 1000.0, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8
  {
   SetPlayerRandomSpawn(playerid);
   print("overhight or ob");
  }
  //SetPlayerInterior(playerid,0);
  if(dmweapon > 0 && gPlayerFighter[playerid] != 0)
  {
   GivePlayerWeapon(playerid, dmweapon, 999);
   if(PlayerInfo[playerid][pSHealth] < 50.0)
   {
    SetPlayerHealth(playerid, 100.0);
   }
   else
   {
    SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]);
   }
  }
  else
  {
   SetPlayerWeapons(playerid);
   SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]);
  }
  TelePos[playerid][0] = 0.0;
  TelePos[playerid][1] = 0.0;
  gPlayerSpawned[playerid] = 1;
  SafeTime[playerid] = 60;
  //PlayerUpdate(playerid); //spawnsave
  return 1;
}

Добавлено (06.03.2011, 10:59)
---------------------------------------------
вот ShowPlayerDialog ненашол



[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
A1exДата: Воскресенье, 06.03.2011, 12:48 | Сообщение # 11
.::Offline::.
Новичок
Сообщений: 73
[ 67 ]
Награды: 8

Статус отсутствует
Quote (JIN7921)
OnPlayerConnect я выше кидал

ты кидал OnPlayerLogin, а нужно OnPlayerConnect
 
JIN7921Дата: Воскресенье, 06.03.2011, 12:50 | Сообщение # 12
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
Code
public OnPlayerConnect(playerid)
{

     new Text: gText;
  gText = TextDrawCreate(5.0, 1.0, " Our website: http://sr.ucoz.ua/");//431
  TextDrawUseBox(gText, true);
  TextDrawShowForPlayer(playerid, gText);

  if (gdebug >= 1){printf("DEBUG OnPlayerConnect(%d)", playerid);}
  gActivePlayers[playerid]++;
  numplayers++;
  new plname[MAX_PLAYER_NAME];
  new string[MAX_PLAYER_NAME];
  //TelePos[playerid][0] = 0;
  //TelePos[playerid][1] = 0;
  //TelePos[playerid][2] = 0;
  SafeTime[playerid] = 60;
  BetRace[playerid][0] = -1;
  BetRace[playerid][1] = 0;
  BetDm[playerid][0] = -1;
  BetDm[playerid][1] = 0;
  HidePM[playerid] = 0;
  gPlayerFighter[playerid] = 0;
  DmScore[playerid] = 0;
  Mobile[playerid] = -1;
  Spectate[playerid] = -1;
  Unspec[playerid][sLocal] = -1;
     gSkyDive[playerid] = 0;
  TVMode[playerid] = 0;
     gLastCar[playerid] = 0;
     FirstSpawn[playerid] = 0;
  gPlayerLapStatus[playerid] = 0;
  gOoc[playerid] = 0;
  BigEar[playerid] = 0;
  FlashTime[playerid] = 0;
  gDice[playerid] = 0;
  gSpeedo[playerid] = 0;
  gPlayerLogged[playerid] = 0;
  gPlayerAccount[playerid] = 0;
  gPlayerSpawned[playerid] = 0;
  LapCount[playerid] = 0;
  Mute[playerid] = 0;
  StartTime[playerid] = 0;
  gRaceGuy[playerid] = 0;
  Contract[playerid] = 0;
  gPlayerMission[playerid] = 0;
  PlayerInfo[playerid][pCash] = dollah;
  KickVote[playerid] = 0;
  VoteKick[playerid] = 0;
  LastVote[playerid] = -1;
  HireCar[playerid] = -1;
  Hidden[playerid] = 0;
  Locator[playerid] = 0;
  PLicence[playerid] = 0;
  gPhoneBook[playerid] = 0;
  //PlayerPos[playerid][3] = 1.0;
  //PlayerPos[playerid][4] = 1.0;
  //PlayerPos[playerid][5] = 1.0;
  GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  PlayerInfo[playerid][pAccount] = 0;
  PlayerInfo[playerid][pAdmin] = 0;
  PlayerInfo[playerid][pLevel] = 1;
  PlayerInfo[playerid][pExp] = 0;
  PlayerInfo[playerid][gPupgrade] = 0;
  PlayerInfo[playerid][pKills] = 0;
  PlayerInfo[playerid][pCB] = 0;
  PlayerInfo[playerid][pHW] = 0;
  PlayerInfo[playerid][pSR] = 0;
  PlayerInfo[playerid][pWA] = 0;
  PlayerInfo[playerid][pPEN] = 0;
  PlayerInfo[playerid][pGun1] = 0;
  PlayerInfo[playerid][pGun2] = 0;
  PlayerInfo[playerid][pGun3] = 0;
  PlayerInfo[playerid][pGun4] = 0;
  PlayerInfo[playerid][pGun5] = 0;
  PlayerInfo[playerid][pGun6] = 0;
  PlayerInfo[playerid][pAmmo1] = 200;
  PlayerInfo[playerid][pAmmo2] = 8;
  PlayerInfo[playerid][pAmmo3] = 30;
  PlayerInfo[playerid][pAmmo4] = 30;
  PlayerInfo[playerid][pAmmo5] = 10;
  PlayerInfo[playerid][pAmmo6] = 10;
  PlayerInfo[playerid][pSHealth] = 0.0;
  PlayerInfo[playerid][pHealth] = 50.0;
  PlayerInfo[playerid][pPos_x] = 2246.6;
  PlayerInfo[playerid][pPos_y] = -1161.9;
  PlayerInfo[playerid][pPos_z] = 1029.7;
  PlayerInfo[playerid][pInt] = 15;
  PlayerInfo[playerid][pLocal] = -1;
  PlayerInfo[playerid][pTeam] = 1;
  PlayerInfo[playerid][pModel] = 264;
  new randphone = 1000 + random(8999);//minimum 1000  max 9999 //giving one at the start
  PlayerInfo[playerid][pPnumber] = randphone;
  PlayerInfo[playerid][pPhousekey] = -1;
  PlayerInfo[playerid][pPbiskey] = -1;
  ClearCrime(playerid);
  printf("Player Connecting as (%d)", playerid);
  SetPlayerColor(playerid,COLOR_GRAD2);
  GetPlayerName(playerid, plname, sizeof(plname));
  //SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2);
  //SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0);
  format(string, sizeof(string), "%s.cer", plname);
  new str1[256];
  GetPlayerName(playerid, plname, sizeof(plname));
  format(str1,sizeof(str1)," %s присоединился к нам!", plname);
  SendClientMessageToAll(COLOR_GREY, str1);
  SendDeathMessage(INVALID_PLAYER_ID,playerid,200);

     {//-------------------//
     SendClientMessage(playerid, 0xFF8282AA, "~~~~~~~~~~~~~~~~~Добро пожаловать на Al-Kaida Sa-Mp SeRvEr~~~~~~~~~~~~~~~~~~~~");
     SendClientMessage(playerid, 0xFF00FFAA, "Для помощи введите команду /help");
     SendClientMessage(playerid, 0xFF00FFAA, "Узнать админов онлайн введите /admins");
     SendClientMessage(playerid, 0xFF00FFAA, "Правила сервера по команде /rules");
     SendClientMessage(playerid, 0xFF00FFAA, "Для инфо своей своего уровня введите /level");
     SendClientMessage(playerid, 0xFF8282AA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
     }
  return 1;
}

А где ShowPlayerDialog найти?



[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
A1exДата: Воскресенье, 06.03.2011, 13:08 | Сообщение # 13
.::Offline::.
Новичок
Сообщений: 73
[ 67 ]
Награды: 8

Статус отсутствует
Странно, а когда у тебя окно появляется, прямо при подключении на сервер?

Добавлено (06.03.2011, 12:08)
---------------------------------------------
ShowPlayerDialog попробуй поискать во всем моде, если найдет - кинь строки

 
JIN7921Дата: Воскресенье, 06.03.2011, 15:24 | Сообщение # 14
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
Нет , когда скин помойму выбирать

Добавлено (06.03.2011, 14:24)
---------------------------------------------
отут есть вроде

Code
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
     new string[256];
     new tpass[256];
  if (dialogid == 777)
  {//-------------------------------------------------------------------------
   if (response)
   {//---------------------------------------------------------------------
    if (!strlen(inputtext))
    {//-----------------------------------------------------------------
     new loginmsg[256+1];
     format(loginmsg, 256, "\nПожалуйста введите свой пароль");
     ShowPlayerDialog(playerid, 777, DIALOG_STYLE_INPUT, "Регистрация", loginmsg, "Ok", "Отмена");
     return 1;
    }//-----------------------------------------------------------------
    if (strlen(inputtext) < 6)
    {//-----------------------------------------------------------------
           format(string, sizeof(string), "\nПароль не должен быть меньше 6 символов!");
           ShowPlayerDialog(playerid, 777, DIALOG_STYLE_INPUT, "Регистрация", string, "Ok", "Отмена");
     return 1;
    }//-----------------------------------------------------------------
    if (strlen(inputtext) > 20)
    {//-----------------------------------------------------------------
           format(string, sizeof(string), "\nПароль не должен быть больше 20 символов!");
           ShowPlayerDialog(playerid, 777, DIALOG_STYLE_INPUT, "Регистрация", string, "Ok", "Отмена");
     return 1;
    }//-----------------------------------------------------------------
    strmid(tpass, inputtext, 0, strlen(inputtext), 255);
    OnPlayerRegister(playerid, tpass);
    new loginmsg[256+1];
    format(loginmsg ,256, "Вы зарегистрировались \nПожалуйста введите свой пароль");
    ShowPlayerDialog(playerid, 888, DIALOG_STYLE_INPUT, "Авторизация/Вход в Игру", loginmsg, "Ok", "Отмена");
   }//---------------------------------------------------------------------
   else
   {//---------------------------------------------------------------------
    format(string, sizeof(string), "SERVER: %s был вышвырнут с сервера! Причина: Отказ от Регистрации! ", GetName(playerid));
    SendClientMessageToAll(0xFF0000FF, string);
          Kick(playerid);
   }//---------------------------------------------------------------------
  }//-------------------------------------------------------------------------
//------------------------------------------------------------------------------
  if (dialogid == 888)
  {//-------------------------------------------------------------------------
   if (response)
   {//---------------------------------------------------------------------
    if (!strlen(inputtext))
    {
     new loginmsg[256+1];
     format(loginmsg ,256, "Этот ник зарегистрирован \n Пожалуйста введите свой пароль");
     ShowPlayerDialog(playerid, 888, DIALOG_STYLE_INPUT, "Авторизация/Вход в Игру", loginmsg, "Ok", "Отмена");
     return 1;
    }
    strmid(tpass, inputtext, 0, strlen(inputtext), 255);
    OnPlayerLogin(playerid,tpass);
   }
   else
   {
    format(string, sizeof(string), "SERVER: %s был вышвырнут с сервера! Причина: Отказ от Авторизации! ", GetName(playerid));
    SendClientMessageToAll(0xFF0000FF, string);
          Kick(playerid);
   }
  }

  return 0;
}
  


[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
A1exДата: Воскресенье, 06.03.2011, 15:49 | Сообщение # 15
.::Offline::.
Новичок
Сообщений: 73
[ 67 ]
Награды: 8

Статус отсутствует
Вот
Code
public OnPlayerLogin(playerid,const string[])
{
    if (gdebug >= 1){printf("DEBUG OnPlayerLogin(%d) (%s)", playerid,string);}
    new string2[64];
    new playername2[MAX_PLAYER_NAME];
    //new password[64];
    new tmp2[256];
    /*
    if (gPlayerSpawned[playerid] == 1)
    {
     SetPlayerHealth(playerid,0.0);
    }
    */
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "%s.cer", playername2);
    new File: file = fopen(string2, io_read);
    if (file)
    {
     new valtmp[128];
     fread(file, valtmp);strmid(PlayerInfo[playerid][pPassword], valtmp, 0, strlen(valtmp)-1, 255);
     if (gdebug){printf("DEBUG password from file= (%s) pass enterd =  (%s)",PlayerInfo[playerid][pPassword] ,string );}
     //fread(file, valtmp);strmid(password, valtmp, 0, strlen(string), 255);
     if ((strcmp(PlayerInfo[playerid][pPassword], string, true, strlen(valtmp)-1) == 0))// && (strlen(string) == strlen(password)))
     {
      fread(file, valtmp);PlayerInfo[playerid][pCash] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAccount] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAdmin] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pLevel] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pExp] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][gPupgrade] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pKills] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pCB] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pHW] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pSR] = strval(valtmp);DelPrint(valtmp);
      if(PlayerInfo[playerid][pKills] < 0){PlayerInfo[playerid][pKills] = 0;}//patch
      if(PlayerInfo[playerid][pCB] < 0){PlayerInfo[playerid][pCB] = 0;}//patch
      if(PlayerInfo[playerid][pHW] < 0){PlayerInfo[playerid][pHW] = 0;}//patch
      if(PlayerInfo[playerid][pSR] < 0){PlayerInfo[playerid][pSR] = 0;}//patch
      fread(file, valtmp);PlayerInfo[playerid][pWA] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pPEN] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pGun1] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pGun2] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pGun3] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pGun4] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pGun5] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pGun6] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAmmo1] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAmmo2] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAmmo3] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAmmo4] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAmmo5] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pAmmo6] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pSHealth] = floatstr(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pHealth] = floatstr(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pPos_x] = floatstr(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pPos_y] = floatstr(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pPos_z] = floatstr(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pInt] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pLocal] = strval(valtmp);DelPrint(valtmp);
      if(PlayerInfo[playerid][pModel] == 264){fread(file, valtmp);PlayerInfo[playerid][pTeam] = strval(valtmp);DelPrint(valtmp);}else{fread(file, valtmp);}
      if(PlayerInfo[playerid][pModel] == 264){fread(file, valtmp);PlayerInfo[playerid][pModel] = strval(valtmp);DelPrint(valtmp);}else{fread(file, valtmp);}
      fread(file, valtmp);PlayerInfo[playerid][pPnumber] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pPhousekey] = strval(valtmp);DelPrint(valtmp);
      fread(file, valtmp);PlayerInfo[playerid][pPbiskey] = strval(valtmp);DelPrint(valtmp);
      fclose(file);
      ResetPlayerMoney(playerid);
      GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);

      //if (gdebug){printf("DEBUG phonenumber = %d",pnumber);}
      if(PlayerInfo[playerid][pLevel] == -999) //autoban
      {
       Ban(playerid);
      }
      format(string2, sizeof(string2), "СЕРВЕР: Добро пожаловать, %s",playername2);
      SendClientMessageRus(playerid, COLOR_WHITE,string2);
      SetPlayerWeapons(playerid);
      printf("%s has logged in",playername2);
      if (PlayerInfo[playerid][pAdmin] > 0)
      {
       format(string2, sizeof(string2), "СЕРВЕР: Вы авторизовались как админ %d уровня",PlayerInfo[playerid][pAdmin]);
       SendClientMessageRus(playerid, COLOR_WHITE,string2);
      }
      SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
      if(gTeam[playerid] == 0)
      {
       gTeam[playerid] = 3;
      }
      else
      {
       gTeam[playerid] = PlayerInfo[playerid][pTeam];
      }
      gPlayerLogged[playerid] = 1;
      if(accountplay)
      {
       gPlayerSpawned[playerid] = 0;
      }
      SpawnPlayer(playerid);
      GetPlayerName(playerid, playername2, sizeof(playername2));
      format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~   %s", playername2);
      DateProp(playerid);
      GameTextForPlayerRus(playerid, tmp2, 5000, 1);
      SendClientMessageRus(playerid, COLOR_YELLOW, motd);
      return 1;
     }
     else
     {
      SendClientMessageRus(playerid, COLOR_WHITE, "СЕРВЕР: Неверный пароль");
      printf("%s is hacking a password",playername2);
      fclose(file);
   new loginmsg[256+1];
      format(loginmsg ,256, "Ваш пароль не верный! \nЭтот ник зарегистрирован \n Пожалуйста введите свой пароль");
      ShowPlayerDialog(playerid, 888, DIALOG_STYLE_INPUT, "Авторизация/Вход в Игру", loginmsg, "Ok", "Отмена");
      return 1;
     }
//  return 1;
    }
    else
    {
     SendClientMessageRus(playerid, COLOR_WHITE, "СЕРВЕР: Вы еще не зарегистрированы, введите /regnick <password>");
    }
    return 1;
}

Должно работать
 
  • Страница 1 из 2
  • 1
  • 2
  • »
Поиск:


Copyright www.SAMP-TEAM.com (c) 2009-2024
Правила использования материалов сайта

При копировании материалов из нашего сайта
ссылка на www.SAMP-TEAM.com обязательна!
Нарушители правил будут строго наказаны!

Хостинг от uCoz   
Для корректного просмотра мы рекомендуем Вам использовать браузер Google Chrome.
Яндекс.Метрика
Яндекс.Метрика