Advertisement
BopCornos

Untitled

Dec 31st, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. GetHouseInID(playerid)
  2. {
  3. for(new i=0;i<MAX_HOUSES;i++)
  4. {
  5. if(GetPlayerVirtualWorld(playerid) == HouseCache[HouseCache[i][hUID]][hInVW])
  6. {
  7. return i;
  8. }
  9. }
  10. return 1;
  11. }
  12. GetHouseOutID(playerid)
  13. {
  14. for(new i=0;i<MAX_HOUSES;i++)
  15. {
  16. if(IsPlayerInRangeOfPoint(playerid,2,HouseCache[i][hOutX],HouseCache[i][hOutY],HouseCache[i][hOutZ]))
  17. {
  18. return i;
  19. }
  20. }
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement