[AJUDA] pickup + comando
#8

pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
=D deu?

(OBS: Postei primeiro que o drakon lala, to dominando o forum samp na madruga ^^)

To fazendo tema pra hoje de manha (TRAGICO)
Reply


Messages In This Thread
[AJUDA] pickup + comando - by ASDF - 23.08.2010, 15:21
Re: [AJUDA] pickup + comando - by Gil_Henriquee - 23.08.2010, 15:32
Re: [AJUDA] pickup + comando - by ASDF - 24.08.2010, 03:59
Re: [AJUDA] pickup + comando - by Kasura - 24.08.2010, 04:32
Respuesta: [AJUDA] pickup + comando - by ipsBruno - 24.08.2010, 04:38
Re: [AJUDA] pickup + comando - by Kasura - 24.08.2010, 04:54
Re: [AJUDA] pickup + comando - by ASDF - 24.08.2010, 05:23
Re: [AJUDA] pickup + comando - by Kasura - 24.08.2010, 05:29
Re: [AJUDA] pickup + comando - by ASDF - 24.08.2010, 05:36
Re: [AJUDA] pickup + comando - by Kasura - 24.08.2010, 05:37

Forum Jump:


Users browsing this thread: 1 Guest(s)