Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function IsInArea( player, AreaName ) // veri important for role play server
- {
- local Pos = player.Pos;
- if ( AreaName == "ammu1" ) // buy wep
- {
- if ( InPoly( Pos.x, Pos.y, [ -666.6144,1208.5374,-682.7587,1208.1313,-682.8992,1199.0745,-666.6497,1199.1086 ] ) ) return true;
- }
- else if ( AreaName == "ammu2" ) // buy wep
- {
- if ( InPoly( Pos.x, Pos.y, [ 370.4669,1050.4462,361.1446,1049.9788,360.8004,1066.7798,370.3055,1066.8407 ] ) ) return true;
- }
- else if ( AreaName == "ammu3" ) //buy wep
- {
- if ( InPoly( Pos.x, Pos.y, [ -58.6222,-1487.1007,-57.1506,-1471.9423,-66.7049,-1470.4800,-67.4560 -1487.1486 ] ) ) return true;
- }
- else if ( AreaName == "sunshine" ) // buy car
- {
- if ( InPoly( Pos.x, Pos.y, [ -1060.54,-807.183,-959.702,-807.183,-959.702,-910.663,-1060.54,-910.663 ] ) ) return true;
- }
- else if ( AreaName == "sunshine2" ) // buy car
- {
- if ( InPoly( Pos.x, Pos.y, [ -1060.54,-807.183,-959.702,-807.183,-959.702,-910.663,-1060.54,-910.663 ] ) ) return true;
- }
- else return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement