Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- }
- }
- else if(!strcmp(tmp, "comprar", true))
- {
- for(new c; c < MAX_CASAS; ++c)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, CasaInfo[c][PickupX], CasaInfo[c][PickupY], CasaInfo[c][PickupZ]))
- {
- if(strcmp(CasaInfo[c][Proprietario], PlayerName(playerid), false))
- {
- SendClientMessage(playerid, COR_ERRO, "Você não é dono(a) desta casa!");
- return 1;
- }
- format(hFile, sizeof(hFile), "Casas/casa%d.ini", CasaInfo[c][Numero]);
- if(WE_GetInt(hFile, "useCar") == 0)
- {
- SendClientMessage(playerid, COR_ERRO, "Essa casa não pode ter veículo!");
- return 1;
- }
- pInfo[playerid][Casa] = CasaInfo[c][Numero];
- new
- vIndex[] = "1. Carros\n2. Motos"
- ;
- ShowPlayerDialog(playerid, D_vINDEX, DIALOG_STYLE_LIST, "Selecione a categoria", vIndex, "Ok", "Cancelar");
- return 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment