or may be this event onplayer awayChange()......?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction IsPlayerInArea( player, AreaName )
{
local r1;
if ( AreaName == "cuban" )
{
r1 = InPoly( player.Pos.x, player.Pos.y, -1175.0514, -608.6057, -1171.8179, -633.6555, -1161.2239, -632.0810, -1164.5632, -607.0847 );
if ( r1 ) return true;
else return false;
}
}
function onPlayerMove( player, x1, y1, z1, x2, y2, z2 )
{
if (IsPlayerInArea( player, "cuban" ))
{
Announce( "~y~ \x10 \x10 \x10 \x10 \x10 weapons disabled", player, 3 );
player.CanAttack = false;
}
else player.CanAttack = true;
}