Textdraw y animaciуn.
#1

їCуmo puedo mostrar un textdraw a todos los jugadores que estйn a un radio de 5 metros? їY aplicar una animaciуn?
Reply
#2

Usando un bucle y 'IsPlayerInRangeOfPoint. Serнa maomeno asн:

pawn Код:
foreach(new i: Player) // Si no tienes foreach/y_iterate, lo haces a la manera tradicional.
{
    new Float:Pos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
   
    if(IsPlayerInRangeOfPoint(i, 5.0, Pos[0], Pos[1], Pos[2]) && i != playerid)
    {
        // TextDrawShowForPlayer...
        // ApplyAnimation...
    }
}
Reply
#3

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
Usando un bucle y 'IsPlayerInRangeOfPoint. Serнa maomeno asн:

pawn Код:
foreach(new i: Player) // Si no tienes foreach/y_iterate, lo haces a la manera tradicional.
{
    new Float:Pos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
   
    if(IsPlayerInRangeOfPoint(i, 5.0, Pos[0], Pos[1], Pos[2]) && i != playerid)
    {
        // TextDrawShowForPlayer...
        // ApplyAnimation...
    }
}
Perfecto, gracias.
Reply
#4

Quote:
Originally Posted by Alex15
Посмотреть сообщение
Perfecto, gracias.
Que tipo de animacion muestra? si estas a 5 metros
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)