Question about a stock and a command, +Rep!
#2

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;
}
It is more exact. It extracts the animation of 'swimming', and also it works in the high presses (high places with water).
Reply


Messages In This Thread
Question about a stock and a command, +Rep! - by K9IsGodly - 14.01.2014, 00:10
Respuesta: Question about a stock and a command, +Rep! - by Swedky - 14.01.2014, 00:36
Re: Question about a stock and a command, +Rep! - by Emmet_ - 14.01.2014, 00:44
Re: Question about a stock and a command, +Rep! - by K9IsGodly - 14.01.2014, 00:50
Re: Question about a stock and a command, +Rep! - by newbie scripter - 14.01.2014, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)