Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(InPosition(playerid, 1.0, 2637.8193,1169.8242,1038.1185))
- {
- new flatType = -1;
- if(tData[ playerid ][ tWorld ] == 1) flatType = 1;
- else if(tData[ playerid ][ tWorld ] == 3) flatType = 2;
- if(flatType != -1)
- {
- new playerHouse[MAX_PLAYER_HOUSE] = {-1, ...};
- if(GetPlayerHouses(playerid, playerHouse, sizeof(playerHouse)))
- {
- new house = -1;
- for(new i = 0;i<sizeof(playerHouse);i++)
- {
- if(playerHouse[i] == -1) break;
- if(HouseInfo[playerHouse[i]][hIsFlat] == flatType)
- {
- house = playerHouse[i];
- break;
- }
- }
- if(house == -1) return SendClientMessage(playerid, COLOR_RED, "[Ошибка] {ffffff}Работа за столом возможна только для жильцов дома.");
- }
- else return SendClientMessage(playerid, COLOR_RED, "[Ошибка] {ffffff}Работа за столом возможна только для жильцов дома.");
- ShowPlayerCraftMenu(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement