Mattaffix

Untitled

Nov 30th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. stock GetLocation(Float:x, Float:y)
  2. {
  3. new string[MAX_LOCATION_NAME];
  4. for(new i = 0; i < sizeof(aLocationInfo); i ++)
  5. {
  6. if(x >= aLocationInfo[i][location_info_min_x] && x <= aLocationInfo[i][location_info_max_x] && y >= aLocationInfo[i][location_info_min_y] && y <= aLocationInfo[i][location_info_max_y])
  7. {
  8. strcpy(string, aLocationInfo[i][location_info_name], MAX_LOCATION_NAME);
  9. break;
  10. }
  11. }
  12. return string;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment