Guest User

vitim

a guest
Feb 7th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.96 KB | None | 0 0
  1.                     }
  2.                 }
  3.             }
  4.             else if(!strcmp(tmp, "comprar", true))
  5.             {
  6.                 for(new c; c < MAX_CASAS; ++c)
  7.                 {
  8.                     if(IsPlayerInRangeOfPoint(playerid, 3.0, CasaInfo[c][PickupX], CasaInfo[c][PickupY], CasaInfo[c][PickupZ]))
  9.                     {
  10.                         if(strcmp(CasaInfo[c][Proprietario], PlayerName(playerid), false))
  11.                         {
  12.                             SendClientMessage(playerid, COR_ERRO, "Você não é dono(a) desta casa!");
  13.                             return 1;
  14.                         }
  15.                         format(hFile, sizeof(hFile), "Casas/casa%d.ini", CasaInfo[c][Numero]);
  16.                         if(WE_GetInt(hFile, "useCar") == 0)
  17.                         {
  18.                             SendClientMessage(playerid, COR_ERRO, "Essa casa não pode ter veículo!");
  19.                             return 1;
  20.                         }
  21.                         pInfo[playerid][Casa] = CasaInfo[c][Numero];
  22.                         new
  23.                             vIndex[] = "1. Carros\n2. Motos"
  24.                         ;
  25.                         ShowPlayerDialog(playerid, D_vINDEX, DIALOG_STYLE_LIST, "Selecione a categoria", vIndex, "Ok", "Cancelar");
  26.                         return 1;
  27.                     }
  28.                 }
  29.             }
Advertisement
Add Comment
Please, Sign In to add comment