14.01.2014, 00:36
pawn Код:
stock IsPlayerInWeater(playerid)
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
if((GetPlayerAnimationIndex(playerid) >= 1538) && (GetPlayerAnimationIndex(playerid) <= 1542))
{
if(Pos[2] <= 1.0) return 1;
if(Pos[2] <= 42.0)
{
if(Pos[0] > -1392.504150 && Pos[0] < 2012.089965 && Pos[1] > -482.504150 && Pos[1] < 2813.089843)
return 1;
}
}
return 0;
}