[Ajuda] evento
#4

Verifica se tem algum player nesta posiзгo:

pawn Код:
stock IsPlayerInPos(Float: Pos_X, Float: Pos_Y, Float: Pos_Z);
{
    for(new i; i < MAX_PLAYERS; ++i)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 2.0, Pos_X, Pos_Y, Pos_Z)
        {
            return true;
        }
    }
    return false;
}


Modo de uso:
pawn Код:
if(!IsPlayerInPos(CordenadaX, CordenadaY, CoordenadaZ)) // se nгo existir...
{
     SetPlayerPos(playerid, CordenadaX, CordenadaY, CoordenadaZ);
}
Reply


Messages In This Thread
[Ajuda] evento - by Cristhian - 29.10.2011, 15:56
Re: [duvida] evento - by Don_Speed - 29.10.2011, 15:57
Re: [duvida] evento - by iansinho - 29.10.2011, 16:14
Re: [duvida] evento - by [O.z]Caroline - 29.10.2011, 16:24
Re: [duvida] evento - by Cristhian - 29.10.2011, 19:30
Re: [duvida] evento - by iansinho - 29.10.2011, 19:45
Re: [duvida] evento - by CristoferBahr - 29.10.2011, 20:08
Re: [duvida] evento - by Cristhian - 29.10.2011, 20:19
Re: [duvida] evento - by CristoferBahr - 29.10.2011, 20:23
Re: [duvida] evento - by Cristhian - 29.10.2011, 20:33

Forum Jump:


Users browsing this thread: 2 Guest(s)