Advertisement
ykos

Untitled

Oct 22nd, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. if(InPosition(playerid, 1.0, 2637.8193,1169.8242,1038.1185))
  2. {
  3. new flatType = -1;
  4. if(tData[ playerid ][ tWorld ] == 1) flatType = 1;
  5. else if(tData[ playerid ][ tWorld ] == 3) flatType = 2;
  6. if(flatType != -1)
  7. {
  8. new playerHouse[MAX_PLAYER_HOUSE] = {-1, ...};
  9. if(GetPlayerHouses(playerid, playerHouse, sizeof(playerHouse)))
  10. {
  11. new house = -1;
  12. for(new i = 0;i<sizeof(playerHouse);i++)
  13. {
  14. if(playerHouse[i] == -1) break;
  15. if(HouseInfo[playerHouse[i]][hIsFlat] == flatType)
  16. {
  17. house = playerHouse[i];
  18. break;
  19. }
  20. }
  21. if(house == -1) return SendClientMessage(playerid, COLOR_RED, "[Ошибка] {ffffff}Работа за столом возможна только для жильцов дома.");
  22. }
  23. else return SendClientMessage(playerid, COLOR_RED, "[Ошибка] {ffffff}Работа за столом возможна только для жильцов дома.");
  24.  
  25. ShowPlayerCraftMenu(playerid);
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement