Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. stock GetVehicle2DZone(vehicleid, zone[], len)
  2. {
  3. new Float:x, Float:y, Float:z;
  4. GetVehiclePos(vehicleid, x, y, z);
  5. for(new i = 0; i != sizeof(gSAZones); i++ )
  6. {
  7. if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
  8. {
  9. return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
  10. }
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement