Advertisement
KingOfVC

poly

Aug 31st, 2014
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. function IsInArea( player, AreaName ) // veri important for role play server
  2. {
  3. local Pos = player.Pos;
  4.  
  5. if ( AreaName == "ammu1" ) // buy wep
  6. {
  7. if ( InPoly( Pos.x, Pos.y, [ -666.6144,1208.5374,-682.7587,1208.1313,-682.8992,1199.0745,-666.6497,1199.1086 ] ) ) return true;
  8. }
  9.  
  10. else if ( AreaName == "ammu2" ) // buy wep
  11. {
  12. if ( InPoly( Pos.x, Pos.y, [ 370.4669,1050.4462,361.1446,1049.9788,360.8004,1066.7798,370.3055,1066.8407 ] ) ) return true;
  13. }
  14.  
  15. else if ( AreaName == "ammu3" ) //buy wep
  16. {
  17. if ( InPoly( Pos.x, Pos.y, [ -58.6222,-1487.1007,-57.1506,-1471.9423,-66.7049,-1470.4800,-67.4560 -1487.1486 ] ) ) return true;
  18. }
  19. else if ( AreaName == "sunshine" ) // buy car
  20. {
  21. if ( InPoly( Pos.x, Pos.y, [ -1060.54,-807.183,-959.702,-807.183,-959.702,-910.663,-1060.54,-910.663 ] ) ) return true;
  22. }
  23. else if ( AreaName == "sunshine2" ) // buy car
  24. {
  25. if ( InPoly( Pos.x, Pos.y, [ -1060.54,-807.183,-959.702,-807.183,-959.702,-910.663,-1060.54,-910.663 ] ) ) return true;
  26. }
  27. else return false;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement