[DUDA]Duda Con IsPlayerInRangeOfPoint
#6

pawn Код:
stock EstaEnPosicion(playerid){
    if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return 1;
    //ETC...
    return false;
}
pawn Код:
if(EstaEnPosicion(playerid))
{
   //TU FUNCION
   //ESTA EN LA POSICION
}
else
{
   //TU FUNCION
   //NO ESTA EN LA POSICION
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)