[Resolvido] Comando so perto de outro player
#4

Usa a funзгo GetDistanceBetweenPlayers:

Код:
stock GetDistanceBetweenPlayers(playerid,playerid2) //By Slick (Edited by Sacky)
{
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
new Float:dis;
GetPlayerPos(playerid,x1,y1,z1);
GetPlayerPos(playerid2,x2,y2,z2);
dis = floatsqroot((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1));
return floatround(dis);
}
Reply


Messages In This Thread
[Resolvido] Comando so perto de outro player - by Rick_DR - 12.05.2010, 11:43
Re: [ajuda] Comando so perto de outro player - by russo666 - 12.05.2010, 12:23
Re: [ajuda] Comando so perto de outro player - by Rick_DR - 12.05.2010, 13:18
Re: [ajuda] Comando so perto de outro player - by [BEP]AcerPilot - 12.05.2010, 14:14
Re: [ajuda] Comando so perto de outro player - by russo666 - 12.05.2010, 16:58
Re: [ajuda] Comando so perto de outro player - by Rick_DR - 12.05.2010, 19:29
Re: [ajuda] Comando so perto de outro player - by SuB_ZeRo0_ - 12.05.2010, 21:38
Re: [ajuda] Comando so perto de outro player - by Rick_DR - 12.05.2010, 23:30
Re: [ajuda] Comando so perto de outro player - by [BEP]AcerPilot - 13.05.2010, 13:38
Re: [ajuda] Comando so perto de outro player - by Rick_DR - 13.05.2010, 15:25

Forum Jump:


Users browsing this thread: 2 Guest(s)