[Pedido] IsPlayerInPlace
#2

Exemplo:
pawn Код:
if(IsPlayerInPlace(playerid,314.37,129.60, 396.11, 221.51))
{
//funзгo
return 1;}
pawn Код:
stock IsPlayerInPlace(playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax)
{
    new
        RetValue = 0,
        Float:aX,
        Float:aY,
        Float:aZ
    ;
    GetPlayerPos(playerid, aX, aY, aZ);
    if(aX >= XMin && aY >= YMin && aX < XMax && aY < YMax)
    {
        RetValue = 1;
    }
    return RetValue;
}
@Edit

stock fim do gm
Reply


Messages In This Thread
IsPlayerInPlace - by SukMathcuck - 13.09.2014, 21:34
Re: IsPlayerInPlace - by silenthill - 13.09.2014, 21:39
Re: IsPlayerInPlace - by Twizted - 13.09.2014, 21:41
Re: IsPlayerInPlace - by SukMathcuck - 13.09.2014, 21:41
Re: IsPlayerInPlace - by ipsLuan - 13.09.2014, 21:46

Forum Jump:


Users browsing this thread: 2 Guest(s)