SA-MP Forums Archive
Textdraw y animaciуn. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Textdraw y animaciуn. (/showthread.php?tid=521519)



Textdraw y animaciуn. - Alex15 - 23.06.2014

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


Respuesta: Textdraw y animaciуn. - Swedky - 23.06.2014

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...
    }
}



Respuesta: Textdraw y animaciуn. - Alex15 - 23.06.2014

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.


Respuesta: Textdraw y animaciуn. - Zodiaco - 24.06.2014

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