DeluxeGG

Untitled

Mar 15th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. for(int i = 0; i <= TOTALHOUSE; ++i)
  2. {
  3. if(HouseInfo[i][hPickup] && IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][hEntr][0], HouseInfo[i][hEntr][1], HouseInfo[i][hEntr][2]))
  4. {
  5. SetPVarInt(playerid, "THInfo", i);
  6. ShowPlayerDialog(playerid, 4444, 2, "ARP Project | Недвижимость", "{"#WHITE"}1. Информация о доме\n2. Вход в дом", "Выбор","Отмена");
  7. return true;
  8. }
  9. if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][hExit][0], HouseInfo[i][hExit][1], HouseInfo[i][hExit][2]))
  10. {
  11. if(HouseInfo[i][hInt][1] == GetPlayerVirtualWorld(playerid) && HouseInfo[i][hInt][0] == GetPlayerInterior(playerid))
  12. {
  13. SetPlayerPos(playerid,HouseInfo[i][hEntr][0],HouseInfo[i][hEntr][1],HouseInfo[i][hEntr][2]);
  14. SetPVarInt(playerid, "PickupTime", gettime()+5);
  15. SetPVarInt(playerid, "PlayerHouse", i);
  16. SetPlayerVirtualWorld(playerid, 0);
  17. SetPlayerInterior(playerid, 0);
  18. break;
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment